LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to make labview program run for a set amount of time, then stop, and reset?

Hi there.

I am in the process of doing some work in Labview and I ran into the following problem.

 

I am generating a signal with my block diagram (look at attached vi). I want to make this signal last 3 seconds, and then stop the signal, and reset the generation to 0. How can I do this? I presumably need some kind of "timing block" but I really need some help now.

 

I hope you understand my question.

0 Kudos
Message 1 of 3
(2,396 Views)

Have a look at the Elapsed Time VI.  I think it can do everything you need by controlling the Reset input.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
Message 2 of 3
(2,338 Views)

@BirgerBrosa wrote:

 How to make labview program run for a set amount of time, then stop, and reset? 


A proper LabVIEW program does not "stop" unless you want to edit it. It just changes state in a state machine. I don't have DAQmx installed, so I cannot look at your AO out configuration, but I assume there is some kind of defined timing. Since each iteration of the loop apparently operates on 1000 points, you can calculate how many iteration you need for 3 seconds.

 

I would really suggest to do a few simple tutorials. Maybe look at the examples that ship with LabVIEW. I would probably get away from express VIs and dynamic data.

Message 3 of 3
(2,315 Views)