LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to coerce dynamic data before sending it to analog output via DAQ assistant?

I use Simulate Signal to generate a sine wave of frequency 100 Hz and amplitude 9 (Volts).  I also added Gaussian white noise of standard deviation 1.  This noisy sine signal is sent to the analog output via DAQ assistant as dynamic data.  The voltage output range in the DAQ assistant is between -10 and 10 V.

 

On a rare occasion, the noisy sine signal exceeds the range [-10,10] V and the program stops.  Is there a way to coerce the dynamic data to [-10,10] before sending it to DAQ?  Something similar to "In Range and Coerce Function", but for dynamic data.

 

Thanks,

Momcilo

0 Kudos
Message 1 of 2
(673 Views)

Hi Sharp,

 

try to solve that problem the other way around: avoid ExpressVIs and their DDT wires and you can very easily apply a InRangeAndCoerce function!

 

There are a lot of signal generation functions next to the SimulateSignal ExpressVI.

And there are (easy to use) DAQmx functions next to the DAQAssistent ExpressVI!

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 2
(621 Views)