basic serial question
Archiver
Posts: 46,084
Hi, I'm a Stamp beginner - I have a BS2p24 that I've been using
for about a month.
My understanding is that the DEBUG terminal is some PC software
which opens a serial port session between itself & the BS2.
Can the SERIN command be used for receiving data from other
programs other than the default DEBUG terminal ?
Can the BS2 resume it's default serial communication with the
DEBUG terminal after this terminal has been closed in order for
another program to send serial data to the BS2 ?
The greater picture is that : I'm trying to send a number via the
serial port to the BS2 using LabView. The program just sits. I'm
guessing the SERIN command (which I had intended on grabbing the
LabView number & calling it a variable) does not work. In order for
LabView to send data, I need to close the DEBUG terminal to allow
access to my serial port. LabView sends the number & then closes the
port.
Here is the code :
'{$STAMP BS2p}
testvar VAR BYTE
SERIN 16, 240, [noparse][[/noparse]DEC testvar]
PAUSE 10000
DEBUG "This is it ",DEC testvar
Any suggestions would be appreciated. I prefer LabView, but if this
is a dead end, how else could such PC to BS2 data transfer be made ?
Regards,
Arie
for about a month.
My understanding is that the DEBUG terminal is some PC software
which opens a serial port session between itself & the BS2.
Can the SERIN command be used for receiving data from other
programs other than the default DEBUG terminal ?
Can the BS2 resume it's default serial communication with the
DEBUG terminal after this terminal has been closed in order for
another program to send serial data to the BS2 ?
The greater picture is that : I'm trying to send a number via the
serial port to the BS2 using LabView. The program just sits. I'm
guessing the SERIN command (which I had intended on grabbing the
LabView number & calling it a variable) does not work. In order for
LabView to send data, I need to close the DEBUG terminal to allow
access to my serial port. LabView sends the number & then closes the
port.
Here is the code :
'{$STAMP BS2p}
testvar VAR BYTE
SERIN 16, 240, [noparse][[/noparse]DEC testvar]
PAUSE 10000
DEBUG "This is it ",DEC testvar
Any suggestions would be appreciated. I prefer LabView, but if this
is a dead end, how else could such PC to BS2 data transfer be made ?
Regards,
Arie
Comments
> Hi, I'm a Stamp beginner - I have a BS2p24 that I've been using
>for about a month.
> My understanding is that the DEBUG terminal is some PC software
>which opens a serial port session between itself & the BS2.
> Can the SERIN command be used for receiving data from other
>programs other than the default DEBUG terminal ?
> Can the BS2 resume it's default serial communication with the
>DEBUG terminal after this terminal has been closed in order for
>another program to send serial data to the BS2 ?
>
> The greater picture is that : I'm trying to send a number via the
>serial port to the BS2 using LabView. The program just sits. I'm
>guessing the SERIN command (which I had intended on grabbing the
>LabView number & calling it a variable) does not work. In order for
>LabView to send data, I need to close the DEBUG terminal to allow
>access to my serial port. LabView sends the number & then closes the
>port.
>
>Here is the code :
>
>'{$STAMP BS2p}
>
>testvar VAR BYTE
>
>SERIN 16, 240, [noparse][[/noparse]DEC testvar]
>PAUSE 10000
>DEBUG "This is it ",DEC testvar
>
>Any suggestions would be appreciated. I prefer LabView, but if this
>is a dead end, how else could such PC to BS2 data transfer be made ?
>
>Regards,
> Arie
>
Use any pin-port other than pin-port 16 for your SERIN.
>To UNSUBSCRIBE, just send mail to:
> basicstamps-unsubscribe@yahoogroups.com
>from the same email address that you subscribed. Text in the Subject and Body
of the message will be ignored.
>
>Yahoo! Groups Links
>
>
>
>
is open all the time. The problem is on the PC side. If you have a
DEBUG window open, then it has control of the serial port and will hold
that until the window is closed; if Labview has the port open it will
maintain control (hence no DEBUG output) until it releases control.
You have two options: do all of your serial IO through one program or
the other, or connect a second serial port (like our RS-232 AppMod) to
get data from Labview.
-- Jon Williams
-- Applications Engineer, Parallax
-- Dallas Office
Original Message
From: Arie [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=B98AjqlIWyDVBj8m9xNSG49RwKmS7v5rJAbv3Txb6TVrEU62lrthL2CM2Fir35-jxDvHDXd06gdxgKhxSWynRg]allsport572000@y...[/url
Sent: Thursday, March 18, 2004 7:39 PM
To: basicstamps@yahoogroups.com
Subject: [noparse][[/noparse]basicstamps] basic serial question
Hi, I'm a Stamp beginner - I have a BS2p24 that I've been using
for about a month.
My understanding is that the DEBUG terminal is some PC software
which opens a serial port session between itself & the BS2.
Can the SERIN command be used for receiving data from other
programs other than the default DEBUG terminal ?
Can the BS2 resume it's default serial communication with the
DEBUG terminal after this terminal has been closed in order for
another program to send serial data to the BS2 ?
The greater picture is that : I'm trying to send a number via the
serial port to the BS2 using LabView. The program just sits. I'm
guessing the SERIN command (which I had intended on grabbing the
LabView number & calling it a variable) does not work. In order for
LabView to send data, I need to close the DEBUG terminal to allow
access to my serial port. LabView sends the number & then closes the
port.
Here is the code :
'{$STAMP BS2p}
testvar VAR BYTE
SERIN 16, 240, [noparse][[/noparse]DEC testvar]
PAUSE 10000
DEBUG "This is it ",DEC testvar
Any suggestions would be appreciated. I prefer LabView, but if this
is a dead end, how else could such PC to BS2 data transfer be made ?
Regards,
Arie
To UNSUBSCRIBE, just send mail to:
basicstamps-unsubscribe@yahoogroups.com
from the same email address that you subscribed. Text in the Subject
and Body of the message will be ignored.
Yahoo! Groups Links
This message has been scanned by WebShield. Please report SPAM to
abuse@p....