LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to execute a case loop on selection

I posted the message previosly that the selction of cases is happening but the execution of commands in each case is not happening so can you please help me in this regard. I put read and write as same because I want to execute one command after another. 

0 Kudos
Message 1 of 2
(2,170 Views)

Dear perumpadapu

 

Thank you for your post. Here is what I believe your problem to be; you run the code but when the true case is returned the second frame in the stacked sequence diagram does not execute properly.

 

I took a look at your code and the first thing I had to do was clean it up using the "Clean Up Diagram" button on your block diagram.  This made the data flow much easier to read so I was able to spot the problem in your code.  Because you used a stacked sequence (disabled) rather than a flat sequence (enabled) you hadn't wired the VISA resource name properly from the zeroth into the first frame.  Let me know if this code now works as you intend.

 

I also reccomend naming your controls and indicators either in the order in which they occur or in a more intuitive fashion - this makes it easier to debug.

 

Regards,

Robert Ward
Applications Engineer, NI
0 Kudos
Message 2 of 2
(2,111 Views)