Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

ai group config error -10401

My test system is configured as a standalone PC controlling a PXI chassis via MXI-3.  A PXI-6289 DAQ card (Connector 0) is used as a chassis communicator for a SCXI chassis containing a SCXI-1100 and SCXI-1102.  I am using the example vi, "SCXI-1102 Thermocouple.vi" to read a thermocouple connected to CH23 of the TC-2095.  On the front panel of the VI, I have supplied the address of the cold junction "ob0!sc1!md2!cjtemp" and channel 23 as "ob0!sc1!md2!23".  This is the in the form of the default value as shown on the front panel.  When the VI runs, I get an error message -10401 at AI group config.vi.  According to MAX under DAQmx, SCXI-1102 is "SC1Mod2" and the chassis communicator is NI PXI-6289:"Dev1".  Running LabView 7.1, MAX 4.5, NI-DAQmx 8.8.  what is the correct syntax to reference thermocouple and voltage input channels for the TC-2095 and BNC-2095?  I don't know what the "ob0" portion of the channel reference is specifying.
0 Kudos
Message 1 of 3
(3,151 Views)

More information on the above question...

 

My basic problem:  I need to read the temperature from a Type C thermocouple.  I found the coefficients for the Type C and wanted to add them to the existing Traditional DAQ thermocouple VI.  This is where I get the -10401 error.  Can I mix Traditional DAQ and DAQmx calls in the same program? 

 

I tried using the DAQmx thermocouple VI, Acq Thermocouple Sample.vi.  This vi creates a DAQmx task that includes a parameter for the type of thermocouple.  The task is passed to DAQmx Read (Analog DBL 1chan 1 samp).vi to read a channel and return the data.  Unfortunately, this vi uses a call library function node.  This code can't be modified to add the calculation for the Type C thermocouple.

0 Kudos
Message 2 of 3
(3,148 Views)

Hello wantacobra,

 

You can make calls to the Traditional DAQ and DAQmx drivers in the same VI or program as long as the following two conditions are met:

 

1.  The version of Traditional DAQ is 7.1 or higher.

 

2.  The Traditional DAQ and DAQmx drivers are not attempting to control the same DAQ device.

 

I believe that the error you are getting is likely the cause of the second condition not being met. In fact, your DAQ device, the PXI-6289 is only supported in DAQmx.  You can see verify that your DAQ device is supported in DAQmx only by referencing the DAQmx readme. But, programming your C type thermocouple temperature measurement task in DAQmx may be problematic as MAX doesn't support C type thermocouples.  There is a work around, however.  The best way is to do one of the following:

 

1.  Set up a custom Map Ranges scale in MAX using a conversion table, and apply it to an analog input task.

 

2.  Apply a reverse temperature polynomial using a Code Interface Node, with polynomial coefficients that are specific to your thermocouple type.

 

Adding cold junction compensation complicates the problem.  Fortunately, someone has already tackled this problem and created VIs that add CJC to C-type thermocouple measurements, and there's no need to re-invent the wheel. The attached .zip file contains the VIs you need to apply CJC to your C-type thermocouple measurements.

 

Best wishes,

Wallace F.

 

 

National Instruments
Applications Engineer
0 Kudos
Message 3 of 3
(3,129 Views)