Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

Configuring NI-DAQmx with two PCI-6221s, each with a SC-2345

I have a data acquisition system running Labview 8.5 under SuSeE Linux. It has a PCI-6122 and a  PCI-6221 that has a SC-2345 connected to it. Configuring it with nidaqmxconfig was fairly straightforward.

To support a new experiment I've added a second PCI-6221 and SC-2345. In the config file, I've named the first 6221 as DAC16A and the new one as DAC16B:

[DAQmxDevice DAC16A]
ProductType = PCI-6221
DevSerialNum = 0x1271254
BusType = PCI
PCI.BusNum = 0x1
PCI.DevNum = 0xA

[DAQmxDevice DAC16B]
ProductType = PCI-6221
DevSerialNum = 0x13037A3
BusType = PCI
PCI.BusNum = 0x1
PCI.DevNum = 0x8

I've set up the first SC-2345 like this:

[DAQmxSCCCarrier SCCA]
SCCConnBlk.ProductType = SC-2345
SCCConnBlk.CabledDev = DAC16A
SCCConnBlk.CabledDevConnNum = 0

[DAQmxSCC SCCA-SG1]
ProductType = SCC-SG24
SCCModule.ConnBlk = SCCA
SCCModule.Slot = 1

With an additional SCC-SG24 in slot 2,  an SCC-TC02 in slot 3, an SCC-AI03 in slot 4, and a SCC-DO01 in slot 9.

I defined the second SC-2345 like this:

[DAQmxSCCCarrier SCCB]
SCCConnBlk.ProductType = SC-2345
SCCConnBlk.CabledDev = DAC16B
SCCConnBlk.CabledDevConnNum = 0

[DAQmxSCC SCCB-TC1]
ProductType = SCC-TC02
SCCModule.ConnBlk = SCCB
SCCModule.Slot = 1

This one has 4 more SCC-TC02s in slots 2, 3, 4, and 5 and a pair of SCC-SG24s in slots 7 and 8.

When I run nidaqmx with --import, it tells me "Slot specified is already occupied" and points me at line 64, which corresponds to the SCCModule.Slot = 1 line for the first TC02 in the second (SCCB) SC-2345.

I assumed that the slot numbers would be relative to the SC-2345 chassis. Do I have to treat slot 1 in the second chassis as slot 21 to clear all of the slots in the first chassis or did I do something else wrong?

thanks,
Chris Johnston
 
0 Kudos
Message 1 of 3
(3,601 Views)
Chris,

You may want to try running nidaqmxconfig with the --eraseconfig arguement. Simply calling nidaqmxconfig -import does not overwrite you current configuration. You may be receiving this error because you have your carrier configured multiple times.

Example:
nidaqmxconfig –import myconfig.ini --eraseconfig

As far as the slot goes, you do not have to treat it as slot 21 in the second chassis. You have configured it correctly.

Also, please see the link below for a good tutorial on using nidaqmxconfig.

Using nidaqmxconfig for NI-DAQmx 8 for Linux
http://zone.ni.com/devzone/cda/tut/p/id/4620
Regards,

Chris Delvizis
National Instruments
0 Kudos
Message 2 of 3
(3,574 Views)
Thanks for the help. I tried the --eraseconfig as you suggested and got the same result, flagging the first slot line in the definition of the first SCC module as before. I eventually noticed that I had missed an edit and the module that was supposed to be TC5 was TC1, overlapping with the first one even though the slot for the TC5 module was correct.

Once I fixed the name the import (with the eraseconfig)  worked fine.  So, it looks like the error was not the module definition for slot 1 in the second carrier, but the fact that the modules in slot 1 and slot 5 had the same name. The odd thing is that the line number of the error appears to be the slot number definition of the first module, not the name of the fifth one.

thanks again,
Chris

0 Kudos
Message 3 of 3
(3,568 Views)