Programmatically Change Default Values of Global VariablesPrimary Software: LabWindows/CVI Development Systems>>Base PackagePrimary Software Version: 2.0 Primary Software Fixed Version: N/A Secondary Software: LabVIEW Development Systems>>LabVIEW Full Development System
Problem: How can I save the default value of a global variable? Solution: There is no direct way to do this because a global variable is like a VI, and it saves the values internally. So the VI must be stopped in order to be able to modify it. A work around is to add an additional delay in the main VI to wait until all of the values are closed, then save the default values using a second VI. Below is an example of how this is done. Just open the toplevel.vi then the reader.vi to see that the global variables are communicating Related Links: Attachments:
Report Date: 01/10/2007 Last Updated: 08/17/2007 Document ID: 459HUS7N |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
