11-26-2015 03:13 PM
Hi for all,
i wana implement shematic controller 2 loop
the inner loop need to explain set point expression
the probléme its wiring types because variable are note similar type so i used different converter blocs but don't function what type of convert i must use to set point with division of 2 analog input from FPGA
11-26-2015 08:11 PM
11-27-2015 07:55 AM
my problem is conformity of types after division of 2 input 16 bits integer to set point type f regulator thanks
11-27-2015 05:43 PM
You will need to convert to fixed point numbers to perform the divide.
If you drop a to fixed point on each of the inputs it "should" (but check) convert it to a 16,16 fixed point number which means you don't lose any data but the divide will work.
11-29-2015 12:45 PM - edited 11-29-2015 12:45 PM
please some precision in your responce i'am not expert so you want to say i add 2 converter to fixed point before dividing opération !
for your second solution after dividing i integrate converter ?!! thanks.
11-30-2015 03:03 PM
Hi Rayden,
I believe James Mc was suggesting that you should try to convert each input (Ubus and Ucapa) to fixed point before dividing, instead of converting after division.
Try that and let us know how it works out.
Thanks,
Lauren
Applications Engineer
National Instruments
12-01-2015 02:01 AM
Hi Rayden,
Yes exactly as Lauren said.
We need a number type that can have a fractional part for divide since even if you start with integers you can get a non-integer result. By converting to fixed point before the divide then the output will automatically be a fixed point number which can store the result.
Cheers,
James