SignalExpress

cancel
Showing results for 
Search instead for 
Did you mean: 

Setting SE to acquire data until generation is done

Hi,

In SE 2.0 I am using a LV VI I wrote to generate a sine sweep waveform.   Is it possible to set SE to acquire data until the signal is done generating? That is, without me having to enter the number of points to acquire and the sampling rate? I ask becuase the length of my sweep is independent of my input parameters, thus I do not know how long my sweep is, or how many points are contained in it until I run my SE project.  So essentially I need to "guess" at how long to acquire.

Thanks!
0 Kudos
Message 1 of 3
(6,026 Views)
Hi,
 
I don't know the details of your application, so I'm not sure if this is going to make any sense, but maybe you can configure a continuous acquisition with the DAQmx Acquire step, perform a Limit Test on the acquired signal to detect if the generation is finished, and put both steps in a Condition Repeat loop. You can use the boolean output of the Limit Test as the stop condition of the loop.
 
You can then configure the output of the DAQ step to be logged (right-click on the output and select "Enable Recording"). If you click on the Run Once button, the signal should be continuously acquired and logged until the generation is complete, and then the project should stop.
 
I hope this helps.
 
Christophe
0 Kudos
Message 2 of 3
(6,000 Views)
You can also configure the Limit Test to stop execution the first time it passes or fails.  Under the Actions tab you can check the stop project checkbox and enter 1 for the number of times.  Doing this would eliminate the need to use the conditional repeat step.
Message 3 of 3
(5,995 Views)