11-09-2015 04:59 AM
Hi !
I oufnd other posts treating about this subject but they're old and doesn't really give a clear answer to this problem : save and restore an execution context.
The idea is to get a 'photography' of an execution at a specific moment (in my case: when the user terminates an execution) and then restore the execution when needed (in my case: when the user will re-open the terminated sequence file).
I'd like to do it with the most efficient way possible. I've taken a look at Execution.Get/NewSequenceDefaultValues but it only retunr 'original' values of the sequence loaded, not the current values. I've also seen that a PropoertyObject can be serialized/unserialized, but this serialization doesn't seem to embedded current PO variable values...
Will I be obliged to create my own backup/restore system or is there an efficient way to this ?
BTY, I'm using TS and LV 2014.
Thanks !
11-23-2015 03:37 AM
Hello zyl7,
You'll have to create your backup/restore system.
You'll have to apply the variables of your sequence to the sequence file data.
Difficulties will be found with objects like reference or handle.
Good luck!
Regards,
11-23-2015 07:08 AM
Hi Jovan,
I finally found a way to do it using callbacks and UIMessages.
The problem is not about saving/restoring the variable values, but it is to return to the 'nex start step'. Thi snew step may be be deep into a sequence call hierarchy, so diving to this specific one when the execution begins can be difficult. But I found my way doing it !
Thanks anyway for your answer !