LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

editing case structures

I want to create case structure like the ones in "containerkraan van A3.vi." My attempt can be seen in "opdracht 5 Ronald.vi."

 

How can I edit my case structures to have them the same as in my example file? I have a broken error now.

Download All
0 Kudos
Message 1 of 3
(2,216 Views)

You need to provide outputs for both the FALSE and TRUE cases. Either create constants in the empty cases and wire to the output tunnels or if you are happy with 0 values right click the output tunnels and select "use default values if unwired"

 

Hope this helps

David
www.controlsoftwaresolutions.com
0 Kudos
Message 2 of 3
(2,210 Views)

If you have a tunnel coming out of the case structure, then each case must generate a value for that tunnel. This is by design, and is explained in the LabVIEW documentation. The original code had the tunnels set to "use default if unwired", which means they will generate the default value for whatever datatype is being used. In this case it would be 0.

 

What is the purpose of this code? It seems ... quite "heavy" to me. 

0 Kudos
Message 3 of 3
(2,205 Views)