LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to get mechanical action (Latch or switch) of a boolean control from property node ?

Solved!
Go to solution

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 !

 

0 Kudos
Message 1 of 3
(4,387 Views)

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.

Message 2 of 3
(4,384 Views)
Solution
Accepted by topic author YoannG

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.

Paul Falkenstein
Coleman Technologies Inc.
CLA, CPI, AIA-Vision
Labview 4.0- 2013, RT, Vision, FPGA
Message 3 of 3
(4,371 Views)