Counter/Timer

cancel
Showing results for 
Search instead for 
Did you mean: 

switch case : use default if unwired

Solved!
Go to solution

with a small example explain me what happens if we select the option use default if unwired in switch case

0 Kudos
Message 1 of 5
(10,002 Views)
Solution
Accepted by topic author Nagaa

Hi

 

When you use "Use Default If  Unwired" option for a case structure tunnel, the default value for the tunnel datatype (not a user specified default value) is passed for all 
unwired tunnels. That is, if you have an output tunnel of file refnum type, and you enable "Use Default If Unwired" option, then the default value of a 
file refnum (which is 0) gets passed to an unwired tunnel. The default  values for Boolean, Numeric, and String datatypes are False, 0,and empty 
string, respectively. To further concrete the concept I have attached a simple VI which demonstrates what happens when you use "Use Default if Unwired" option for a case structure tunnel. 

Hope this helps a little and let me know if you have more questions regarding this issue.

 

Thank you and have a great day!

 

Regards

 

Sagar G Yadav | Application Engineer | National Instruments 

Message 2 of 5
(9,995 Views)

thank u very much sir .  

 

i got clear clarity now . 

 

i tried to open ur code but i am using 2009 version so its not getting opened any how thank u very much 

0 Kudos
Message 3 of 5
(9,992 Views)

Hi

 

I've attached the same VI after down converting it for LabVIEW 2009. Now it should be working for you. 

 

Reagards

 

Sagar G Yadav | Application Engineer | National Instruments

0 Kudos
Message 4 of 5
(9,990 Views)

thanks for u r valuable information sir . can i hav ur email id please 

0 Kudos
Message 5 of 5
(9,981 Views)