shane5ab Posted August 16, 2006 Report Share Posted August 16, 2006 Hi Everyone, I need some help for saving Front Panel Status of Control and Indicators, to an INI File, I am Trying to use Write Panel to INI VI provided by OpenG.org , But when i write, the INI file is empty, There is no error while writing, can any one please help me out to fix that problem. Regards. Tajinder Singh Quote Link to comment
mlasse Posted August 21, 2006 Author Report Share Posted August 21, 2006 Hi, have you set the "write configuration file?"-input at the "Close Config Data.vi" to "true" when you close refnum? Markus Quote Link to comment
Neville D Posted August 21, 2006 Report Share Posted August 21, 2006 Hi Everyone,I need some help for saving Front Panel Status of Control and Indicators, to an INI File, I am Trying to use Write Panel to INI VI provided by OpenG.org , But when i write, the INI file is empty, There is no error while writing, can any one please help me out to fix that problem. Regards. Tajinder Singh Hi Tajinder, Another way is to write each control/indicator individually to an XML file. This offers the same functionality as an ini file, without using the OpenG toolkit. Last time I played with it, there seemed to be a bug with OpenG ini file VI's and LV 8.0 (the exact same code worked fine in LV 7.1.1). At that point, I refactored my code to replace ini file usage with the equivalent xml file, using the built-in Write to XML file and Read to XML file vi's. This way you can write any LabVIEW structure (array, cluster, cluster of clusters, etc. etc.) to (xml) file without problems. The read from file is pretty straightforward as well. Check out the XML examples in LV for more info. Neville. Quote Link to comment
mlasse Posted August 22, 2006 Author Report Share Posted August 22, 2006 Last time I played with it, there seemed to be a bug with OpenG ini file VI's and LV 8.0 (the exact same code worked fine in LV 7.1.1). At that point, I refactored my code to replace ini file usage with the equivalent xml file, using the built-in Write to XML file and Read to XML file vi's. Hi, I just use the OpenG ini file VI's on LV 7.1.1 in the company. I will try it on the LV 8.2 EV on my home PC. Good hint with the XML files! Markus 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.