943,525 Members | Top Members by Rank

Ad:
Jun 8th, 2004
0

Sending hex over serial in QB

Expand Post »
I need to write a program in Quickbasic that will send hex in 1 byte format over the serial port. They have a plasma display where my dad works, and since my dad hasn't coded in basic for years, he commissioned me to do it, but I have no experience in Hex. So basically, I just have to send 1 byte hex numbers over the serial port to control the display. Any help?
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
akela is offline Offline
1 posts
since Jun 2004
Jun 8th, 2004
0

Re: Sending hex over serial in QB

Quote originally posted by akela ...
I need to write a program in Quickbasic that will send hex in 1 byte format over the serial port. They have a plasma display where my dad works, and since my dad hasn't coded in basic for years, he commissioned me to do it, but I have no experience in Hex. So basically, I just have to send 1 byte hex numbers over the serial port to control the display. Any help?
If you send a character, it doesnt matter whether it's hex or not.

Hex is just another numbering system. It can make a difference when sending
large numbers (like 8 bytes of information or so).
but,
Esc for example (escape) is 27 decimal, 1b hex but it's the same character.
either way and the same value either way.
Reputation Points: 11
Solved Threads: 0
Light Poster
Buff is offline Offline
40 posts
since May 2004

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Visual Basic 4 / 5 / 6 Forum Timeline: Adding Totals from Listbox DB (DAO)
Next Thread in Visual Basic 4 / 5 / 6 Forum Timeline: grabbing source from excel file (was: please, somebody help me!!!)





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC