04-12-2013 09:54 AM
I have built a AC Motor Tester using cDAQ. The tester is in production and running well. The next step I need to tackle is to Record the test parameters that the operator is currently having to enter each time she changes to a different motor. We have several hundred different motor test specifications consisting of 22 different inputs. (1 string, 1-I16, 8-dbl, 4-Boolean, 2-I8, 1-U16). I want to set it up so if the Part Number has not been entered yet, it is recorded. If the Part Number is already in the TDMS file, all of the Value Properties are set from the data in the TDMS file.
I have wrote a small VI as to how I am trying to appraoch this problem. However, it is looking very convoluted. Is there a better way to do this?
04-12-2013 10:25 AM - edited 04-12-2013 10:26 AM
My favorite way to store that kind of parameters is INI files. Create an INI file for each new motor and store the parameters in it.
Another way is to use XML files (there are really great XML toolkits)
04-12-2013 11:07 AM - edited 04-12-2013 11:07 AM
When confronted with a large number of controls, I will place them in a cluster and save in an XML file. This way, I only have to worry about wiring one thing (instead of each control).
Also, reading is easier because when you read in the XML file, just unflatten from XML and wire to the cluster.