From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

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
(3,894 Views)

Sorry it is Normal string to Hexa string

0 Kudos
Message 2 of 8
(3,893 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
(3,884 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
(3,879 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
(3,875 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
(3,874 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
(3,870 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
(3,867 Views)