While coding in LV for product test rig applications there is this need to save configuration data to disk and retrieve it while running the test. A typical scenario to test product "AA" will be :
1. There are 10 different variations of the basic product AA_1 to AA_10.
2. Each variant has 40 odd parameters that can vary.
3. User enters the values for these variants and will have to be saved on disk.
4. When a particular model is tested, all 40 parameters for it have to be read from disk and used in the various tests.
In such events the only option seems to be :
(*) Collect all the user entered parameters into clusters. If there are totally 8 tests for each model, then have 8 clusters and bundle parameters pertaining to each test into that cluster.
(*) Write the clusters to disk in a bit stream using "Write File.VI"
(*) When running the test, retrieve the parameters from disk and load them into the relevant clusters back. Unbundle by name and use each of the parameters as required. And if the same parameter is required to be used in many functions in the same test, then assign it to a local variable (my beloved ;-)) and use it.
I would like experienced LV professionals to comment on this method.
Handling the clusters and wiring them for large data storing and retrieval calls for heavy wiring. Is there no way out ?
Thanks
Raghunathan
Raghunathan
LabVIEW to Automate Hydraulic Test rigs.