TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Samuel Vaesy
NA
8
0
Splitting the data received from serial port
Aug 27 2008 3:48 AM
Hello,
I'm having a problem trying to solve how to split data received from serial port. The basic idea is to receive measurement data from serial port and then save it to .xml file.
So far I have other "modules" in my software working but I haven't yet figured how to split the data and save it to the .xml file properly. The data I receive is a list of measurement values separated by comma and with start and stop letters. length and form of the received data will be always same, only measurement values change...
So it'll look like this: &,24,21,53,54,33,24,36,37,54,33,33,22,33,23,$
How should this be splitted so that it would be easiest to save to .xml file?
form of the .xml file is something like:
<sensor1>
<name>temp1</name>
<value>"first received value"</value>
</sensor1>
I'm quite new to C#, previously I have coded only C-language and some HTML stuff, so my ideas might have been a bit too "conservative" ;)
- Vertti
Reply
Answers (
4
)
how to get IIS web site directory
Problem with C# (VS2008) while report to Report Viewer