04-14-2023 01:30 AM
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?
04-14-2023 07:29 AM
I don't have any issues running the attached VI on LabVIEW 2022 Q3. Are you using different parameters?
04-14-2023 09:06 AM - edited 04-14-2023 09:08 AM
No. My frequency is above 8000 hz for both. Yours is in milli Hz now. Can you change it and try?
04-14-2023 09:33 AM
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.