LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Configuration file management

I want to automate around 1000 odd test cases using labview. I have a configuration file to set the hardware channels for my inputs.

 

for e.g Input A = 1!CH1 

 

What is the best way to manage configuration file.The information will be used by all the test cases.I am planning to have OOP design pattern.

 

0 Kudos
Message 1 of 8
(3,478 Views)

Hi uttara,

  I think you can do that whole thing using a single config file with 1000 fields/sections present...COrrect me if i am wrong..

 

 

 

T hanks and regards,

srikrishnaNF

Regards,
Srikrishna


0 Kudos
Message 2 of 8
(3,468 Views)

Configuration file will be used in 1000 odd test cases so I want to know what is the best way to do this? I can have a text file that will have a list of Inputs which will be displayed in User Interface where user can change the hardware channels , this information that is Input and its channel no will be stored in the same text file. Now I want to access the configuration file in the 1000 test cases so what is the best way to do this?

 

 

0 Kudos
Message 3 of 8
(3,465 Views)

Here is an example of using Config File VIs.  You can open the file with a text editor and modify values if you wish.  Or you could write a vi to create the file with its 1000 keys and values.

Create two vi's.  In the first vi, use the write loop in my example to create the file.  In the second vi, use the GetKeys and read loop to read the values.

 

ConfigFile.png

- tbob

Inventor of the WORM Global
0 Kudos
Message 4 of 8
(3,441 Views)

uttara wrote:

I want to automate around 1000 odd test cases using labview. I have a configuration file to set the hardware channels for my inputs.

 

for e.g Input A = 1!CH1 

 

What is the best way to manage configuration file.The information will be used by all the test cases.I am planning to have OOP design pattern.

 


Could you share your domain model with us so we can comment appropriately?

 

Even some SSD's will help.

 

Lacking that, I believe the "Information Expert" design pattern says the class that aggregates the I/O realted classes should now about the config so implementing an I/O class hierachy where the Parrent class has a "Get config from file" method, you could implement over-ride VI's such that they each know how to get their config based on what the aggregate desides is appropriate for each instance. In the interest of "Low Coupling" the more you can handle with the over-ride VI's the better.

 

Trying to speak LVOOP so correct my if that is wrong.

 

Ben

 

PS For those interested in learning OOP/D, I recomend Craig Larman's book "Applying UML and Paterns" ! Maybe someday I will write a LVOOP adendum for that book... after I get the model railroad running on live steam. Smiley Tongue

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 5 of 8
(3,435 Views)
If Configuration file is being used by many VIs I have to read the file in all the VIs. Is there any other method ? Does reading the file again and again create performance issue?
0 Kudos
Message 6 of 8
(3,385 Views)

If the file/configuration is not going to change I would store these settings in a Dictionary, WORM or Variant attribute database.

Now you can lookup these settings by name, without any File IO.

 

Ton

Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
Nederlandse LabVIEW user groep www.lvug.nl
My LabVIEW Ideas

LabVIEW, programming like it should be!
0 Kudos
Message 7 of 8
(3,376 Views)

I would like to know the file structure for any ATE.I am interested in developing an application that will be user interface used for automated testing.I have say 'x' no of products each unique and each has say 1000 odd test cases.For each product I am thinking of developing a project and the VIs that will be used to generate test cases and a library of these VIs will be stored in user.lib

 

The 1000 test cases can be any where on the local PC and a path setting facility can be provided.Also path for storing the results can be taken from user.Is this a right way?

 

 

 

0 Kudos
Message 8 of 8
(3,323 Views)