Home
Community
Discussion Forums
Most Active Hardware Boards
Instrument Control (GPIB, Serial, VISA, IVI)
Topic
Instrument Control (GPIB, Serial, VISA, IVI)
Register
·
Login
·
Help
Community
Category
Board
Documents
Users
cancel
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
Showing results for
Search instead for
Did you mean:
Topic Options
Subscribe to RSS Feed
Mark Topic as New
Mark Topic as Read
Float this Topic for Current User
Bookmark
Subscribe
Mute
Printer Friendly Page
All Forum Topics
Previous Topic
Next Topic
how to read specific bytes in rs232 buffer
how to read specific bytes in rs232 buffer
fabe
Member
11-07-2007
07:02 AM
Options
Mark as New
Bookmark
Subscribe
Mute
Subscribe to RSS Feed
Permalink
Print
Report to a Moderator
Hello Guys
I trying to pull out data from RS232 but i only need to read a specific character. Example :
Read buffers:
level -2.32 locked on
ok*
From that read buffer, all i want to extract is the -2.32. Any ideas? Please give an example.
Thanks
0
Kudos
Message
1
of 2
(3,284 Views)
Reply
Re: how to read specific bytes in rs232 buffer
Albert.Geven
Trusted Enthusiast
11-07-2007
08:33 AM
Options
Mark as New
Bookmark
Subscribe
Mute
Subscribe to RSS Feed
Permalink
Print
Report to a Moderator
Use the match string function to search for "level" and then use the scan from string for a float.
Using the scan from string directly probably is too difficult to keep correct.
greetings from the Netherlands
0
Kudos
Message
2
of 2
(3,275 Views)
Reply
All Forum Topics
Previous Topic
Next Topic