04-20-2011 01:03 PM - edited 04-20-2011 01:04 PM
This would be easy, but it's on FPGA.
I would essentially like to do what is shown, but with Fixed Point data. I also need my output from the add function to be <+,32,0> because it is going into a sine wave generation VI as the frequency. Basically I just want the frequency to slowly increase by "step size" at some predefined rate. Is it possible to do this? There must be some way I can do number to boolean array then boolean array to number, do some bitwise manipulation and convert back to the fixed point type I want. But, I can't figure it out. I have also read some of the fixed point articles on NI.com but with no luck getting it to work. Frankly, fixed-point math still eludes me.
Any suggestions?
Solved! Go to Solution.
04-20-2011 01:18 PM - edited 04-20-2011 01:19 PM
Ah, what the method of trial and error will do for you.
This seems to work.
04-20-2011 02:03 PM
You can also configure the output of the Add function by right-clicking and specifying the output type. LabVIEW automatically changes the output to a double to account for overflow of the fixed-point value, but you can override this and you will see a blue dot at the output to notify you that the output configuration has been coerced, similar to the red input coercion dot.
04-20-2011 02:06 PM
@Donovan B wrote:
You can also configure the output of the Add function by right-clicking and specifying the output type. LabVIEW automatically changes the output to a double to account for overflow of the fixed-point value, but you can override this and you will see a blue dot at the output to notify you that the output configuration has been coerced, similar to the red input coercion dot.
That sure is cleaner!