01-19-2008 11:18 AM
01-19-2008
12:30 PM
- last edited on
05-05-2025
09:59 AM
by
Content Cleaner
This might help you, although you will still need to know the Delphi format.
Personally, I think that instead of trying to match both formats, it will be easier for you to read the binary data and convert it directly to a LabVIEW numeric using a matching algorithm (e.g. take each byte, flip it, join the bytes, etc.), since that would require a single conversion. Obviously, the actual implementation will depend on the way the data is formatted, but whether this is better also depends on that.
01-19-2008 12:39 PM
Hi Gary,
According to the reference document tst referred to, Delphi and LabVIEW use exactly the same arrangement and number of bits for sign, exponont and mantissa. But LabVIEW stores EXTs using 16 bytes - with the trailing 6 bytes being padding. You'll want to verify all this, but I think the conversion you're after might be as simple as demonstrated in the attached VI.
Cheers!
01-19-2008 12:57 PM
01-19-2008 01:02 PM
01-19-2008 02:02 PM
Hi Gary,
Quick question! Are there really 11 values per float, (or, have you mischieviously provided an extra "0"
)
01-19-2008 02:52 PM
ecc83 wrote:
0 0 0 0 0 136 235 81 184 30
01-19-2008
03:09 PM
- last edited on
05-05-2025
10:00 AM
by
Content Cleaner
Uhm, something must have gone wrong, the link TST sent,
mentions that LabVIEW stores extended data as 80 bit (10 bytes) on Intel platform.
Complex double is stored as two doubles (=16 byes). My guess is that Altenbach's latest note mentioning the endianess should help you.
If the endiannes is right you should be able to just typecast the data:
01-19-2008 03:40 PM
Is it possible that what we see here is a no-hidden-1 form of the mantissa? This link describes Extended Precision about half-way down the page. If that were the case, then LabVIEW would need the mantissa shifted-left, and the exponent adjusted...
01-19-2008 04:09 PM