LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Write multiple measurements to file

 

I added the rest of my code and having a issue with the loops.. I want to be able to manually switch the circuit which would require using a while loop instead of a for loop.. Is it possible to exit the case structure with a command because my current code will run Voh non stop.

0 Kudos
Message 11 of 16
(1,802 Views)

You can't "exit" a case structure.  All code inside has to execute.

 

You can exit the while loop.  You have the stop button in there which means the while loop will stop executing once it has read that the Stop button was pressed.

0 Kudos
Message 12 of 16
(1,793 Views)

Is there a way to make it run only once? Currently, I'm not able to switch cases.

0 Kudos
Message 13 of 16
(1,790 Views)

Don't put in the while loop.

0 Kudos
Message 14 of 16
(1,787 Views)

Ok, is it possible to use a for loop and have it wait for my case to change?

0 Kudos
Message 15 of 16
(1,783 Views)

@dspRy wrote:

Ok, is it possible to use a for loop and have it wait for my case to change?


I don't understand what you are asking with that question.  How is the case going to change?  Right now it is a control on the front panel.  And it happens to be read one time when your VI starts.

 

 

I would recommend you learn more about LabVIEW from here. How to Learn LV

 

0 Kudos
Message 16 of 16
(1,770 Views)