Shop OBEX P1 Docs P2 Docs Learn Events
Visual Basic and PBasic — Parallax Forums

Visual Basic and PBasic

NWUpgradesNWUpgrades Posts: 292
edited 2005-05-13 01:08 in BASIC Stamp
I have written a program in PBasic that allows me to control functions to a stepper motor. I have also written a program in Visual Basic.net for a GUI. My question is, how do I make the Visual Basic program "talk" to the PBasic program? In other words, I need to be able to combine the 2 so that the VB program can control the motor. Thanks for any help.

Comments

  • Jon WilliamsJon Williams Posts: 6,491
    edited 2005-05-13 00:33
    You'll want to use a serial connection between the two. Keep in mind that the BASIC Stamp doesn't buffer serial data, so you may want to use flow control.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Jon Williams
    Applications Engineer, Parallax
    Dallas, TX· USA
  • NWUpgradesNWUpgrades Posts: 292
    edited 2005-05-13 00:49
    How do you mean "serial connection"? The Basic Stamp is connected to the system via a serial port. Also, how do you do flow control??? Thanks
  • MacGeek117MacGeek117 Posts: 747
    edited 2005-05-13 00:53
    Look at the help file for the commands SERIN and SEROUT.
    bugg

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Boe-bot: $229


    Toddler: $249

    Learning Google is your friend: priceless
  • Jon WilliamsJon Williams Posts: 6,491
    edited 2005-05-13 00:53
    Give this article a read: http://www.parallax.com/dl/docs/cols/nv/vol3/col/nv89.pdf

    The code is written for VB6, but should get should get you going.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Jon Williams
    Applications Engineer, Parallax
    Dallas, TX· USA
  • NWUpgradesNWUpgrades Posts: 292
    edited 2005-05-13 00:59
    Thanks for the help.
  • MacGeek117MacGeek117 Posts: 747
    edited 2005-05-13 00:59
    Any time!
    bugg

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Boe-bot: $229


    Toddler: $249

    Learning Google is your friend: priceless
  • NWUpgradesNWUpgrades Posts: 292
    edited 2005-05-13 01:00
    Does Parallax sell the RS-1?
  • Jon WilliamsJon Williams Posts: 6,491
    edited 2005-05-13 01:04
    No, what we offer is called the RS-232 AppMod -- this is best if you have a BOE.

    http://www.parallax.com/detail.asp?product_id=29120

    Here's a link to the RS-1:

    http://www.awce.com/rs1.htm



    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Jon Williams
    Applications Engineer, Parallax
    Dallas, TX· USA
  • NWUpgradesNWUpgrades Posts: 292
    edited 2005-05-13 01:08
    Actually, for the time being all I have is the Homework board. Thanks for the link.
Sign In or Register to comment.