Driver Development Kit (DDK)

cancel
Showing results for 
Search instead for 
Did you mean: 

AI scaling range

Solved!
Go to solution

Hello,

 

I have a issue with the AI scaling with a NI6229 Device.

Set the Input to 0.0V, then is the return value of aiPolynomialScaler(..) -10.63V and if the input 10V, i get -0.63V.

And this will continue linearly:

Input         Output

-10.0V ->  0.63V

  -5.0V ->  5.63V

   0.0V ->  10.63V

   5.0V ->  -5.63V

 10.0V -> -0.63V

 

Is there a adjustment for a accurate conversion or I have to do my own conversion scaling?

 

The Parameter "gain" for aiConfiguration(..) is 0 (input range from -10V to 10V).

The Inputsource is a AO-Channel.

 

 Kind regards,

 

Heiko Mayer

0 Kudos
Message 1 of 3
(7,916 Views)
Solution
Accepted by topic author HeikoM
Hi Heiko,

I overlooked the changes you made to the example to get the 622x devices to work, and there's a mistake in your configuration: M Series boards (all 622x, all 625x, all 628x) do not support unipolar AI ranges [1]. In your call to aiConfigureChannel(), you need to use tMSeries::tAI_Config_FIFO_Data::kAI_Config_PolarityBipolar. Another thread in this sub-forum also points this out [2].

[1] M Series Manual, section 4-3, page 49
http://www.ni.com/pdf/manuals/371022k.pdf

[2] register guide for 6220, 6224
http://forums.ni.com/ni/board/message?board.id=90&message.id=1341&query.id=278271#M1341
Joe Friedchicken
NI Configuration Based Software
Get with your fellow OS users
[ Linux ] [ macOS ]
Principal Software Engineer :: Configuration Based Software
Senior Software Engineer :: Multifunction Instruments Applications Group (until May 2018)
Software Engineer :: Measurements RLP Group (until Mar 2014)
Applications Engineer :: High Speed Product Group (until Sep 2008)
0 Kudos
Message 2 of 3
(7,906 Views)

Hello Joe F.,

 

that´s it!

Thanks a lot!

 

Kind regards,

 

Heiko

0 Kudos
Message 3 of 3
(7,889 Views)