07-29-2019 05:33 AM
I created a task in MAX with an Analog Output task. I configured the channel with min/max voltage +-1.5V, sample count 1k and rate 10k, continuous output and triangle function. This works fine.
However, when I use DAQmxLoadTask and then DAQmxStartTask in CVI I get a 201025 error.
I verfied that the task has been loaded and CVI recognizes the channel by reading the channel parameters and printing them on screen.
Device is USB 6229.
Solved! Go to Solution.
07-31-2019
06:17 AM
- last edited on
11-18-2024
11:36 AM
by
Content Cleaner
If you are trying to run a task in hardware-timed single point mode, first make sure your device supports this mode. The most common cause of Error -201025 and Error -200462 is a failure to load the buffer before starting the task. Doing so creates a non-buffered, hardware timed task, which is not supported by USB DAQ devices due to the inherent latency of the USB bus.
Without calling the DAQmx Write before the DAQmx Start function, your device will attempt to pull samples from a buffer that does not exist. You can eliminate the error by calling a DAQmx Write before the DAQmx Start function.
07-31-2019 08:08 AM
Thanks for the reply. How would I write the triangle function that I created in the MAX panel? Can it be accessed or will I have to recreate it in code manually?
08-02-2019 02:52 AM
Can you send your project or maybe screenshot