11-17-2009 04:49 PM
11-17-2009 05:00 PM
the data seems to be both comma seperated and space (or tab) seperated. The data seems to be two intigers seperated by a comma and then a tab and the chance for two more intigers or two zeros. They almost look like coordinate pairs.
11-17-2009 05:07 PM
No, the comma is the decimal sperator in certain countries. We just need to read the with the correct localization settings. 🙂
So: 11,825 == 11.825
11-17-2009 05:12 PM
Ahhhh!...forgot for a moment.
Thanks.
Well, then, I am confused...
Is the rule
read data, if zero skip...if nonzero add to array row until next zero is encountered?
Hummer1
"When flying, a number accurately presenting the average granite content of a cloud is of little use."
11-18-2009 12:29 AM
"Is the rule
read data, if zero skip...if nonzero add to array row until next zero is encountered?"
Yes. 🙂
11-18-2009 01:19 AM
altenbach wrote:We just need to read the with the correct localization settings. 🙂
Or, open the file with Word or Notepad and replace the "," by a "." 🙂
11-18-2009 01:49 AM - edited 11-18-2009 01:52 AM
Try something like this (LabVIEW 8.5):
Seems to work with most typical inputs and can probably be simplified further.
(Still needs a few tweaks, e.g. if the array contains only one element and that element is zero the output is a 2D array with a zero instead of an empty array).
11-18-2009 03:10 AM