Jump to content

How to construct an independence test


Recommended Posts

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 .

Link to comment
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 :)

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.