LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Error 201025 whne running through CVI, though NI MAX works fine

Solved!
Go to solution

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.

0 Kudos
Message 1 of 4
(2,390 Views)
Solution
Accepted by topic author schwarzaviv

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.

bhovhann
0 Kudos
Message 2 of 4
(2,335 Views)

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?

0 Kudos
Message 3 of 4
(2,318 Views)

Can you send your project or maybe screenshot

bhovhann
0 Kudos
Message 4 of 4
(2,301 Views)