03-20-2008 05:51 AM
03-20-2008 07:58 AM - edited 03-20-2008 07:58 AM
Hi,
Change the representation to fixed-point and fill in the Fixed-Point Configuration according to the properties of the fixed point data type on the FPGA.
Once the fixed point data is converted, you can use the numeric conversion VIs to convert the data to any representation that is needed on the host.
03-20-2008 09:41 AM - edited 03-20-2008 09:43 AM
03-25-2008 08:53 PM - edited 03-25-2008 08:54 PM
This is a simple type cast issue.
Use the number to bool array function, then bool array to number. If you pull up the properties on the bool array to number you can then set the type to U32
This does a type conversion, it does not change the actual bits, but rather how Labview interprets the number.
In the host it is easier, you can pull your U32 out of DMA and use the type cast function to cast it back to the I32 type.
Type cast is NOT type convert.
03-27-2008 06:11 AM
Thank you Dustin,
After the convert I keep the signe of my data.
But, I don't understand how it's work.
For exemple:
On FPGA I have a I32 signe number. The max number is 2^32.
I convert this number in a U32. What is the max number? How he keep the signe of the number?
On Host
I convert the number in a I32. (I have the signe number) The max number is 2^32.