PDA

View Full Version : PC (VBScript) to Basic Stamp (PBasic)



Judge
09-05-2008, 01:56 PM
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 :veryhappy:! Any ideas?

Judge
09-05-2008, 08:48 PM
I got it! Answer = Top Secret :cool:!

Adrenalynn
09-05-2008, 11:37 PM
Congrats! So what is the answer?

Judge
09-06-2008, 10:34 AM
If I tell you, I'd have to kill you. :tongue:

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.