ChimeraTK / QtHardMon

The ChimeraTK Hardware Monitor. A GUI for DeviceAccess, based on Qt.
GNU Lesser General Public License v3.0
4 stars 0 forks source link

QtHardMon offers write to dummy of read-only registers in subdevice back-end #6

Open phako opened 4 years ago

phako commented 4 years ago

It looks like there is a bug with the enabliing of the write button on sub-devices

mhier commented 4 years ago

Could also be a bug in sub device backend...

killenb commented 4 years ago

Why is this a bug? The trick is that you can request an XXX_DUMMYWRITEABLE register and might get it if it's a dummy. If the SubDevice-Backends hands this request through to the dummy, and you get this register, I would consider it wanted behaviour.

phako commented 4 years ago

Sorry, that was missing an information: The "parentdevice" was a pcie device, i.e. the TMCB subdevice on the BAM Box

killenb commented 4 years ago

Hm, I just tested with only the PCIe backend and the mtcadummy. Here the RO register is working. QtHardMon greys out the write button. The same map file loaded with a sub device makes "dummy writeable" possible. I guess @mhier is right that it's the subdevice backend, not QtHardMon.