🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: alt.lang.basic
Article #661

need help with COM-Port in VB 3.0

#661
From: C.W. Pruemper
Date: Sun, 17 Aug 1997 00:00
30 lines
1364 bytes
Hi,

I am trying to read out a multimeter with Visual Basic 3.0 but I allways
get
an IO-Error.
So I wrote the small program below for DOS QBasic to test out wether the 
multimeter is out of order or my knowledge to small...

OPEN "com2:1200,N,7,2,RS,CS,DS,CD" FOR RANDOM AS #2
A$ = "D"
PRINT #2, A$;
in$ = INPUT$(14, #2)
PRINT in$;
PRINT "hallo"
CLOSE #2
REM PRINT #2, A$;

Well, it was my knowledge - It worked fine!!
Now my problem is simply to transfer this to VB...
I think the COM-Parameters in the first line are essential.
How do I "tell" VB to use this parmeters?
To set up the Port under Win95 had no effect.

I would be very glad if someone knows an answer!

Please reply also to pruemper@mailer.uni-marburg.de 
thanks!

Claus
Technical Details
Message-ID: <01bcab0c$15e4ba80$LocalHost@default>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 110e3b,2857a4449a186c2b,start
X-Google-Attributes: gid110e3b,public
X-Google-Thread: 112458,2857a4449a186c2b,start
X-Google-Attributes: gid112458,public
X-Google-Thread: 10ab99,2857a4449a186c2b,start
X-Google-Attributes: gid10ab99,public
From: "C.W. Pruemper" <pruemper@mailer.uni-marburg.de>
Subject: need help with COM-Port in VB 3.0
Date: 1997/08/17
Message-ID: <01bcab0c$15e4ba80$LocalHost@default>
X-Deja-AN: 267874923
Organization: HRZ Uni Marburg
Newsgroups: alt.lang.basic,comp.lang.basic.visual.misc,fido.ger.basic