LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Error -20061 occurred at NI_MABase.lvlib:Sine Waveform.vi:2090002 >> NI_MABase.lvlib:ma_Trap Fgen Parameter Errors.vi:5950001 frequency must be <= sa

Hello, I tried to create 2 sine waves and add them together. Then I want to take the output and have this as an output signal from my NI DAQ USB-4431. But i'm getting the bellow error.

 

Error -20061 occurred at NI_MABase.lvlib:Sine Waveform.vi:2090002 >> NI_MABase.lvlib:ma_Trap Fgen Parameter Errors.vi:5950001
frequency must be <= sampling rate/2

 

I opened the sine wave generator and changed the sampling frequency but it's getting reset to to 1k sampling frequency automatically and giving me the same error.

 

 Can anyone help please?

0 Kudos
Message 1 of 4
(1,253 Views)

I don't have any issues running the attached VI on LabVIEW 2022 Q3. Are you using different parameters?

ZYOng_0-1681475348388.png

 

-------------------------------------------------------
Applications Engineer | TME Systems
0 Kudos
Message 2 of 4
(1,224 Views)

No. My frequency is above 8000 hz for both. Yours is in milli Hz now.  Can you change it and try?

 

 

0 Kudos
Message 3 of 4
(1,216 Views)

You need to add a control or constant and specify the sampling rates of at least 2 times the signal frequency. Otherwise, the default 1k sampling rate is used. Practically, you should specify 5 to 10 times to maintain the shape of the waveform.

Next time, please set the default value of the control before attaching the VI. Right-click on the control, select Data Operation >> Make Current Value Default.

-------------------------------------------------------
Applications Engineer | TME Systems
0 Kudos
Message 4 of 4
(1,210 Views)