Sending hex over serial in QB

Please support our Visual Basic 4 / 5 / 6 advertiser: Programming Forums - DaniWeb Sister Site
Reply

Join Date: Jun 2004
Posts: 1
Reputation: akela is an unknown quantity at this point 
Solved Threads: 0
akela akela is offline Offline
Newbie Poster

Sending hex over serial in QB

 
0
  #1
Jun 8th, 2004
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?
Reply With Quote Quick reply to this message  
Join Date: May 2004
Posts: 40
Reputation: Buff is an unknown quantity at this point 
Solved Threads: 0
Buff Buff is offline Offline
Light Poster

Re: Sending hex over serial in QB

 
0
  #2
Jun 8th, 2004
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.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



Tag cloud for Visual Basic 4 / 5 / 6
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC