04-08-2008 06:50 AM
04-08-2008 11:45 AM
Hi Stjag,
The Navigator.Events.OnLoaded() event is called once after a load event is finished. There is also a Navigator.Events.OnFileLoading() event and a Navigator.Events.OnDataStoreLoading() event which are called once before a load event starts (for file/sever loading respectively). You could use the pre-loading event to store the last group index before loading, then use the post-loading event to manually loop over all the new groups and call your own function once for each new group.
Bear in mind, however, that a loading event can also be a collection of channels from a variety of files or server locations, which would then be placed in a new group with an auto-generated name. Loading in DIAdem is not specific to groups-- file loading and channel loading are also valid, and regardless of type there is only one Navigator event call per loading event.
Brad Turpin
DIAdem Product Support Engineer
National Instruments