02-15-2022 09:34 PM - edited 02-15-2022 09:47 PM
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
02-16-2022 01:31 AM
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!