07-18-2008 08:17 AM
07-21-2008 05:50 PM
Hi Internati...
Well, the other thing I would try is to use the View object property:
View.AutoRefresh = FALSE
:
(your code here)
:
View.AutoRefresh = TRUE
But you might also want to check and make sure that you don't have any VIEW events registered:
View.Events.OnActiveSheetChanged = ""
View.Events.OnCursorChanged = ""
Brad Turpin
DIAdem Product Support Engineer
National Instruments
07-22-2008 10:49 AM
02-17-2021 03:09 PM
Is there something similar for a sud that I assigned to an area in VIEW?
Sometimes when I press a button in my sud, I change the visibility of other controls several time during the script execution and I can see the controls visibility flickers even with View.AutoRefresh = FALSE.
Thanks.
02-24-2021 04:51 PM
Hi Alex,
How long does your script run when you press those SUDialog buttons in the embedded VIEW area? If it's more than a second, you might consider using WndShow("ANALYSIS") to switch away from the VIEW panel while your script runs, followed by WndShow("VIEW") to switch back when it's done.
You might also verify that you have the script engine in DIAdem configured not to show updates while the script is running. You can call this programmatically with:
Call UIAutoRefreshSet(0)
Sometimes after heavy changes it can help to toggle that setting after the script is done, like this:
Call UIAutoRefreshSet(1)
Call UIAutoRefreshSet(0)
Otherwise... I'm running out of silver bullets. I also don't have a lot of practical experience building and using GUIs that have an embedded SUDialog in a VIEW area.
Brad Turpin
Principal Technical Support Engineer
NI
02-25-2021 07:33 AM
I do not see a significant change but anyway I manage to optimize my script and it's so quick now that it's tolerable.
Thank you.