LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how can I convert borland pascal 6-byte real value to labview type

while attempting to convert a 6-byte borland pascal real number to a LabVIEW data type, I get strange results. Does anyone have previous experience with this?
0 Kudos
Message 1 of 4
(3,041 Views)
Maybe these two links will help you solve the problem.(especially the second one)
[http://members.tripod.com/~oldboard/assembly/floatformats.html]
[http://www.merlyn.demon.co.uk/pas-type.htm]

Good Luck ... and let us know if it's working
0 Kudos
Message 2 of 4
(3,041 Views)
The significant difference is that as borland describes it's pascal real 6-byte method, the mantissa 39-bits are sandwiched inbetween a single sign bit in front (msb), and the exp byte at the end (lsb). In turbo pascal, as described in the link you've given me, the exponent and sign bit are in front, mantissa in back. This would definetly explain the output I've been seeing. Thanks again...
0 Kudos
Message 3 of 4
(3,041 Views)
Your problem may be in how the two different environments store the number. I'm not sure how 6-byte pascal number is stored - here is some info on how doubles are stored in LabVIEW.

http://zone.ni.com/devzone/conceptd.nsf/2d17d611efb58b22862567a9006ffe76/370dfc6fd19b318c86256a33006bfb78?OpenDocument

Chris_Mitchell
Product Development Engineer
Certified LabVIEW Architect

0 Kudos
Message 4 of 4
(3,041 Views)