LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Optional Terminal connected ? How to detect ?

I am wondering wether I can make a detection
wether a optinal input terminal is coonected or not ?

Depending on this I want to carry out different cases.

One way I see is defining a stupid default value and then
crosschecking over a case structure. Wether this stupid value is
applid or another.
But actually I don t like this idea because it is no proper solution I
think.

But I was wondering wether somebody has a better Idea ?

Can I check directly Teminal ... connected or not ?

Thanks in advance

Sascha
0 Kudos
Message 1 of 5
(5,297 Views)
Sascha,

There is not a a way to directly check wether or not the terminal is connected. If you take a look at the file open VI you will notice that the default is and presumably there is a case statement which checks for this value and pops up a file dialog if it finds it.

Perhapse you may want to approach the problem from an other angel. Maybe making the VI take a boolean which will change its behaviour from the wired to the unwired mode.

Hope this helps!
Regards,
Amaury R.
Applications Engineer
0 Kudos
Message 2 of 5
(5,297 Views)
Hi,

I think you can use polymorphic vi for this target.
Assume first vi has boolean connector, and second has
numeric connector. If connector connected (numeric) will run second vi. If connector not connected will run first vi.
Message 3 of 5
(5,297 Views)
Does the current version of labview allow you to detect whether optional subvi terminals are wired from within that subvi?
0 Kudos
Message 4 of 5
(4,906 Views)

Is this really the only way?

 

http://forums.lavag.org/Determing-if-a-control-is-wired-in-the-caller-t10604.html

0 Kudos
Message 5 of 5
(4,898 Views)