10-25-2005 09:03 AM
10-25-2005 09:17 AM
The easy answer is to store the data in a file, load it at the beginning of the code and also reload it when ever the sensor is changed. You should encapsulate this in 2 functional sub vi - load config and store config. The load event will take a serial number and return values for all settings, and the save takes the serial number and settings and a location on where to store the information, and returns an error cluster is it fails. The tricky part is how and where to store this information. The most popular methods (there are a few threads on this) are ascii text files, xml, .ini files and inside a database. The tradeoffs are difficulty or programming vs flexibility. Speed and space requirements are usually no longer a bottleneck in a task like this.
Paul
10-25-2005 09:19 AM
Also you can set the default values using make current values default, but these will be static,
Paul
10-25-2005 09:39 AM
10-25-2005 09:55 AM
10-25-2005 09:59 AM
Right-click on the control in the diagram and do a "Create local".
The local that is created will let you wire values to it.
Ben
10-25-2005 05:58 PM