??? 07/10/09 12:59 Read: times |
#167011 - Guidelines Responding to: ???'s previous message |
Hi Karin
1.- Set ComPort.InputMode = comInputModeBinary 2.- Rest of properties according to needs 3.- For transmiting single byte Dim buffer as Variant buffer=ByteVar ComPort.Output=buffer 4.- For transmiting a byte array Dim buffer as Variant Dim bytevar() as byte Redim Preserve bytevar(n)=array(n) ' make a loop here buffer=array ComPort.Output=buffer Also, using Input, you will get a Variant with a byte array. Check VB help. Best regards Daniel |
Topic | Author | Date |
serial port in vb | 01/01/70 00:00 | |
In VB | 01/01/70 00:00 | |
exmple pls | 01/01/70 00:00 | |
Rule #1 in Serial - Always Test Tx 1st | 01/01/70 00:00 | |
Use 2 PC's to test comm's | 01/01/70 00:00 | |
As I described... | 01/01/70 00:00 | |
thanks. i solve my problem | 01/01/70 00:00 | |
Guidelines | 01/01/70 00:00 | |
In Theory | 01/01/70 00:00 |