Measurement Studio for VC++

cancel
Showing results for 
Search instead for 
Did you mean: 

Cohabitation with Visual C++, USB 6008 and 9211, and NI-DAQmx Base 2.2

Hello,


     I must make a program on Visual C++, on windows XP, using USB 6008 and 9211. I saw that because of the latter, I had to use NI-DAQmx Base 2.2.

     On NI-DAQmx Base Device List (lsdaq), they are both referenced as follows:

 
     NI USB-9211: "Dev1" (USB0:: 0x3923: 0x70A3: 00E019AC:: RAW)
     NI USB-6008: "Dev2" (USB0:: 0x3923: 0x717A: 011C22D6:: RAW)

     Using the examples provided and by putting even gives the value" Dev1/ai0" in the  "chan", I have a problem with energy from this function:

     DAQmxErrChk (DAQmxBaseCreateAIVoltageChan (taskHandle, chan, "", DAQmx_Val_Cfg_Default, min, max, DAQmx_Val_Volts, NULL));
 
     Or the console says: Error DAQmxBase: <err> Device identifier is invalid.


     Could you help me solve this problem? Thank you in advance,

           Christophe
0 Kudos
Message 1 of 1
(6,442 Views)