01-13-2020 07:19 AM - edited 01-13-2020 07:22 AM
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.
01-13-2020 09:24 AM
Have a look at the Elapsed Time VI. I think it can do everything you need by controlling the Reset input.
01-13-2020 11:23 AM
@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.