LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Use DO and AI function in one DAQ Device

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!

DAQ error.JPG 

 

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

0 Kudos
Message 1 of 5
(3,491 Views)

Can you provide more info. such as

 

ni-daqmx version? or ni-daqmx base version?

OS?

Visual C++ version? Borland C++ version?

0 Kudos
Message 2 of 5
(3,457 Views)

hi, Billingsley

My DAQ version is 7.4.4f4

      OS version is  XP Profession SP3

      LabWindows/CVI version is 8.5.0

Thank you!

DAQ.JPG

1.JPG

2.JPG

0 Kudos
Message 3 of 5
(3,448 Views)

Sorry, add below. 

3.JPG

0 Kudos
Message 4 of 5
(3,447 Views)

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.

0 Kudos
Message 5 of 5
(3,441 Views)