Signal Conditioning

cancel
Showing results for 
Search instead for 
Did you mean: 

Non-sequential scanning with SCXI and Labwindows/CVI

I'm trying to scan channels 0 and 2 (skipping channel 1) of a SCXI-1520 module with a SCXI-1000 chassis using LabWindows/CVI, but am getting error 10370 (Invalid Scan list).

I've read here that the SCXI-1520 module supports non-sequential scanning, even with traditional NI-DAQ drivers, but I can't get this working.

I'm using NI-DAQ 6.9.3 and LabWindows/CVI 6.0.

I'm not using a channel string, but intead am using SCXI_Track_Hold_Setup and SCXI_SCAN_Setup.

For the scan setup my arrays are:
Module_List={1,1}
#_of_Channels_List={1,1}
Start_Channel_List={0,2}

I've tried setting the Hol
d_Count for the module to both 1 and 2 in SCXI_Track_Hold_Setup, but that doesn't help.

Is this possible, and if so, how?
0 Kudos
Message 1 of 3
(3,155 Views)
Hello Chris,

Yes, it should be possible to scan multiple, non-sequential channels using this module.

What are the other parameters being passed in to SCXI_Track_Hold_Setup and SCXI_SCAN_Setup? Also, it would be great if you could post all or part of your code.

Thanks,
Ken S.
National Instruments
0 Kudos
Message 2 of 3
(3,155 Views)
OK, in essence, my code is:

SCXI_Reset(chassis,-1);
SCXI_Load_Config(chassis);
hold_count=2; // Note: Tried 1 but that doesn't work either.
SCXI_Track_Hold_Setup(chassis,slot,2,2,0,hold_count,device);
// Note: tried 2,0,2 but doesn't work either, and then can't scan multiple modules.
SCXI_Set_Gain(chassis,slot,-1,1);
SCXI_Set_Excitation(chassis,slot,-1,VDC,5.0,&actual);
SCXI_Configure_Filter(chassis,slot,0,BYPASS,0);
SCXI_Configure_Filter(chassis,slot,2,BYPASS,0);
SCXI_Configure_Connection(chassis,slot,-1,QUARTER);
num_modules=2;
Module_List={1,1};
Channels_List={1,1};
Start_List={0,2}
SCXI_Scan_Setup(chassis,num_modules,Module_List,Channels_List,Start_List,device,0);
// This causes error -10370:badScanListError

Any help greatly appre
ciated!
0 Kudos
Message 3 of 3
(3,155 Views)