borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2007 Andrea Tincaniborder

AndreaVB | Forum | News | Downloads | Register | Help | Member List | Statistics | Search | PM | Profile

Print This Topic
Previous Topic (Communicate with Sensor)Next Topic (how to insert records in another table?) New Topic New Poll Post Reply
AndreaVB Forum : VB General : com 1 __ need help
Poster Message
HGM
Level: Protégé

Registered: 04-04-2006
Posts: 5

icon com 1 __ need help



hi

please i need help i have a divice which i want to connect it to my pc by let we see com1 (serial port)

but i want my visual basic code control the open and close of this port by sinding a signal

how to do that

thanks

05-04-2006 at 02:09 PM
View Profile Send Email to User Show All Posts | Quote Reply
Goran
Level: Moderator

Registered: 16-05-2002
Posts: 1681
icon Re: com 1 __ need help

Comm control

____________________________
If you find the answer helpful, please mark this topic as solved.

05-04-2006 at 09:09 PM
View Profile Send Email to User Show All Posts | Quote Reply
HGM
Level: Protégé

Registered: 04-04-2006
Posts: 5
icon Re: com 1 __ need help

thanks for replay

but i have problem with the line

MSComm1.CommPort = 1

i don't know how to deal with it.


simply i need to know how to open and close the port for

small period


by visual basic

thanks




  

06-04-2006 at 08:28 AM
View Profile Send Email to User Show All Posts | Quote Reply
admin
Level: Administrator


Registered: 04-04-2002
Posts: 530
icon Re: com 1 __ need help

try this to open the port

MSComm1.PortOpen=true


and this to close it
MSComm1.PortOpen=false


[Edited by admin on 06-04-2006 at 01:11 PM GMT]

____________________________
AndreaVB

06-04-2006 at 12:09 PM
View Profile Send Email to User Show All Posts Visit Homepage | Quote Reply
HGM
Level: Protégé

Registered: 04-04-2006
Posts: 5
icon Re: com 1 __ need help


thanks for replay

but this is not what i want .

MSComm1.Output = "rd0" + Chr$(26)

rd0 what it is mean ??


06-04-2006 at 12:40 PM
View Profile Send Email to User Show All Posts | Quote Reply
vivek_g27
Level: Sage

Registered: 06-04-2005
Posts: 57
icon Re: com 1 __ need help

it might be a command to your sensor from the master (PC)

07-04-2006 at 10:47 AM
View Profile Send Email to User Show All Posts | Quote Reply
AndreaVB Forum : VB General : com 1 __ need help
Previous Topic (Communicate with Sensor)Next Topic (how to insert records in another table?) New Topic New Poll Post Reply
Surf To:


Not Logged In? Username: Password: Lost your password?
Partners: Download Actual Software | Free Software Download
borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2007 Andrea Tincaniborder