06-26-2007 02:19 PM
06-26-2007 02:38 PM
06-27-2007 11:48 AM - edited 06-27-2007 11:48 AM
Thanks MDDave,
When reading back the file, it will interpret NaN accordingly. I made a small test file to illustrate. You'll see missing points (or broken line in the example).
The data is: 0.592840 0.932214 NaN 0.443935 0.842214 NaN NaN 0.365292 0.837349 (seperated by Tab in the file).
As expected, the missing points are 2, 5 & 6.
Message Edited by JoeLabView on 06-27-2007 12:50 PM
06-27-2007 02:29 PM - edited 06-27-2007 02:29 PM
Can you give an example of your actual file. I assume you want to keep the "real" zeroes, if any exist in the data.
What does "no data" mean?
In newer versions of LabVIEW, you can use "read from spreadsheet file" To read a 2D array of strings via a polymorphic selector. Now you can just loop over the elements, look for the special tags, and either scan the number or output NaN as needed.
(Too bad we need to abuse NaN for this, which has a slightly different special meaning. The old SAS system had a special value for "missing" ;))
Message Edited by altenbach on 06-27-2007 12:31 PM
06-27-2007 02:39 PM
@altenbach wrote:
(Too bad we need to abuse NaN for this, which has a slightly different special meaning. The old SAS system had a special value for "missing" ;))
Good ol' days...
I had never experimented with reading a file that had NaN and even sending NaN to a graph.. I was actually impressed with the outcome. Strange graph mind you...