Shop OBEX P1 Docs P2 Docs Learn Events
Visual Studio — Parallax Forums

Visual Studio

cashr23523cashr23523 Posts: 1
edited 2009-05-31 01:33 in BASIC Stamp
I just purchased the BASIC stamp discovery kit with USB cable. Any resources or articles on simple projects·on how to use·Visual Studio in C# or VB to communicate with the BASIC Stamp?

Thanks

Comments

  • SRLMSRLM Posts: 5,045
    edited 2009-05-30 17:18
    You'll want to search their literature on how to open a com port. From there it's just a serial link.
  • Steve NelickSteve Nelick Posts: 25
    edited 2009-05-30 18:41
    I'm using Microsoft Visual Studio and C#. I used to use VB.·You use a serial·port object.

    Here is an an example of an open statement.


    ··· private void openConnectionButton_Click(object sender, EventArgs e)

    ··· {· if (serialPort1.IsOpen) return;

    ···· ··try

    ·········· { serialPort1.Open(); }

    ·······catch (Exception ex1)

    ········· ·{ BTtxt.Text = ex1.ToString().Substring(0, 12); }

    ····}



    Most of the above code is generated automatically for you by Visual Studio.









  • UnsoundcodeUnsoundcode Posts: 1,532
    edited 2009-05-30 19:55
    Hi, there are a few snippets and ideas at the following link http://forums.parallax.com/showthread.php?p=671804

    Jeff T.
  • GeorgeLGeorgeL Posts: 131
    edited 2009-05-31 01:33
    I wrote up a few guides over the time here, http://forums.parallax.com/forums/default.aspx?f=5&m=350357&g=351767#m351767

    Scroll down to near middle (8 posts) and I have attached a guide for VB.net
Sign In or Register to comment.