12-13-2020 03:20 AM
Hi,
I have created a FPGA Personality custom IO project in veristand. But I'm unable to read the correct value of AI Channels.
Steps that I've followed:
1. Created the LabVIEW FPGA Project (as per the defined template)
2. Generated the bitfile.
3. Coded the fpgaconfig file where I have defined the IOs.
4. Loaded this file under FPGA in the Veristand.
I'm able to control the AO but the values of the AI channels are not correct. For eg, It should read constant 5V but instead of it's reading a complete different signal. Image of the signal is attached for the reference.
Kindly help me out if there is something that I'm missing or points that should be added.
Solved! Go to Solution.
12-13-2020 03:06 PM
Typically the issue is in the scaling in FPGA config file
Understanding Scale and Offset
CLA, CTA
12-13-2020 10:51 PM
At the moment, I have placed the following script in the config file:
<FXPI32>
<Name>Hydraulic Oil Temperature (6.0)</Name>
<Description>Analog input channel AI0 on the NI-9205 in Slot 1.1.</Description>
<Category>Input\Analog_Voltage</Category>
<Unit>Volts</Unit>
<Symbol>AI</Symbol>
<FXPWL>20</FXPWL>
<FXPIWL>5</FXPIWL>
</FXPI32>
Is there anything missing in this? Meanwhile I can study the article you have provided.
Thanks a lot.
12-14-2020 01:44 AM
9205 should go with 26/5
<FXPI32>
<Name>AI0</Name>
<Description>Analog input channel AI0 on 9205 Module.</Description>
<Category>Input\Analog</Category>
<Unit>Volts</Unit>
<Symbol>AI</Symbol>
<FXPWL>26</FXPWL>
<FXPIWL>5</FXPIWL>
</FXPI32>
I suggest to install https://github.com/NIVeriStandAdd-Ons/NI-VeriStand-FPGA-Project-Tool if you didn't. There are examples for some of the modules...
~Jiri
CLA, CTA