I try to program my DAQmx device. I have an array of double (custom waveform), a variable amplitude depending a other operation (feedback), frequency of 50Hz. I want to change the waveform between to cycle with the new amplitude.
I have error like:
Error -200288 occurred at DAQmx Write (Analog 1D DBL 1Chan NSamp).vi:1780001
Attempted to write a sample beyond the final sample generated. The generation has stopped, therefore the sample specified by the combination of position and offset will never be available.
Specify a position and offset which selects a sample up to, but not beyond, the final sample generated. The final sample generated can be determined by querying the total samples generated after a generation has stopped.
Attempted to Write Sample: 40
Corresponding Value: Current Write Position
Corresponding Value: 0
Task Name: _unnamedTask<28>
How I can do it?
Solved! Go to Solution.