NI VeriStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Unable to read proper value of AI Signals

Solved!
Go to solution

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.

Best Regards,
Prince Agarwal,
Certified LabVIEW Developer
0 Kudos
Message 1 of 4
(220 Views)

Typically the issue is in the scaling in FPGA config file

https://zone.ni.com/reference/en-XX/help/372846M-01/veristandmerge/creating_custom_fpga_configuratio...

Understanding Scale and Offset

CLA, CTA, CLED

0 Kudos
Message 2 of 4
(195 Views)

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.

Best Regards,
Prince Agarwal,
Certified LabVIEW Developer
0 Kudos
Message 3 of 4
(184 Views)
Solution
Accepted by topic author Prince17

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, CLED

Message 4 of 4
(167 Views)