LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Formula in LabVIEW

Hi,
We have purchased LabVIEW 8.0 and currently working on a project based on LabVIEW. I have to write out the result from a formula calculation to a parallel port. The result of the formula is a 11 digit decimal number. I need to display the result in HEXADECIMAL format and write it to 3 16bit registers in an external board. But after executing the formula, I'm not able to convert the result to hex format.
I look forward to your reply at the earliest.

Yours faithfully,
Vishnu Rajendran,
JRF,
BCG,
CDAC Trivandrum.
0 Kudos
Message 1 of 3
(2,646 Views)
Check the numeric representation of the result of your calculation. If its a float it has no hex representation - at least in the sense that an integer does.

Mike...

Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
Message 2 of 3
(2,639 Views)
If it does yield a float then you will need to typecast it to an unsigned integer in order to get it into the IEEE-754 spec. You can create an indicator for the unsigned integer, and as Mike indicated, this will have the option of displaying it in Hex on the front panel.
Message 3 of 3
(2,627 Views)