04-27-2009 05:38 PM
Anyone know what this problem is?
We have been using a NI-PCI-6111 card for some time without problem for analog I/O and digital control projects.
We just started a new project requiring accelerometer testing.
We cannot get our code to compile using the function: [DAQmxCreateAIAccelChan] .
We are using NIDAQ 8.5 lib's
Code line:
DAQmxErrChk (DAQmxCreateTask("",&taskHandle));
DAQmxErrChk (DAQmxCreateAIAccelChan(taskHandle,"Dev1/ai0","",DAQmx_Val_RSE,
-18.0,18.0,DAQmx_Val_AccelUnit_g,312.0,
DAQmx_Val_mVoltsPerG,DAQmx_Val_Internal,0.00075,NULL));
Error returned:
DAQmx Error: Measurements: Selected physical channel does not support the measurement type required by the virtual channel you are creating.
Create a channel of a measurement type that is supported by the physical channel, or select a physical channel that supports the measurement type.
Property: DAQmx_AI_MeasType
You Have Requested: DAQmx_Val_Accelerometer
You Can Select: DAQmx_Val_Current, DAQmx_Val_Resistance, DAQmx_Val_Strain_Gage, DAQmx_Val_Temp_RTD, DAQmx_Val_Temp_Thrmstr, DAQmx_Val_Temp_TC, DAQmx_Val_Voltage, DAQmx_Val_Voltage_CustomWithExcitation
Task Name: _unnamedTask<3E>
Status Code: -200431
Program compiles fine when this statement is commented out.
I have found two reference that contradict each other from NI. One states that the 6111 is not supported in version 8.5, another states that it is.
Can anyone shed some light on this?
Thanks,
Doug H.
Lantis Laser
04-28-2009 11:58 PM
Hi Doug:
You are receiving that error because the PCI-6111 does not support tasks for accelerometer input. The only PCI cards we sell that can handle that are our DSA cards. These cards and the rest of the devices that support accelerometer input can be viewed here.
For the second part of your question, the PCI-6111 is supported by NI-DAQmx 8.5. The list of supported devices can be found in the readme. If you could point me to the location of the contradicting information, I'll look at having it fixed.