01-28-2007 08:27 PM
01-29-2007 01:50 PM - edited 01-29-2007 01:50 PM
Hello Rob,
Every channel on every 9201 module will have their own calibration constants, so you need to read them from the specific module in your LV FPGA VI and then apply them to the binary data from the same module when it is converted from binary to voltage in the RT VI.
The calibration constants are stored in an EEPROM on the module which is written in the factory before the module is sent out. Each channel has slightly different constants as the individual components that are part of the ADC will vary slightly from one another. Therefore the offset for a specific ADC is measured in the factory, programmed in the EEPROM, and then applied in the scaling procedure to remove this inherent offset.
In my case the offset for the channels on my 9201 are around -9000000, so -12000000 seems to be in the possible range. The offset is measured in nanovolt.
I have attached a basic cRIO-9201 example with calibration.
Message Edited by Christian L on 01-29-2007 01:51 PM
01-29-2007 02:12 PM
01-29-2007 02:13 PM
01-29-2007 02:33 PM
Christian,
Thanks for your response. Since my posting, I have swapped 9201 modules between controllers, and it seems to be the controller that is not processing the reading properly. When I read the voltage off of the module from the RT code, it is around 1.7 volts low. I probed the binary value coming across, for a 5 volt signal, I read a binary value of 640 for the low voltage controller, and 970 for the correct voltage readout.
So, it seems to follow the controller, not the module. When I put the 9201 from the questionable unit into another identical CRIO chassis/controller, it read correctly, and when I put another 9201 module into the questionable unit, it still read low. It seems like too much of a coincidence that this module was one that once had a 9215 module in that slot, and worked fine. Is there any file stored on the controller that could be affecting this? Is there anything that I could be missing?
Thanks,
Rob
01-29-2007 03:34 PM
Rob,
I can't explain why one controller or chassis would have this behaviour. I would expect it to track with the module.
What is the source of the voltage that you are measuring? Can you confirm the proper voltage using a volt meter on the input of the module? Can you include a snapshot of the relevant FPGA and RT code from the controller and FPGA that are giving you problems.
01-29-2007 03:47 PM
Christian,
I am attaching screen shots of the parts of my FPGA code - getting the AI cal data, and sending the AI data to a cluster on the front panel which I read with the RT. I wrote a very simple RT code to read the binary value and convert it to volts.
BTW, I also verified this with the example that Chetan suggested. I am reading several signals, one of which is a 5V signal directly from a power supply. I have verified that it is 5V with a meter. It reads around 3.3 volts in the RT code.
Rob
01-29-2007 04:43 PM
01-29-2007 04:54 PM
01-29-2007 05:21 PM