06-15-2011 09:06 AM
Hello all
I use a code to get all the controls from the front panel, in order to read them or get their references etc...
If I have a boolean control in latch mode on the front panel i receive an error (you can't read the value of a latch : error code 1193) and i want to avoid that.
I want when I scan through controls to avoid to ask the value of a boolean in latch mode, but I can't find, in the boolean control property node or method, its mechanical action.
Does anybody knows a way to retrieve that information ?
Thanks !
Solved! Go to Solution.
06-15-2011 09:12 AM
What version of LabVIEW are you using? If you enable the scripting VIs in LabVIEW 2010 (in Tools -> Options) then there is a "Mechanical Action" property available.
06-15-2011 10:57 AM
For non scripting, the crude way that works is to use a property node, read the value then write the same value, if an error is generated (code 1193) you know that the button is latching.