For Programmers: Free Programming Magazines  


Home > Archive > Visual Basic Syntax > March 2005 > I/o instruction









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author I/o instruction
Paulus Wijaya

2005-02-10, 4:00 am

Hi, I want connect the PC serial and paralel I/O to my Microcontroller
who can explain me how is the instruction by VB to do that?
Thank
Paulus Wijaya
Παππας Κωνσταντίνος

2005-02-10, 4:00 am

You must use the MSCOMM component. You found that in project->Component as
Microsoft Com control. For most of microcontroller you must use as
parameters 9600,8,n,1 and no handshaking. If you like to use full com
control maybe you must use the DTREnable to send a signal when you like to
transmit the data. Keep small the input and output buffer just in case you
haven't a fast enough microcontroller.

Good luck

"Paulus Wijaya" <Paulus Wijaya@discussions.microsoft.com> wrote in message
news:249D4C00-A3D0-404B-989D-DF171E81413F@microsoft.com...
> Hi, I want connect the PC serial and paralel I/O to my Microcontroller
> who can explain me how is the instruction by VB to do that?
> Thank
> Paulus Wijaya



Ken Halter

2005-02-10, 4:01 pm

"Paulus Wijaya" <Paulus Wijaya@discussions.microsoft.com> wrote in message
news:249D4C00-A3D0-404B-989D-DF171E81413F@microsoft.com...
> Hi, I want connect the PC serial and paralel I/O to my Microcontroller
> who can explain me how is the instruction by VB to do that?
> Thank
> Paulus Wijaya


As Παππας Κωνσταντίνος mentioned (does that actually say something?) MSComm
for serial... you can use this for parallel

IO OCX
http://ourworld.compuserve.com/home...rier/IO_OCX.htm

--
Ken Halter - MS-MVP-VB - http://www.vbsight.com
Please keep all discussions in the groups..


Dick Grier

2005-02-10, 4:01 pm

Hi,

Serial: MSComm32.ocx (or NETComm.ocx from my homepage), or the equivalent.

Parallel: IOocx.ocx, also from my homepage. Free.

Dick

--
Richard Grier (Microsoft Visual Basic MVP)

See www.hardandsoftware.net for contact information.

Author of Visual Basic Programmer's Guide to Serial Communications, 4th
Edition ISBN 1-890422-28-2 (391 pages) published July 2004. See
www.mabry.com/vbpgser4 to order.


Paulus Wijaya

2005-02-11, 4:03 pm

Dear Mr Richard Grier:
I have been visit your homepage www.hardandsoftware.net
but i can find mscomm32.ocx or Netcomm.ocx.
Thank you

Paulus Wijayacitra

"Dick Grier" wrote:

> Hi,
>
> Serial: MSComm32.ocx (or NETComm.ocx from my homepage), or the equivalent.
>
> Parallel: IOocx.ocx, also from my homepage. Free.
>
> Dick
>
> --
> Richard Grier (Microsoft Visual Basic MVP)
>
> See www.hardandsoftware.net for contact information.
>
> Author of Visual Basic Programmer's Guide to Serial Communications, 4th
> Edition ISBN 1-890422-28-2 (391 pages) published July 2004. See
> www.mabry.com/vbpgser4 to order.
>
>
>

Danny

2005-02-11, 4:03 pm

Date: Thu, 10 Feb 2005 10:00:04 -0700
Name: "Dick Grier" <dick_grierNOSPAM@msn.com>

>Hi,
>
>Serial: MSComm32.ocx (or NETComm.ocx from my homepage), or the equivalent.
>
>Parallel: IOocx.ocx, also from my homepage. Free.
>
>Dick


Hi,

On a tangent, do you have any pointers for trying to talk to USB
devices?

I don't have any one specific device in mind but, generally, wish to
enumerate what's hanging off of the USB bus and then simply send and
receive bytes to and from those devices.

Sort of, what MSComm does for serial. It doesn't know (or care) what
it is talking to (modems, printers, etc) but it handles low level
access and leaves the high level stuff (specific, device-dependent
commands) to the application.

This is a pet project of mine which I do in spare time. It's also a
learning exercise so I'm not really after a canned solution as such
but more after code examples and fundamental principles.

Danny

(You guessed it! Remove NOSPAMFOR before emailing.)
Dick Grier

2005-02-11, 4:03 pm

Use the Software Download links. Here are deep links:

http://www.mvps.org/rgrier/NetCommOCX.zip
http://www.mvps.org/rgrier/IOOcxInstall.zip

MSComm32.ocx comes with Visual Studio 6.0. NETComm.ocx may be used instead.

--
Richard Grier (Microsoft Visual Basic MVP)

See www.hardandsoftware.net for contact information.

Author of Visual Basic Programmer's Guide to Serial Communications, 4th
Edition ISBN 1-890422-28-2 (391 pages) published July 2004. See
www.mabry.com/vbpgser4 to order.


Dick Grier

2005-02-11, 4:03 pm

Use the Download Software link. Here are the deep links:

http://www.mvps.org/rgrier/IOOcxInstall.zip

http://www.mvps.org/rgrier/NetCommOCX.zip

--
Richard Grier (Microsoft Visual Basic MVP)

See www.hardandsoftware.net for contact information.

Author of Visual Basic Programmer's Guide to Serial Communications, 4th
Edition ISBN 1-890422-28-2 (391 pages) published July 2004. See
www.mabry.com/vbpgser4 to order.


Ken Halter

2005-02-11, 4:03 pm

On his home page, scroll down until you see "Software Downloads"... here's a
direct link
http://ourworld.compuserve.com/home...r/Downloads.htm

--
Ken Halter - MS-MVP-VB - http://www.vbsight.com
Please keep all discussions in the groups..
"Paulus Wijaya" <PaulusWijaya@discussions.microsoft.com> wrote in message
news:10D51942-7E1F-48E3-8780-DC69307586BA@microsoft.com...[color=darkred]
> Dear Mr Richard Grier:
> I have been visit your homepage www.hardandsoftware.net
> but i can find mscomm32.ocx or Netcomm.ocx.
> Thank you
>
> Paulus Wijayacitra
>
> "Dick Grier" wrote:
>


Dick Grier

2005-03-07, 4:09 pm

Hi,

I suggest that you get a copy of Jan Axelson's book, USB Complete, 2nd
Edition. It discusses this in some detail. I have a link under Books on my
homepage.

Dick

--
Richard Grier (Microsoft Visual Basic MVP)

See www.hardandsoftware.net for contact information.

Author of Visual Basic Programmer's Guide to Serial Communications, 4th
Edition ISBN 1-890422-28-2 (391 pages) published July 2004. See
www.mabry.com/vbpgser4 to order.


Danny

2005-03-08, 4:04 pm

Date: Mon, 7 Mar 2005 10:12:05 -0700
Name: "Dick Grier" <dick_grierNOSPAM@msn.com>

>Hi,
>
>I suggest that you get a copy of Jan Axelson's book, USB Complete, 2nd
>Edition. It discusses this in some detail. I have a link under Books on my
>homepage.
>
>Dick


Thanks, I'll have a look.

Danny

(You guessed it! Remove NOSPAMFOR before emailing.)
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com