Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

Error -200088 with PXIe-6341 when trying to create AI channel

Solved!
Go to solution

I'm getting an Invalid Task error (-200088) when trying to create an AI voltage channel on a PXIe-6341 card. I've attached a sample Python script which triggers the error. I checked NI-MAX and the test panel there can read the voltage I'm trying to read. The script has previously been running correctly, but has started triggering this error recently. I suspected a driver issue, as we recently upgraded the computer it's on to Windows 10, but reinstalling the drivers and NI-DAQmx had no effect. Anyone have any suggestions for what may be causing this error?

0 Kudos
Message 1 of 2
(1,945 Views)
Solution
Accepted by topic author db314159

Figured it out... Turns out that the new version of DAQmx returns the task handle as a 64-bit integer rather than 32-bit, so the solution is simply to change the data type of the task handle variable to 64-bit.

Message 2 of 2
(1,892 Views)