alphaone Posted October 11, 2005 Report Share Posted October 11, 2005 Hi, my work is to construct a automatic testing system of mobile phone. At first ,i must read the test parameters from an INI file that writen by Excel. but, the format and content of this file is changed frequently.so i have to change the reading file and write file module. it is worse that i was told to add the testing item in my work.so i have to add some new parameter into the INI file.but,the whole structure of the testing program must be changed totally!BTW,the program is so complexed, i don't wanna see some "insane object" appear in my vi,so ,changing the structure of the whole program is impossible. Is thers some good method to sovle this case? The interface of testing program had better to be fixed. Thanks . Quote Link to comment
Phillip Brooks Posted October 11, 2005 Report Share Posted October 11, 2005 Hi, my work is to construct a automatic testing system of mobile phone. At first ,i must read the test parameters from an INI file that writen by Excel. but, the format and content of this file is changed frequently.so i have to change the reading file and write file module. it is worse that i was told to add the testing item in my work.so i have to add some new parameter into the INI file.but,the whole structure of the testing program must be changed totally!BTW,the program is so complexed, i don't wanna see some "insane object" appear in my vi,so ,changing the structure of the whole program is impossible.Is thers some good method to sovle this case? The interface of testing program had better to be fixed. Thanks . If your application is already built, it may take some work. Whenever I've needed to load parameters from an INI file, I: 1. Create clusters that contain the variable elements that I need to read/write. 2. Save these as typedef'd controls and use these in my sub-vis. 3. Use the OpenG INI read and write functions to load and store the clusters in INI sections and variables. If a variable is added, you can edit the typedef'd control. This should update anywhere you've placed the control. Don't change the order of your cluster elements, just add elements to the end. By using simple typedefs instead of strict, you can move the elements around within the cluster frame on the front panel without breaking your code; you can even hide elements that you don't need. I generally try not to delete elements from my clusters once I've added them. If your software design process is working, you shouldn't need to make that many changes Quote Link to comment
Michael Aivaliotis Posted October 11, 2005 Report Share Posted October 11, 2005 3. Use the OpenG INI read and write functions to load and store the clusters in INI sections and variables. You took the words right out of my mouth. :thumbup: Quote Link to comment
alphaone Posted October 12, 2005 Author Report Share Posted October 12, 2005 You took the words right out of my mouth. :thumbup: Thank pbrooks100 and Michael_Aivaliotis,i have some ideas.but i didn't install the OpenG,so how can i write and read the cluster from file dynamically?just like the "Serialize" in VC. 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.