NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

How to convert noraml string to hexa string in teststand

Hi,

 

I need to send RS232 command in hexa format (type - string), but in teststand it is taking as ASCII characters.

Tried in Labview, working fine, but in teststand i m facing difficult.

 

Please help !

 

Thank you 🙂

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

Sorry it is Normal string to Hexa string

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

Hi,

 

How the "converted" string should look like ?

Like that: "123ABC" --> "313233414243" ?

 

Regards

Juergen

--Signature--
Sessions NI-Week 2017 2016
Feedback or kudos are welcome
0 Kudos
Message 3 of 8
(4,545 Views)

Example : 02000111800151CA , which is of 8byte. This same hexa valu i need send through RS232.

 

when trying with Labview i changed the display format to Hexa and transmitted the command, its working. But how to do that in Teststand, is the question.

 

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

Hi,

 

that means you like to convert  an UINT64 to string right

 

Regards

 

Juergen

 

 

--Signature--
Sessions NI-Week 2017 2016
Feedback or kudos are welcome
0 Kudos
Message 5 of 8
(4,536 Views)

Hi,

 

Just for an Example, which TS version do you have?

 

Juergen

--Signature--
Sessions NI-Week 2017 2016
Feedback or kudos are welcome
0 Kudos
Message 6 of 8
(4,535 Views)

I m using 5.0 and the final output should be hexa string. Convert from number/string no matter.

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

Here you are,

 

Locals.strHex = Str(Locals.u64_Val,"%x")

 

Regards

Juergen

--Signature--
Sessions NI-Week 2017 2016
Feedback or kudos are welcome
0 Kudos
Message 8 of 8
(4,528 Views)