BS2 Serial to USB to receive at port in VB2008 work the same?
Chiles
Posts: 15
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
' {$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
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
·
which is displayed when you load program to BS2.