Quantcast
Channel: Digital I/O topics
Viewing all articles
Browse latest Browse all 2184

Digital to Binary conversion!

$
0
0

Hello,

I want to input 22 byte array string to VISA write to control one instrument. I want every byte in not more than 8 bits and some of the bytes in array are the binary 8 bits of some decimal to binary conversion. eg. Machining time is 180,000 milliseconds which converts to Binary in 3 sets of 8 bytes. I want to make 3 seperate bits (high, middle and low) out of it. Maximum value conversion I am getting is 8 bit which is 255. How to divide numbers greater than 255 to seperate 8 bit bytes for one single decimal value?

Thank you.


Viewing all articles
Browse latest Browse all 2184

Trending Articles



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