This error can happen in any scenario where the analog output is out of the range specified on the DAQmx Create Virtual Channel.vi.How to solve the error:
A workaround to solve this error is to connect the offset
input of the Basic Function Generator.vi
to the Amplitude
input, this will make an offset of the same value of the original amplitude of the signal; therefore, all the values will now be positive or above zero.
The signal with the offset would look like this: