LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How is the default value specified in an event structure when wiring a value out of a subset of the available cases?

Until 6.1 we had to wire something to the tunnel for ALL cases if we wanted to get a value out of one case. Now, in 6.1 we can use a default value when nothing is wired to the tunnel. Maybe I'm missing something, but how do I specify what I want as my default?

I've wired a boolean TRUE out of one case of the new event structure. I've got lots of other cases, and I don't want to wire a FALSE from the other cases. The boolean enters an OR gate after leaving the tunnel. Luckily, the DEFAULT default is FALSE, which I happen to want, but I'm asking for future situations.

Thanks,

Daniel L. Press
PrimeTest Corp.
www.primetest.com
0 Kudos
Message 1 of 3
(2,437 Views)
Hi Dan,

LabVIEW is referring to the default value for a particular datatype (not a user-specified default value) whenever you use the "Use Default if Unwired" option on an Event or Case Structure output tunnel. The default values are False, 0,and empty string for Boolean, Numeric, and String datatypes, respectively.

I hope this sheds some light on the issue. I found the answer (that datatype defaults are used) in the "Failing to Wire a Tunnel in All Cases of a Case Structure" topic in the LabVIEW Help.

Good luck with your application, and have a nice day.

Darren
Message 2 of 3
(2,437 Views)
Thanks! I knew it had to be something like that. I got wrapped up in my project so much that I couldn't think about what to look up in the help.

Enjoy 6.1!

- Dan
0 Kudos
Message 3 of 3
(2,437 Views)