DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

How can I interrupt the automatic update of an SUD file?

Hi,

 

I frequently face a problem when working with SUD files. It happens that a particular user action will lead to some major change in the interface, so much so that a large number of items will change virtually at the same time. The consequence of that is that the interface flickers, and basically turns into a seizure inducing nightmare. I know that it is possible to interrupt the update of information in the data portal using this command : call UIAutoRefreshSet(false) 

I am hoping that there is a similar one to interrupt the refresh of a user interface until all the desired modifications have been made. I would hate to be responsible for a wave of epilepsy attacks throughout my company...

 

thanks in advance

0 Kudos
Message 1 of 2
(3,989 Views)

Hi Max,

 

I just looked and didn't see any such command for SUDialogs, nor have I heard of one.  I have experienced what you're describing, and when it's happened to me, it usually means that I have the callback logic set up poorly in my SUDialog.  I can usually find a way to detangle the callback chain of events.

 

Another idea is to create a global variable in the SUDialog, such as "SuppressCallbacks", set it to FALSE when the dialog initializes, then in every callback you program put an IF NOT (SuppressCallbacks) THEN statement around the code of the callback.  Then you'll be able to toggle the callback chain directly be setting that variable to TRUE briefly.  It's not a built in feature, so it requires more programming effort on your part, but I think the idea will work.

 

Brad Turpin

DIAdem Product Support Engineer

National Instruments

0 Kudos
Message 2 of 2
(3,968 Views)