Visual Basic Parallel/Serial port question [Archive] - SpeedGuide.net Broadband Community

View Full Version : Visual Basic Parallel/Serial port question


corkymccorkle
05-09-02, 09:40 PM
ok, first heres what i want to achieve:

Suppose i have a temperature sensor that sends out an analog value(e.g. a varied voltage), and i have a Visual Basic prog that i'm proggin. What i want to accomplish is my vb program being ablew to read the value being inputted from either the Parallel(LPT) port, or the Serial port.

What i need to know:

what the voltage rating for the LPT port is, the voltage rating for the Serial port, and how i can acces these values from within Visual Basic....


This help is really needed, thanx a bunch

Tryn
05-09-02, 10:51 PM
I have never tried this but these sites might help you
http://ourworld.compuserve.com/homepages/richard_grier/IO_OCX.htm

http://www.cpcug.org/user/clemenzi/technical/Languages/SerialIO.htm

http://www.mvps.org/rgrier/parallel.htm

Hope this helps

Tryn

corkymccorkle
05-09-02, 11:55 PM
well its not exact, but its definetly a BIG step in the right direction, thanx sooo much

wmain
05-30-02, 12:51 AM
What you need to use is an Analogue to Digital (A/D) converter to convert the analogue voltage of the thermometer into either a parallel or serial digital signal that the computer can understand.

One way to do this is with a voltage to frequency converter (vfo). The frequency can then be read by the sound card using FFT analysis.