Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

how to read specific bytes in rs232 buffer

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)
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)