LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

why wont my loop run continously

I have attached a copy of my vi. This loop was running ok, but when i rebooted the computer, it stopped responding. any ideas on what could be wrong?. Please help
0 Kudos
Message 1 of 8
(3,408 Views)
Your vi should run until you press the stop button.  Are you getting any errors?  Try turning execution highlighting on (the light bulb).  See what happens.  Use probes to look at data or errors at certain places.  Report what you find.
- tbob

Inventor of the WORM Global
0 Kudos
Message 2 of 8
(3,398 Views)

One of two things are happening.

The Stop button has to be False for your loop to run continuous and you are not resetting it to False.  Chances are that it is true when you start the loop so it only runs once.  Set it to False outside of the loop.

Second, next to the run arrow is the run continuous button.  Was it turned on before?

 

Matthew Fitzsimons

Certified LabVIEW Architect
LabVIEW 6.1 ... 2013, LVOOP, GOOP, TestStand, DAQ, and Vison
0 Kudos
Message 3 of 8
(3,390 Views)
The stop button inside the loop is not stopping the execution. I have to use the abort button to stop. Also, when I highlight the execution, the data seem to stop and i am able to record just a single line with the heading, but no data is recorded.
0 Kudos
Message 4 of 8
(3,386 Views)

Stop button should work so the program must be hanging on a VI.  It should not stop during highlight execution.

No data is recorded because the program is hanging up.

Matthew Fitzsimons

Certified LabVIEW Architect
LabVIEW 6.1 ... 2013, LVOOP, GOOP, TestStand, DAQ, and Vison
0 Kudos
Message 5 of 8
(3,380 Views)
Exactly where does the program execution hang up?  On the DAQ2 Express VI?  Probably your DAQ board is not being triggered to receive any data, so it sits there and waits for data or a trigger.  There is a timeout terminal, wire some value to it so that it will not hang up your program if no data is received.

Message Edited by tbob on 07-13-2006 01:24 PM

- tbob

Inventor of the WORM Global
0 Kudos
Message 6 of 8
(3,376 Views)
It is hanging up on the format to file string.
0 Kudos
Message 7 of 8
(3,366 Views)

All inputs need to be satisfied before it will conitine.  Chances are one of your inputs have not provided data so the file write will hang until all inputs are satisfied. 

Matt

Matthew Fitzsimons

Certified LabVIEW Architect
LabVIEW 6.1 ... 2013, LVOOP, GOOP, TestStand, DAQ, and Vison
0 Kudos
Message 8 of 8
(3,351 Views)