10-01-2013 04:16 PM
@altenbach wrote:
camerond wrote:I'm trying simply to see if an INI file exists, so I created the following snippet:
The right way would be to use this function... Check if File or Folder Exists VI. No need to create your own.
But, as in all things, TIMTOWTDI.
Cameron
10-02-2013 10:11 AM
The output of "Open Config Data.vi" isn't a true refnum.
You can use the attached VI to check a config refnum (not guaranteed to work in later versions of LV)
10-03-2013 12:34 PM
@altenbach wrote:
camerond wrote:I'm trying simply to see if an INI file exists, so I created the following snippet:
The right way would be to use this function... Check if File or Folder Exists VI. No need to create your own.
I don't like this function for a couple reasons. First an empty path returns true and I understand why, but that has never been a need of mine (or anyone I know) so I AND it the OpenG function Valid Path which must be not not-a-path, and not empty. But my other complaint is it is slower then the OpenG File Exists because of a bunch of checks into LLBs and Packed Libraries (that again are rarly used). Using these two OpenG funtions works better for me, and is about 5 times faster at determining if a path should be used for some function.
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
16 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord