NI Home
Cart Cart | Help
Hello Events Academic NI Developer Zone Support Solutions Products & Services Contact NI MyNI
You are here: 
NI Home > NI Developer Zone > NI Discussion Forums


Reply
Member
erfigge
Posts: 15
0 Kudos

sbRio analog input scaling

I have an sbRio 9612 and I'm building an application that takes analog inputs (0 - 10 vdc) and scales them to an engineering unit like psi for example.  I know how to do the scaling directly on the properties of the analog input, but I was wondering if it is possible to get to those properties in the realtime?  Basically the inputs should be calibrated every 6 months, and if I want to calibrate the entire system from the sensor to the actual input then I need a way to adjust the scaling or calibration of the input in the labview realtime. 

 

Here is the example process.

 

1) Put a known pressure on the pressure sensor, for this example 10 psi.  The pressure sensor generates a voltage that goes into AI0 and that scales it to 10.1 psi, so I want to be able to calibrate it back to 10 psi. 

 

Any built in methods to do this?

 

Active Participant
Jeff-P
Posts: 230
0 Kudos

Re: sbRio analog input scaling

Hi,

 

it sounds like what you are trying to do can be done in your RT controller using read/write controls on the FPGA interface palette. That will let you update the values on the FPGA from your RT controller to tune your input scaling.

 

Regards,

Member
erfigge
Posts: 15
0 Kudos

Re: sbRio analog input scaling

Well, I'm actually not using the FPGA, I'm using the scan interface on the RT controller.  I have found a few things but none that let me adjust the scaling or calibration factors.

Active Participant
Jeff-P
Posts: 230
0 Kudos

Re: sbRio analog input scaling

So are you trying to change the scaling variables on your RT controller from your host PC?

Member
erfigge
Posts: 15
0 Kudos

Re: sbRio analog input scaling

Yes, in some way or form.  We currently interact with an aftermarket io setup and I pass calibration values to it via network variables.  I would like to do the same sort of thing now with the actual NI io.

Active Participant
sachsm
Posts: 756

Re: sbRio analog input scaling

It is unfortunate that there is not a direct way to programatically modify the scaling factors on a RIO scan engine IOV.  This information is defined in the project and deployed to the target encoded into a file called variables.xml.  It is possible to decode this XML file, modify the scaling factor, replace the original file and then reboot.  I have mentioned this in a LabVIEW RT idea post but never got any traction.  It seems fundamental that if you offer scaling configuration in the project you should be able to programmatically modify it in a built application.

Member
erfigge
Posts: 15
0 Kudos

Re: sbRio analog input scaling

I would agree, that is a pretty big oversight.  Do you have any suggestions on easy ways to be able to calibrate io's?  Can you do something like that with FPGA?  I haven't really needed to use the FPGA to this point and if I don't have to I don't want to, but if this can be done in the FPGA then that would be a pretty compelling reason to make that switch.

Active Participant
sachsm
Posts: 756
0 Kudos

Re: sbRio analog input scaling

By using this web site, you accept the Terms of Use for this web site. Please read these Terms of Use carefully before using any part of this site. Please go here for information on ni.com's copyright infringement policy.
My Profile | Privacy | Legal | Contact NI © 2011 National Instruments Corporation. All rights reserved.    |    E-Mail this Page E-Mail this Page