fbrandeber Posted February 7, 2007 Report Share Posted February 7, 2007 Hi, I have created an application that will become an executeable. I currently have 8 sets of values that I would like to put in an init file, and loaded each time the exe runs. I would like it to be a textfile, so it could easily be edited by the user, but that is not a requirement at this time. The main thing is that the user can change any of these values and have them restored after a restart. I currently have the following to init: A small tab delimited text file Two path statements A small integer array A small floating point array A boolean Two single integers I would like to know what is commonly done for init files, and how best to do this one. My ideas so far are messy. :-) I can change the application to suit, no restrictions there that I know of. It is a custom monitor and logging app. I did a search of this part of the forum, but did not see anything pertinent. This seems like the place it should be.? Fred Quote Link to comment
gleichman Posted February 7, 2007 Report Share Posted February 7, 2007 Have you looked at the "Configuration File VIs"? Quote Link to comment
Steve Mate Posted February 7, 2007 Report Share Posted February 7, 2007 What gleichman said. Incredibly useful for INI files. Use the VIs "Write INI Cluster" and "Read INI Cluster". Quote Link to comment
Chris Davis Posted February 7, 2007 Report Share Posted February 7, 2007 "Write INI Cluster" and "Read INI Cluster". BTW, these VIs are located in the OpenG package called oglib_variantconfig, which can be downloaded and installed with VIPM. Quote Link to comment
Mike Matthes Posted February 7, 2007 Report Share Posted February 7, 2007 BTW, these VIs are located in the OpenG package called oglib_variantconfig, which can be downloaded and installed with VIPM. If you just have a few simple items and haven't installed the openG stuff, the NI ini functions will work fine as well. If you're already running in the openG environment, it is probably more flexible, however... Quote Link to comment
Falevoz Y. Posted February 7, 2007 Report Share Posted February 7, 2007 Hi! You also can use the xml functions. I think they're more flexible than the ini functions... By! Yann Quote Link to comment
fbrandeber Posted February 13, 2007 Author Report Share Posted February 13, 2007 Thanks for all the suggestions! :-) I would like to get the functions that LTR provided, but they are closed for business... sigh They were in LTR Volume 8 Issue 3 or LTR CDROM Lib of Back Issues. Anyone know how I could get just the VIs? Best regards, fbrandeber@elmwi.com Quote Link to comment
LAVA 1.0 Content Posted February 13, 2007 Report Share Posted February 13, 2007 QUOTE(fbrandeber @ Feb 12 2007, 03:12 AM) I would like to get the functions that LTR provided, but they are closed for business... sighThey were in LTR Volume 8 Issue 3 or LTR CDROM Lib of Back Issues. Anyone know how I could get just the VIs? Best regards, fbrandeber@elmwi.com Here are the vi's.. Download File:post-1396-1171262727.zipDownload File:post-1396-1171262727.zip But I would recommend a solution with the openg ini vi's... Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.