11-29-2006 03:12 AM - edited 11-29-2006 03:12 AM
Message Edited by pruk on 11-29-2006 03:13 AM
Message Edited by pruk on 11-29-2006 03:13 AM
11-30-2006 07:29 PM
12-01-2006 03:23 AM
12-07-2006 02:04 AM - edited 12-07-2006 02:04 AM
Message Edited by pruk on 12-07-2006 02:07 AM
12-08-2006 10:06 AM
12-13-2006 01:33 AM
Hi Jon,
This VI is running in background, it monitos if there are specific answers in RS232 port or an user event. If so it has to generate an error (new execution should go to the cleanup to some defined actions before new execution could start up). The VI should be working all the time. I have to use background VI to have ability of debugging the program.
Best regards.
12-13-2006 01:12 PM - edited 12-13-2006 01:12 PM
Message Edited by Jon M on 12-13-2006 01:12 PM
12-14-2006 01:33 AM
Halo Jon,
Could you explain why you recommend using Termination for similar cases? I found it problematic because when I terminate the execution it doesn't go to CleanUp (for example it's impossible to shut down a power supply).
Using StationGlobal in this case isn't comfortable - I would have to check the Gloabal value at the end of every step and if it occurse jump to clean up.
For this moment my well working solution is:
The week side od this solution is that I have to re-open my bacgroundVI in every single testUUT. I hope I won't loose to much time for this.
Jon, thanks a lot for help, and please explain why you recommend Termination (how to execute all the steps I had to do before ending a procedure when it doesn't go to CleanUp).
Best regards
12-14-2006 02:04 AM
pruk,
There terminate and abort.
If you terminate, then the cleanup should be performed before the execution is terminated. I say should, but it also depends what has been set in your Station Options for runtime errors.
If you abort, then cleanup are not run.
Regards
Ray Farmer
12-14-2006 11:00 AM