06-12-2009 09:38 AM
Hi, I am trying to communicate to a device using RS232 communications.
The command i need to send in hex is 5054 4958 2001 200A 0D
This cannot be represented by ASCII characters, i.e. it appears as PTIX .
I can achieve this no problem in LabVIEW by setting the string control to 'Hex Display' but when I try to load the hex string via TestStand it becomes 3530 3534 3439 3538 3230 3031 3230 3041 3044 which is the hex display of 5054 4958 2001 200A 0D.
Is there anyway that I can export the hex command into the LABVIEW VI? I tried important the decimal number equivalent and then using convert number to hexadcimal string but this doesn't work as the hexadeciaml string is
505449582001200A0D
but the actual string should be PTIX
I have attached my code and any suggestion would be welcome.
Rgds,
Sean
06-12-2009 12:44 PM
01-15-2025 07:46 PM
Hey SeanJ,
I have created the following sequence with code from TestStand for converting string to hex string, check it out.
01-20-2025 08:23 AM
For the sake of completeness / future readers
SeqEdit is capable of displaying interger numbers also in Hex