Measurement Studio for VB6

cancel
Showing results for 
Search instead for 
Did you mean: 

Error 10370

I'm trying to programmatically add channels at run time. I'm using Measurement studio (VB), SCXI-1100, SCXI-1303, and a PCI6052E. This is what causes the error:
CWAI1.Channels.Add "OB0!SC1!MD1!2",5,-5
CWAI1.Channels.Add "OB0!SC1!MD1!10",0.01,-0.01
CWAI1.Configure '''''This line will cause RT error #10370
0 Kudos
Message 1 of 5
(3,384 Views)
The KB article Scanning Multiple, Non-sequential Channels from SCXI Modules might be helpful here.

- Elton
0 Kudos
Message 2 of 5
(3,384 Views)
10370 means "Invalid Scan List". Click here for more information on why you are getting this error. In essence, the SCXI-1100 does not support random scanning with NI-DAQ (i.e. scanning channel 2, then 10). Instead, you must scan all of the channels up to the last one you are interested in and then just discard the other data.

Tony
Measurement Studio
0 Kudos
Message 3 of 5
(3,384 Views)
This approach would work for me, but what if I need 2 different gains for the channels? i.e. Channel 2 is a pyrometer (0-5V) and channel 10 is a Thermocouple.
0 Kudos
Message 4 of 5
(3,384 Views)
The SCXI-1100 module has a single programmable gain amplifier and so all of the channels on the 1100 will pass through the same gain. You can set the input limits for each channel, like you have done, and the data acquisition device will apply a different gain that is optimal for each limit. If you are only going to have two inputs, why don't you connect the pyrometer to channel 0 and the thermocouple to channel 1. This will eliminate the error you are receiving.
0 Kudos
Message 5 of 5
(3,384 Views)