LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

case structure not going through all cases before restarting

I have a case structure and it is not going throught the entire list of cases, I cannot figure out the problem. Any help would be greatly appreciated. I have attached my VI:
0 Kudos
Message 1 of 4
(2,994 Views)

In your case labeled "exhauset 24", you reset the state back to "valve 2 open".

Your program is way (way!!) too convoluted to do any serious code maintenance. Properly written, the same functionality can be achieved wich much less code. 90% of your code is duplicate. Why don't you use arrays?

Message 2 of 4
(2,982 Views)
I do not know how to use arrays, this is my first time using LabView. Any advice?
0 Kudos
Message 3 of 4
(2,948 Views)

Joel,

To find some example programs that show how to use arrays in LabVIEW first open the example finder (Help->Find Examples).  Then navigate to the Fundamentals->Arrays and Clusters directory.  Here you will find quite a few examples on how to use arrays in LabVIEW.  Something else that might be good to look at would be the "Learn LabVIEW 8 in 3 hours" document that we have on our website.  Here's a link to that document.

http://zone.ni.com/devzone/learningcenter.nsf/webmain/51739EA30FAB12F8862570920065734B

I hope this helps,
Justin D.
Applications Engineer
National Instruments

Message 4 of 4
(2,919 Views)