[prev in list] [next in list] [prev in thread] [next in thread]
List: nsbasic-palm
Subject: [nsbasic-palm] Serial Comm
From: "cenlasoft" <cenlasoft () yahoo ! com>
Date: 2001-12-30 19:35:28
Message-ID: a0nqa0+3dkk () eGroups ! com
[Download RAW message or body]
Hello,
I have not visited this site for a while. My name is Curtis
Desselles. I wrote a serial data acquisition program for reading a
Parallax Basic Stamp II. It reads temperature and the output is 2-3
digits sent to a text box on the Palm screen. My problem is the
Basic Stamp sends the data plus a Carriage Return. Also the text box
has word wrap but does not go to the next line after each data string
is received. Is there any way to strip the carriage return or use it
to make the text box start a new line after each serial received
string? Here is a sample of code.
Dim received as String
Dim err as Integer
Dim r as Integer
retry:
error.text=""
Err = SerialReceive(Received,3,3)
If Err > 0 Then
Beep
error.text=str(err)
data.text=data.text+"."+Received
Else
error.text=""
data.text=data.text+received
GoTo retry
End If
Thank You,
Curtis Desselles
Community email addresses:
Post message: nsbasic-palm@yahoogroups.com
Subscribe: nsbasic-palm-subscribe@yahoogroups.com
Unsubscribe: nsbasic-palm-unsubscribe@yahoogroups.com
List owner: nsbasic-palm-owner@yahoogroups.com
Shortcut URL to this page:
http://groups.yahoo.com/group/nsbasic-palm
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic