Quantcast
Channel: Instrument Control (GPIB, Serial, VISA, IVI) topics
Viewing all articles
Browse latest Browse all 5663

32 bit byte swap

$
0
0

Hello,

 

I'm trying to read data from Agilent OSA that output the data in 32 bit number through GPIB interface.

 

if the bytes are numberd as 0, 1 , 2, and 3 - I need to swap 0 and 3, 1 and 2.

 

that is: to start with 0/1/2/3 and to end with 3/2/1/0.

 

can someone help how to do that for each 32 bits?


Viewing all articles
Browse latest Browse all 5663

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>