Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

I cannot acquire more than 5 Channels with the SCAN_op function

Any time that i try to acquire data from more than 5 channels in labwindows CVI, i get an error that says "BadchanError - A channel, port or counter is out of range for the device type or the device configuration." I am using the function call:

SCAN_Op (1,14,chan, gain, buffer2, 1400, 1000, 100);

where buffer2 contains 1400 elements, chan contains 14 elements (0-13) and gain is an array of 1s. I initialized the card by using

Init_DA_Brds (1, &b_code);

do i need to perform more initializations? how can i make this function read 14 channels of data?
0 Kudos
Message 1 of 3
(2,486 Views)
Greetings,

It appears that you are using the SCAN_Op function correctly. Do you receive this same error if you execute the SCANsingleBufSync.PRJ example with more than five channels? Additionally, what hardware are you using?

Let me know.

Spencer S.
0 Kudos
Message 2 of 3
(2,486 Views)
Thanks for the help, but i figured out that i needed to initialize the Channels on my DAQ- Card (6036E) as non referenced single ended in MAX, i didnt realize that i had it initialized as differential, which solved the problem.
0 Kudos
Message 3 of 3
(2,486 Views)