LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

IEEE 728 standaard to LabVIEW float conversion

Hello LabVIEWers ,

I am having trouble converting a string of binary data from an GPIB-device,
containing IEEE 32bit data.
This data has to be converted into an LabVIEW floating point array.
I can't seem to find the answer, probably I should convert using "typecast"
or "unflatten" functions,
possibly in combination with a byte-swap, but nothing seems to work.
I am sure this has already been done lots of times.
I use LabVIEW 7.1 with windows2000 if that matters.
Any help will be appreciated ,

René Ramekers





0 Kudos
Message 1 of 3
(3,139 Views)
Are you referring to something like reading a waveform from a PSA? I've done this and I did not have to use a typecast. Does the instrument manual say you have to do something special in order to interpret the data?

FYI: In my case I just fed the output of the VISA Read function to a SpreadSheet String to Array function that had 1D array of DBLs as the conversion datatype.
0 Kudos
Message 2 of 3
(3,126 Views)
I found the solution myself ; it appears that the actual 4 or 8 bytes
containing the single or double values where
wrapped in a string which added a header and a footer around these values .
Srtipping them and then typecasting to arrays of doubles or singels did do
the trick.

René


"René Ramekers" <rra@oce.nl> wrote in message
news:1143452597.760856@news-ext.oce.nl...
> Hello LabVIEWers ,
>
> I am having trouble converting a string of binary data from an
GPIB-device,
> containing IEEE 32bit data.
> This data has to be converted into an LabVIEW floating point array.
> I can't seem to find the answer, probably I should convert using
"typecast"
> or "unflatten" functions,
> possibly in combination with a byte-swap, but nothing seems to work.
> I am sure this has already been done lots of times.
> I use LabVIEW 7.1 with windows2000 if that matters.
> Any help will be appreciated ,
>
> René Ramekers
>
>
>
>
>


0 Kudos
Message 3 of 3
(3,121 Views)