12-13-2007 08:24 AM
12-13-2007 08:59 AM
12-14-2007 08:15 AM
Hi Ray,
yes, you're right. My mistake was that I did not use one of the execution entry points but executed the MainSequence directly. I missed that the documentation said "sequences called from the process model" which is clearly not the case without the entry point.
When using Single Pass or Test UUT, the ProcessModelPostStepRuntimeError is indeed called before the StationPostStepRuntimeError. They are both called in that sequence and if none of them sets the caller's ErrorReported property true, then the UiMsg_BreakOnRuntimeError is also generated.
However, as you said, having a PostStepRuntimeError sequence directly in the sequence file overrides both.
Thanks
Peter
11-30-2010 10:34 PM
Hi,
I do not have problem with using StationPostStepRunTimeError callback in the StationCallBack.seq to handle multiple sequences with multiple Process Models under the same TestStand Engine (single run time engine), i.e., only open one TestStand editor.
But the problem is that, if I run multiple sequences under two TestStand Engines, i.e., open two TestStand editors, the errors raised from multiple sequences will be caught by the same StationPostStepRunTimeError and the StationPostStepRunTimeError will be confused. The StationPostStepRunTimeError does not know where the error came from (from which TestStand engine) and them makes wrong action. Do you have any idea to handle this please?
By the way, I do not want to use ProcessModelPostStepRunTimeError to handle the system error as it has some limitations, like it is not able to handle errors from sequenceFileLoad/Unload, etc.
Many thanks,
Wei
12-01-2010 01:04 AM
I believe there is only one TestStand Engine and hence only one Station.
Have you tried using the SequenceFilePostStepRunTimeError?
12-01-2010 01:17 AM
As far as I know, the Engine is individual to each process, but of course both Engines work from the same settings in the registry so they have the same Station callback. I am fairly sure that the engines are different because we are regularly using several TestStand processes on one machine, and they start with the same set of StationGlobals with the same default values, but can change the values individually.
One might try to check the process ID to see if it can distinguish between the processes.
Regards
Peter
12-01-2010 01:23 AM
You might start with the Same StationGlobals but everything is held in memory until you start down, then the StationGlobals are saved out to the StationGlobals file.
You can force save the StationGlobals but usually you get a warning from the other TestStand App telling you that StationGlabals has changed and do you want to reload.