LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

VISA string ordering

I am trying to read data from a device using a com port and visa read write in LV.  I get back a string that is:
 
0000 6753 1002 0000 4008 0016 16C0 6C62 6D6A 6D28 98B4 9776 6D02 C5FF 81A4 060A
 
when it is supposed to be:
 

81ff 6a4 a 6700 1053 2 4000 8 1616 6cc0 6d62 6d6a 9828 97b4 6d76 c502 (I have to find out if this is padded with zeros or not)
 
I have tried different ways of arranging this  and have had little success.
 
 
Any suggestions?
 
 
Andrew Lynch
0 Kudos
Message 1 of 7
(3,082 Views)
The string is padded.  It is:
 
81FF 06A4 000A 6700 1053 0002 4000 0008 1616 6CC0 6D62 6D6A 9828 97B4 6D76 C502
0 Kudos
Message 2 of 7
(3,069 Views)

Hi labstew;

this is the string you get:
0000 6753 1002 0000 4008 0016 16C0 6C62 6D6A 6D28 98B4 9776 6D02 C5FF 81A4 060A

and this the padded:
81FF 06A4 000A 6700 1053 0002 4000 0008 1616 6CC0 6D62 6D6A 9828 97B4 6D76 C502

Is this the information you need?

Mike

0 Kudos
Message 3 of 7
(3,063 Views)

Yes, I need to re-arrange the string that comes from the visa read function

(0000 6753 1002 0000 4008 0016 16C0 6C62 6D6A 6D28 98B4 9776 6D02 C5FF 81A4 060A)  

so that it looks like the padded version 

(81FF 06A4 000A 6700 1053 0002 4000 0008 1616 6CC0 6D62 6D6A 9828 97B4 6D76 C502)

 

Andrew

0 Kudos
Message 4 of 7
(3,057 Views)

labstew,

Are you reading data that is being constantly transmitted from some sort of instrument?

0 Kudos
Message 5 of 7
(3,042 Views)

Hi labstew,

here is a function to convert it.

Mike



Message Edited by MikeS81 on 04-25-2008 07:50 PM
Message 6 of 7
(3,038 Views)

Worked perfectly, thanks mike.

 

Andrew

0 Kudos
Message 7 of 7
(3,027 Views)