LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to read a certain line of a string output?

Hi there,
I have a string output as follows,
"0x2323
DevHandl: 10060
VID & PID both match
InReport len: 65
OutReport len: 65
WrHandl: 10016
Device detected"
 
How can I only read a certain line, for example, I only want to read the first line which is 0x2323.
 
Thanks
 
Mike
 
 
0 Kudos
Message 1 of 3
(2,534 Views)
just find CR and take text before CR!!
 
Are you familiar with labiew or any programming language
using string command?
0 Kudos
Message 2 of 3
(2,530 Views)

Hi Mike,

      If you want to pick-out a specific line#, look for the  "PickLine" string function (see "Additional String Functions" palett), though, to me, this looks like a case where MatchPattern or ScanFromString might come in handy (also on String palett.)

Cheers!

"Inside every large program is a small program struggling to get out." (attributed to Tony Hoare)
Message 3 of 3
(2,516 Views)