The way you want to work with the user interface is not recommended.
Since TestStand is the execution engine for your application, TestStand is responsible regarding the display of the execution state.
You do not have to use the default controls in order to display the states, but you definetly should use User Interface Messages from TestStand to tell the UI when to display the value you want to have. This is a standardized procedure of datatransfer.
You can call PostUIMessageEx even from your modules if you pass the SequenceContext or Thread to the module. So you don't need to insert additional ActiveX steps into your sequence......
The backdraft of not using UI messages is:
- possible dependency of the Sequence to the UI leading to errors when execution in e.g. the SequenceEditor making debugging hard
- at least two parallel eventqueues (more overhead in architucture)
or a polling machine for changes of states (more overhead in performance)
- using variables instead of "functioncalls" can easily lead to
race conditions which might randomly mess up the whole system
hope this helps,
Norbert
Norbert
----------------------------------------------------------------------------------------------------
CEO: What exactly is stopping us from doing this?
Expert: Geometry
Marketing Manager: Just ignore it.