LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to find start byte in hex string

Solved!
Go to solution

Hi, I'm a freshman for Labview.

I want to find the start bytes in Hex string. For example, 12 1A 00 34 1A 01 23... How can I get my 3 bytes data out of the hex string which is started at '1A'?

Thank you for your help.

0 Kudos
Message 1 of 3
(2,701 Views)
Solution
Accepted by topic author shouzhi

You will need to provide more information. Do you have a string that has byte values like that? In other words, do you have the string control/indicator set to "hex display mode", and what you provided is what you have? Or, do you have the string in normal display?

 

If it's in hex display mode, then use one of the string functions to get a string subset. Have you looked in the string palette?

 

If it's in normal display mode then you need to convert every 2 characters to hex values.

 

 

To learn more about LabVIEW it is recommended that you go through the tutorial(s) and look over the material in the NI Developer Zone's Learning Center which provides links to other materials and other tutorials. You can also take the online courses for free.

0 Kudos
Message 2 of 3
(2,689 Views)

I figure it out. Thanks.

0 Kudos
Message 3 of 3
(2,663 Views)