11-12-2009 11:16 AM
Hello Experts,
I just stuck in a simple problem. actually i am having an array of HEX string which i want to convert into HEX number format, i am looking for this conversion. I think this will be simple but i can not make this working. Please see the attach image for more understanding.
Cheers harry and thnaks in advance
Solved! Go to Solution.
11-12-2009 11:27 AM - edited 11-12-2009 11:28 AM
11-12-2009 01:03 PM
Remember to SHOW RADIX too! You may remeber that the data is displayed in Hex but the next guy might see "100"
is that equal to 0d4, 0d64, 0d100, or 0d256?
11-12-2009 01:12 PM
Thanks for the quick reply,
actuallz the flow of the program is always in decimal and i need the flow as well in the HEX that is teh third party VI needs the HEX string only, may be some thing i am doing wrong. see the attach image. The probe 2 is showing the decimal value.
value.
11-12-2009 01:26 PM - edited 11-12-2009 01:32 PM
A numeric probe defaults to decimal display. if you want to see it in hex on a probe First customize a numeric control with the desired display properties and save it. Then select Custom probe and select your control.
11-12-2009 02:39 PM
Harry,
You can do this (and many other string-to-number conversions) with scan from string. %x tells LabView the input data is hex. There are also slew of string-to-number functions (e.g. "hexidecimal string to number") which might be faster if you are doing this 100,000 times in a loop, but scan-from-string will solve 99% of your problems.
-Rob
11-13-2009 04:26 AM
Hello Guys,
I find the solution I think we all are correct and now my VI is working this day, we all are right these are the different ways,
well i get the problem as there was a bug in third party VI.
Short description: we have a sucess bollen out, if failure occur it gives out the error and will not run anny other vi after that. so this was teh problem.
Any way much thanks for all the sugestion.
The thing i lioke labview is the people who uses this are really nice. thanks a lot to all above.
Regards
harry