VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

Telemtry Control

Terry S. Wade  (1 Submission)   Files/File Controls/Input/Output   Visual Basic 3.0   Beginner   Wed 3rd February 2021

This program controls a remote unit across a range. The OFF button sends a "FF" and expects an "FF" within 1/3 of a second otherwise it times out.
The reason I uploaded this is because I could not find a serial program that worked using MSCOMM and ONCOM event.
I did have trouble at first until I read that Microsoft has Rthreshold default as '0'-- it needs to be '1' for the received data event to be captured
I realise this is a very simple program, but it WORKS.
To check this out place a wire/short between pins 2 and 3 on your DB9 serial port. This will route TX to RX on the same port.
I limited it to COM1 and Com2 but others can be added.
I hope this helps someone trying to use the serial port.

Inputs
Serial port DB9 pins 2 and 3

Assumes
Place a wire between pins 2 and 3 on your com1 or com2 DB9 port.

Returns
data from the serial port

Rate Telemtry Control (3(3 Vote))

Download Telemtry Control

Telemtry Control Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters