It was me who asked that question a few months back. Here is how to use
MSCOMM32.OCX to control an external device via the Data Terminal Ready (DTR)
pin. We developed a hardware switch to convert the signal to the voltage
required by the external device.
' Select a Comm port and set the DTR pin to low (DTR is low when the port is
' closed, high when it is open). comPort is an integer port number. An error
' occurs if you attempt to close a port that is already closed, so I check
' the state first.
MSComm1.CommPort = comPort
MSComm1.DTREnable = True
If MSComm1.PortOpen Then
MSComm1.PortOpen = False
End if
' To set DTR to high, just open the port:
MSComm1.PortOpen = True
-----Original Message-----
From: watup_dawg@h... [mailto:watup_dawg@h...]
Sent: Tuesday, August 28, 2001 3:30 AM
To: professional vb
Subject: [pro_vb] RE: Serial Port in VB
Can i please have this info too. i am also interested.
Thanks
Jerry
> I have the old e-mails, if you would like.
>
> -----Original Message-----
> From: Mohideen [mailto:mohideen@a...]
> Sent: Tuesday, April 03, 2001 7:53 AM
> To: professional vb
> Subject: [pro_vb] Serial Port in VB
>
>
> Is is possible to read or send some voltage (ie -5 to +5) thru a comm
> port. Some time back i saw some one has posted a similar question in
> this newgroup. It is possible by using mscomm control.
>
> thanks in advance
>
> mohideen
> mohideen@a...