Driver Development Kit (DDK)

cancel
Showing results for 
Search instead for 
Did you mean: 

DDK aiex1 example not working on 6230 for 8 channels in RSE mode

I'm using a 6230 card trying to read 8 AIs in RSE mode.  Starting with the aiex1.cpp exampe, I've made the changes listed in the other posts for changing the gain to 0 in the aiConfigureChannel call, commenting out the adcReset, and changing the aiPersonalize to SELECT_ACTIVE_HIGH.  I've changed the setting from Differential to RSE in the aiConfigureChannel for my hardware setup.
 
I'm getting good sample values for channels 0 thru 3, however, sample values for channels 4 thru 7 appear to be values associated with channels 0 thru 3 respectively.  I've varied the input to channel 0 and I see the changes reflected in the samples for channel 4 as well as channel 0.
 
I'm wondering if there are any settings I need to change since aiex1.cpp was used for Differential and only had a single channel. 
 
I've had similar results using aiex2.cpp
 
Thanks,
 
Mike
0 Kudos
Message 1 of 4
(7,360 Views)
I'm running on Windows XP under RTX
0 Kudos
Message 2 of 4
(7,358 Views)
Hi Mike-
 
The AI channels are routed differently on the isolated M Series devices because they feature 8 AI instead of the usual 16AI found on non-isolated M Series devices.  You should be able to access AI channels 4-7 (as labeled on the I/O connector) by referring to them as channels 8-11 in software.  So, you would need to create channels for 0,1,2,3,8,9,10,11 in order to scan all 8 channels on the device.
 
Please give this a try and let me know if you run into any issues.
Tom W
National Instruments
0 Kudos
Message 3 of 4
(7,344 Views)
That was it, all 8 channels are now working.
 
Thanks for the help.
0 Kudos
Message 4 of 4
(7,339 Views)