LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Convert string to hex

I want to convert an appended path string like (0000 3D11 03) reads from a text file to a Hex "string" 0000 3D11 03

0 Kudos
Message 1 of 8
(4,155 Views)

Did you try searching the forums first?

 

You probably want to do a Scan From String.

0 Kudos
Message 2 of 8
(4,149 Views)

Your question is not clear, since you use the word string in both cases and you seem to know the meaning in your head. Unfortunately, we are not mind readers. In the first "string" is that actually a sequence of bytes? Where does it come from. Is the second string a sequence of letters? In other words, in the second "string" is the "D" the letter "D", or the hex value of D? There are two different things.

0 Kudos
Message 3 of 8
(4,143 Views)

I read in a text document from a server different HEX values ​​depending on the equipment used. The Hex value is sent to a VI for TMT commands.
And the entrance which must be presented as HEX display (if i right click to the constant to the entrance).

0 Kudos
Message 4 of 8
(4,114 Views)

I am still not clear..Smiley Sad

Can you please post your code, what you have done so far. Then explain what you are not getting.

It might help us in suggesting a solution.

Gaurav k
CLD Certified !!!!!
Do not forget to Mark solution and to give Kudo if problem is solved.
0 Kudos
Message 5 of 8
(4,094 Views)

Hi,

i guess one of those can help you.

 

Mike

0 Kudos
Message 6 of 8
(4,092 Views)

The problem is that I can not change the input of TMT command VI.
So the incoming string must be in HEX display format to the TMT command VI

0 Kudos
Message 7 of 8
(4,075 Views)

@LVdummies wrote:

The problem is that I can not change the input of TMT command VI.
So the incoming string must be in HEX display format to the TMT command VI



I'm confused by your statement here.  An input to a subVI doesn't have to be in any particular display.  A string shows data as characters in normal display is still the same as a string showing the data with hex display.  There is no difference in data, the only difference is the way the data is displayed to the user.

0 Kudos
Message 8 of 8
(4,046 Views)