LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

check if a reference on a control is valid

Hello,

I used to use reference on control when calling a sub Vi.
I would like to check in the subVi if this control is really connected for example, in other word if it is reallay a reference to a control (or indicator).
How can I do it ?

thank.
0 Kudos
Message 1 of 6
(7,759 Views)

If the reference is not valid you will get an error when calling a property node (or invoke), at the error cluster output.

You should always wire it, if you are not sure about your references



Message Edited by Pnt on 07-25-2008 03:28 PM
0 Kudos
Message 2 of 6
(7,753 Views)
Not a Number/Path/Refnum? is your friend. Functions palette >> Programming >> Comparison
Message 3 of 6
(7,752 Views)
 
30 seconds ago there were no replies. I should aviod the "low hanging fruit" Smiley Wink
 
Ben


Message Edited by Ben on 07-25-2008 07:30 AM
Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
Message 4 of 6
(7,752 Views)


@Ben wrote:
 
30 seconds ago there were no replies. I should aviod the "low hanging fruit" Smiley Wink
 
Ben


Message Edited by Ben on 07-25-2008 07:30 AM

Well wouldn't it be nice to link to the online help of the function?
Or perhaps a picture from the online help:


Ton

Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
Nederlandse LabVIEW user groep www.lvug.nl
My LabVIEW Ideas

LabVIEW, programming like it should be!
0 Kudos
Message 5 of 6
(7,739 Views)

@TCPlomp wrote:
Well wouldn't it be nice to link to the online help of the function?
 

LOL, I was lazy to start LabVIEW to get to that help page so I decided to google it and this thread was the first hit. So you were right it was nice. 🙂

0 Kudos
Message 6 of 6
(2,919 Views)