06-25-2004 04:54 AM
06-25-2004 05:17 AM
06-25-2004 01:24 PM
06-25-2004 01:29 PM
02-27-2007 03:36 PM
02-27-2007 03:51 PM
02-27-2007 03:58 PM - edited 02-27-2007 03:58 PM
Before you go creating 100 different LV2 globals for everything you want to store, you should think about alternate methods. First, shift registers are the fastest method to store data in a running program. Also, using clusters to store like data will save you a lot of time, especially since you said all of your hidden controls are for settings. For most of my settings that users set in a dialog but don't need to see all the time, I use a config file to store values and a typedef cluster to hold them in the program. The file gets read at appropriate times and the cluster is updated. When I need a specific setting, I unbundle the cluster from the shift register and read whatever data I need.
You really only need LV2 globals to exchange data between VIs that are running side by side dynamically and aren't connected by wires as in a main-subvi relationship.
Edit: Lynn beat me to most of what I had to say. Good info there, I hope all this helps.
Message Edited by Marc A on 02-27-2007 04:59 PM
02-27-2007 03:58 PM
02-28-2007 01:56 PM
02-28-2007 02:00 PM