LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Read from string, graph, write to file

I have the following string that I am reading from a serial port with VISA;

 

$ 330.000,-144.702,176.21, 18.85,01/01/00 00:01:43,N8008

 

Could someone offer an plan to break the numbers out of this string, graph, and write to a file?

 

I am having problems formatting this string to pull out the correct values.

 

Cheers,

 

Dave

0 Kudos
Message 1 of 3
(2,769 Views)
Spreadsheet String to Array with ',' as a delimiter is one way. It would also help if you showed what you've been trying, what values you need, and which ones you don't.
0 Kudos
Message 2 of 3
(2,756 Views)

$ 330.000,-144.702,176.21, 18.85,01/01/00 00:01:43,N8008

 

Use "$ %f,%f,%f,%f,%d/%d/%d %d:%d:%d,N$d" as a format string in SCAN FROM STRING, for starters.

There might be a better way to scan for a date/time string, I'd have to look it up. 

Steve Bird
Culverson Software - Elegant software that is a pleasure to use.
Culverson.com


LinkedIn

Blog for (mostly LabVIEW) programmers: Tips And Tricks

0 Kudos
Message 3 of 3
(2,748 Views)