04-21-2009 06:02 PM
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
04-21-2009 07:38 PM
04-21-2009 08:18 PM
$ 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.
Blog for (mostly LabVIEW) programmers: Tips And Tricks