Shop OBEX P1 Docs P2 Docs Learn Events
BS2 Serial to USB to receive at port in VB2008 work the same? — Parallax Forums

BS2 Serial to USB to receive at port in VB2008 work the same?

ChilesChiles Posts: 15
edited 2009-08-26 11:48 in BASIC Stamp
This is my BS2 prgm:

' {$STAMP BS2}
' {$PBASIC 2.5}
vine VAR Word
DO
HIGH 7
PAUSE 150
RCTIME 7, 1, vine
SEROUT 16, 16780, [noparse][[/noparse]DEC4 vine]
LOOP

Now on a machine which is connected with a serial cable, this is the VB2008 command that receives the port read:

SerialPort1.Open()
variablename = SerialPort1.ReadExisting()

Question: Now if I switch this all to a computer with only a USB port and use a new BS2 USB board, what must I change if anything to get it to work?·Of course I will load the USB driver.

THX Chiles

Comments

  • Chris SavageChris Savage Parallax Engineering Posts: 14,406
    edited 2009-08-25 22:48
    Chiles,

    You need only find out what COM port was assigned to the USB interface and substitute that in your VB code. The USB boards work exactly like the serial ones with the USB (VCP) driver installed. I hope this helps. Take care.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Chris Savage

    Parallax Engineering
    50 72 6F 6A 65 63 74 20 53 69 74 65
    66 61 63 65 62 6F 6F 6B
    ·
  • ChilesChiles Posts: 15
    edited 2009-08-26 11:48
    Hey! thanks alot - it turns out to be COM10
    which is displayed when you load program to BS2.
Sign In or Register to comment.