02-25-2013 06:52 PM
I'm trying to create a virtual channel in LabVIEW. First I created it in MAX with success. Then I tried creating it in LabVIEW and got error -200855. I used the same input parameters in LabVIEW as in MAX. Why does it work in MAX but not LabVIEW. I am using the DAQmx Create Channel.vi with the AI_Temperature_Thermocouple option to create the virtual channel. I'm using LabVIEW 2011 with a cDAQ-9188 connected via ethernet to my PC. There are NI 9213 and NI 9214 modules in the cDAQ.
As a side note; I have successfully created virtual channels in LabVIEW before. They were all voltage channels with high speed and SCXI cards. Is there a way MAX can see these channels even though I have created them in LabVIEW?
02-26-2013 01:18 PM
I've enclosed the error.
I do create other virtual voltage channels prior to creating thermocouple channels. However, the physical channels are not on the same card or the same chassis. The voltage channels are on high speed and SCXI cards each in their own separate chassis.
02-27-2013 01:50 PM
I've enclosed VIs and typedefs. The problem occurs in "Setup All TC Channels.vi" at the DAQmx Create Channel (AI-Temperature-Thermocouple) call.
My program calls a configuration file (see AnalogConfig - Copy.csv) and sets up voltage channels and thermocouple channels. It uses "Setup All Voltage Channels.vi" to setup the voltage channels and "Setup All TC Channels.vi" to setup the thermocouple channels. These subVIs are called within "SetupChannels.vi." The parameters for each channel are found in the configuration file. There are no problems setting up the voltage channels.
I tried using the DAQmx Physical Channel Name of "SC1Mod3/ai1" (channel on a card in a SCXI chassis) even though I don't have hardware setup this way and got this error:
Error -200576 occurred at DAQmx Create Channel (AI-Temperature-Thermocouple).vi:1
Possible reason(s):
CJC Source cannot be set to Built-In for the specified thermocouple channel. The physical channel does not support a built-in CJC temperature sensor.
If your hardware contains a CJC temperature sensor on the physical channel corresponding to the built-in CJC source, make sure that the hardware configuration (including any accessories and/or terminal blocks) is correct. Alternatively, specify a different CJC Source, or use hardware with a built-in CJC temperature sensor.
Channel Name: Fwd LL Air Temp
Task Name: _unnamedTask<41>
Could the problem be I don't have a valid DAQmx Physical Channel Name for a channel on a card in a cDAQ chassis that is connected via ethernet? I have changed the host name of the cDAQ chassis to "cDAQ1."
02-27-2013 06:23 PM
I have used the example program "Cont Acq Thermocouple Sample-Int Clk-Accessory Status-PXIe4353.vi" (found in example>DAQmx>Analog In>Measure Temperature.llb) with my parameters and had success. I deleted the 'Accessory' portion of the example.