Driver Development Kit (DDK)

cancel
Showing results for 
Search instead for 
Did you mean: 

ni 6111 problems

Hi,
 
I am using a NI 6111 under Win XP + RTX.
 
Using the DDK example aoex1, there is an offset of about 0.4 volts on channel 0. (Channel 1 is fine)
 
I thought that the card needed calibrating until I ran NIs Measurement & Automation software.
This indicates an error of the order of 40 millivolts.
 
However after running this software, the DDK example then produces the correct output voltage.
This persists until I power down the PC and restart it. Then the 0.4 volts offset reappears.
 
I wrote a small program using nidaq.
 
AO_Configure(1,0,0,0,10,0);
AO_VWrite(1,0,5.0);
 
If I run this prior to running aoex1, I get the correct output.
 
It is the AO_VWrite call that fixes the error.
 
My conclusion is that the example code does not setup the card properly.
 
I have two of these cards in two separate PCS, both exhibit identical behaviour.
 
I'd be grateful for any pointers
Russell Thamm
0 Kudos
Message 1 of 2
(6,655 Views)
0 Kudos
Message 2 of 2
(6,637 Views)