Hi !
I'm facing a problem using a dynamic sequence file load.
Here's how my application works : I'm testing products on two different test sockets so I'm using (a customized) parallel processModel.
When lauching a test on one or the other test socket, I always the same proces model client (MyProcessModelClient) in which I wrote a PreUUT call back to override the usual one. In this customized PreUUT, I'm getting the serial number of a product, and according to this number I'm scripting a test sequence file and saving it (TestSequence_1.seq if it's on test socket 1 and TestSequence_2.seq if it's on the other one).
Then in the MainSequence of 'MyProcessModelClient' I have a single sequence call calling TestSequence_1/2.seq dynamically according to the current test socket (TestSocket.MyIndex+1). This sequence call is then set with :
- load option : load dynamically
- unload option : unload after step executes
And here comes the trouble !
First of all, the code stored in my sequence callback 'SequenceFileUnload' of TestSequence_x executes when the file is loaded... (i guess this one is loaded, copied in memory and unloaded just after...)
Then, when replaying PreUUT for the next product on the same test sockets produces an error when my scripting code tries to the save the new TestSequence_x file (error -17206 : '... a sequence file with that path is already loaded') !
Any idea why is it behaving like that ?