取消
显示结果 
搜索替代 
您的意思是: 

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.

0 项奖励
1 条消息(共 3 条)
2,662 次查看

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 项奖励
2 条消息(共 3 条)
2,656 次查看

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 项奖励
3 条消息(共 3 条)
2,651 次查看