08-23-2016 10:18 AM
Hello all
I write various programs to assist with debugging of embedded software systems. I often need to convert a byte value into bits and then show which of these bits are true/false. This is easily done using the convert-to-bool-array VI. However, I would like to create a control which will allow me to show a name for each bit field - much like the way registers are described in data sheets. The control will need to be a cluster of buttons and I can then show which bits are true/false and use the label of the button to contain the bit field name.
I have gone some way to creating this functionality in an XControl as this seemed best. My cluster of booleans updates correctly according to the byte value fed into the control. However, I am using a property to set the boolean control label text (bit field names). My debugging shows that the text is assigned to the label of the control, but the control front panel never changes. I have tried synchronous updates and forcing a redraw of the panel using DeferPanelUpdates to no avail.
I would be grateful for any help on this - VI and XControl demonstrating the issue is attached.
Thanks
Ray
Solved! Go to Solution.
08-23-2016 10:40 AM - edited 08-23-2016 10:48 AM
Probably, because you try to change the label text. Try to change the caption text....
For each boolean, choose "visible items-captions"...
08-24-2016 02:01 AM
Thanks Jean-Marc. I had forgotten that label text changes require a VI recompile.