Quantcast
Channel: Measurement Studio for VC++ topics
Viewing all articles
Browse latest Browse all 660

Error -200088 on NI PCIe-6259, TaskHandle Issues

$
0
0

Hi all, I'm working on getting a force/torque sensor to work in a custom Qt application, but I keep running into the same error with the function

 

DAQmxCreateAIVoltageChan(taskHandle, daqPhysicalChannel.c_str(), 0, DAQmx_Val_Cfg_Default, -maxVoltage, maxVoltage, DAQmx_Val_Volts, "")

 

which always return an error type of -200088: DAQmxErrorInvalidTask.

 

I tried returning the values for TaskHandle that were being generated by DAQmxCreateTask, and everytime the program ran there would be a different value generated for TaskHandle, from -793410048 to 1387431424, with no rhyme or reason inbetween from my perspective.

 

I tried hard-coding values of TaskHandle for the library, still the same error.

 

Has anyone experienced anything like this before?

 

I know that the F/T sensor works normally, as I can run it using the provided software and read values from it that way. I'm building the library in Visual Studio 2012 and running the program in Windows 8 additionally, and very similar code is working on another computer in the lab on VS 2010 in Windows 7.


Viewing all articles
Browse latest Browse all 660

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>