10-08-2010 07:26 AM
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
10-08-2010 07:51 AM
Use to Word Integer (I16) on the Numeric >> Conversion Palette.
10-08-2010 10:16 AM
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--
11-24-2010 10:24 AM
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.