11-23-2010 02:09 AM
Hi, everyone
I try to use DO and AI function in DAQ USB-6008.
When I run my program it shows one error message as below,
Please suggest me how to solve this problem?
Thank you!
My Code:
DAQmxCreateTask("", &gTaskHandle_DAQ1);
DAQmxCreateTask("", &gTaskHandle_DAQ1_DO);
DAQmxCreateAIVoltageChan(gTaskHandle_DAQ1, cChan_DAQ1, "", DAQmx_Val_Cfg_Default, min,max, DAQmx_Val_Volts, NULL);
DAQmxCfgSampClkTiming(gTaskHandle_DAQ1, "", rate, DAQmx_Val_Rising, DAQmx_Val_ContSamps, sampsPerChan);
DAQmxGetTaskAttribute(gTaskHandle_DAQ1, DAQmx_Task_NumChans, &gNumChannels);
DAQmxCreateDOChan(gTaskHandle_DAQ1_DO, cChan_DAQ1_DO, "", DAQmx_Val_ChanForAllLines); <--- Occur error
11-23-2010 08:59 PM
Can you provide more info. such as
ni-daqmx version? or ni-daqmx base version?
OS?
Visual C++ version? Borland C++ version?
11-23-2010 11:24 PM
hi, Billingsley
My DAQ version is 7.4.4f4
OS version is XP Profession SP3
LabWindows/CVI version is 8.5.0
Thank you!
11-23-2010 11:27 PM
Sorry, add below.
11-24-2010 01:04 AM
Can you try all AI & DO functions on Measurement and Automation Explorer>>Test Panel?
or Can you update your NI-DAQmx driver to 8.6.1?
or may be you need to RMA.