Sending Data Thru Com Port Problem
Posted: Sun Dec 05, 2010 8:15 am
I am sorry that I am not well versed in Qbasic.
I am writing a progarm to send data to the serial port in order to control a device which is used in electronics. I must send various characters which is all working except for one problem. I cannot seem to send a CHR$(19).
I am using com port monotoring software to view what is happening. I can send any character to the port, but when I send CHR$(19), is simply skips.
For instance, if I send a string such as CHR$(17); CHR$(18); CHR$(19); CHR$(20), the communication will send three bytes, leaving out the 19.
I am using OPEN "COM1:9600,N,8,!,CD0,CS0,DS0,OP0, RS,RB512,TB512" FOR RANDOM AS #1. I have experimented with other formats, but nothing seems to work.
Any clues?
I am writing a progarm to send data to the serial port in order to control a device which is used in electronics. I must send various characters which is all working except for one problem. I cannot seem to send a CHR$(19).
I am using com port monotoring software to view what is happening. I can send any character to the port, but when I send CHR$(19), is simply skips.
For instance, if I send a string such as CHR$(17); CHR$(18); CHR$(19); CHR$(20), the communication will send three bytes, leaving out the 19.
I am using OPEN "COM1:9600,N,8,!,CD0,CS0,DS0,OP0, RS,RB512,TB512" FOR RANDOM AS #1. I have experimented with other formats, but nothing seems to work.
Any clues?