Right now, the LabVIEW File utility for reading Configuration Files (NI_LVConfig.lvlib) are restricted to loading data from a configuration FILE. Unfortunately, I have a case where I am storing configuration STRINGS in other locations (like in a database) and need to interpret them. I'd love to be able to reuse this library of code to do that, and I can't quite do that without a lot of extra work. Right now the workaround is to read the string from elsewhere, write it to a temporary file, read the temporary file, process..... (sucks to have to take time to read/write to disk, require permissions to save to a disk which I don't always have depending on permissions on system, and wastes processing time especially for larger configuration strings/files)
I'd love to just "Open Config String" instead of "Open Config File" (and then "Close Config String" (and return an output string)).
Unfortunately because the library has internal items marked as private I cannot reuse the internal processing code without duplicating the entire lvlib and/or customizing vi.lib.
The LabVIEW XML parser library supports a polymorphic instance of the "Load" function to take either a file path OR a string input, so why can't we have the same support for the configuration file utility?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.