LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

conversion fixpoint to Int16 on fpga

For my PID  output at the FPGA  I need an I16. As I get only FXP I need a conversion....Fixpoint to I16....working with LV 2009.

 

Thanks for your help,

tom.tony

0 Kudos
Message 1 of 4
(3,272 Views)

Use to Word Integer (I16) on the Numeric >> Conversion Palette.

Visualize the Solution

CLA

LabVIEW, LabVIEW FPGA
0 Kudos
Message 2 of 4
(3,263 Views)

 

  Hello,

 

  Are you saying you get fixed-point from an Analog Input channel? If this is the case, you can change that directly to make your analog inputs "RAW" instead of "calibrated".   If they are RAW, they will be in integer form based on the number of bits your analog channel is, thus if you have a 16-bit analog input, then it will be in I16 form where 32768 is +10 volts, and -32768 is -10 volts.  When they are calibrated, it automatically converts the input to actual voltage values in fixed-point notation (to allow for decimal values of voltage). If this is a different type of  input, say from a signal conditioning module NI-9237, it does something similar but the conversion is a little more complex.

  Which FPGA are you using, and which modules if any?

 

 --Alex--

0 Kudos
Message 3 of 4
(3,256 Views)

The conversion button worked for our app, but with the PID gains only available as FXP on the FPGA we did not get a good regulation of our hydraulic. I solved the problem by using a PID on the FPGA only available at LV 8.6 (or older). With this PID it was possible to get the PID gains in Int16 and the regulation worked.

0 Kudos
Message 4 of 4
(3,163 Views)