Results 1 to 4 of 4

Thread: PC (VBScript) to Basic Stamp (PBasic)

  1. #1
    Join Date
    May 2008
    Location
    Florida
    Posts
    14
    Rep Power
    37

    Question PC (VBScript) to Basic Stamp (PBasic)

    I need to send my BS2px (COM3) a letter, such as "A", from my pc using VBScript. The Stamp is waiting for the input:

    SERIN 16, 188, [LETTER]

    The code works fine through the Parallax Stamp Debug Terminal, but not from my VBScript code:

    ' LETTER.vbs
    Set com = CreateObject ("MSCommLib.MSComm")
    com.CommPort = 3
    com.Settings = "19200,N,8,1"
    com.PortOpen = True
    com.Output = "A"
    com.PortOpen = False

    When this script runs, nothing happens. BTW, turning a little green led on is the goal ! Any ideas?

  2. #2
    Join Date
    May 2008
    Location
    Florida
    Posts
    14
    Rep Power
    37

    Re: PC (VBScript) to Basic Stamp (PBasic)

    I got it! Answer = Top Secret !

  3. #3
    Join Date
    Apr 2008
    Location
    Sacramento, CA, USA Area
    Posts
    5,341
    Rep Power
    177

    Re: PC (VBScript) to Basic Stamp (PBasic)

    Congrats! So what is the answer?
    I Void Warranties´┐Ż

  4. #4
    Join Date
    May 2008
    Location
    Florida
    Posts
    14
    Rep Power
    37

    Re: PC (VBScript) to Basic Stamp (PBasic)

    If I tell you, I'd have to kill you.

    Nah, I just had to code into my VBScript to disable the DTR output, which kept resetting the Stamp. I also added a signal byte to both programs.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •