shreyasahay92 Posted July 5, 2013 Report Share Posted July 5, 2013 hi, i am doing serial communication via com1 port.i have to send a number 255 to the visa write port such that it reads it as one byte because the binary representation of this requires one byte and not 3 bytes that the string constant would read it as.i want to prevent wastage of bytes. someone please suggest me a way to do so. thanking you, shreya Quote Link to comment
Yair Posted July 5, 2013 Report Share Posted July 5, 2013 Right click the string constant, change its display to hex mode, then type FF into it. This will create a string of length 1, where all bits are 1. Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.