12-11-2007 01:58 PM
12-12-2007 06:50 AM
12-12-2007 07:13 AM
The Binary to Nominal.vi is shipped as part of the LV FPGA examples that illustrate how to convert binary data from cRIO analog input modules into scaled and calibrated real world units (volts, amps, etc.) This VI can not be used on the FPGA as it uses double precision floating point numbers. It should be used in the host VI which runs either in Windows or LV RT.
The raw binary data from the analog input modules must be tranferred from the FPGA to the host VI before it can be scaled and calibrated using the Binary to Nominal VI. You must also transfer the calibration constants from the analog input module to the host VI for the scaling and calibration process. See the example shipped with cRIO for each module type that illustrate this process.
12-12-2007 07:15 AM
Hi Graham,
thank you so much for your reply. Please find my vi attached (in word document). What I want to do is to convert the binary of channel AI0 which is 6407225 (refer to the front panel in the attached document) to a nominal value. If I do manual calculation by following the calculation procedure shown in Binary to Nominal.vi (also attached), with Ch 0 Callibration LSB Weight 1252909 and offset 7951587, I can obtain 8.04. This is exactly the value of the battery connected to Ch 0.
However, at this present stage as no double is supported in FPGA vi, this calculation cannot be done automatically.
I am using Labvew 8.2.1, but I can get 8.5 installed in both my cRIO and my computer if this solves the problem. Please let me know what you think.
Thanks,
Dedy
12-12-2007 07:53 AM
Dear Christian,
thank you for your feedback. I will run my Compact RIO as a stand alone system. That means the only way I can get callibration constants is to run the compact RIO systems whilst it is connected to the host computer. My question is, can the callibration constants change after say 7 days?
My idea is to run CompactRIO for 7 days on its own. The data from all channels will be saved into the nonvolative memory. After 7 days I will copy the data from the Compact RIO to my computer and convert the data manually using the callibration constants which I obtained previously. Would this be acceptable approach? Or the callibration constant will also change as time elapses and therefore I should also save these to the nonvolatile memory?
Thank you in advance for your time
Dedy
12-13-2007 10:36 AM