LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

bytes switch

Hi, i was wondering how would be able to switch numbers around. I want to do this is hex.
For example 100 in hex is 64

i want to be able to write it as 0x64 0x00
for 256 written as 0x00 0x01
and for 1000 which is normally 0x03 0xE8
written as 0xE8 0x03.


Thanks,

0 Kudos
Message 1 of 2
(2,452 Views)


@wqvong wrote:
Hi, i was wondering how would be able to switch numbers around. I want to do this is hex.
For example 100 in hex is 64

i want to be able to write it as 0x64 0x00
for 256 written as 0x00 0x01
and for 1000 which is normally 0x03 0xE8
written as 0xE8 0x03.


The 'Swap Bytes' function may be of use to you (Functions>Advanced>Data Manipulation if you have LV7 or lower ... but I think it was moved to some other palette in LV8).
=====================================================
Fading out. " ... J. Arthur Rank on gong."
0 Kudos
Message 2 of 2
(2,443 Views)