09-27-2005 03:21 AM
Hi All.
I have a problem with the OI. When I have started a seq and it fails because of a seq error... then I go to the editor and correct the fault, and then try again in the OI, but it doesn't reload the seq file after it is changed.
Then I try to put in a button on my OI to close the seq file.
I have tried to do this in 2 ways.
First I tried to use ApplicationMgr.ReloadModifiedSequenceFiles , but it does not work, I cant figure out why it isn't changed after I press save....
Then I tried to use ApplicationMgr.SequenceFiles and afterwards SequenceFiles.Count, but Count is always 0.... why.... it seems that all seq files are running in another instance of that activex server....
Count should at least be 1 because I have a seq file that is running in a "endless" loop in the background..
So any ideas ???
09-30-2005 10:55 AM
09-30-2005 03:12 PM
Hi Allan.
I have just tried again... and I cant it to work.
My OI is just a slightly modified "Simple OI"
What I have done is that I have made a event that fires when I press a button. The only thing the event does is that it calls ReloadModifiedSequnceFiles. It seems that i cant see that the file is changed.
ApplicationMgr.SequenceFiles.Count still reports 0..
Maybe it could have something to do with the way I call the seq. I have this background seq that calls the test seq. This background seq is hidden, and that has caused med a lot troubles before... (as you properly know.. Anders Meister you know..)
I have checked that I only have one ApplicationMgr in the OI.....
Any other Ideas ??
Kind Regards Thomas
09-30-2005 04:42 PM
09-30-2005 05:22 PM
10-06-2005 10:18 AM
10-06-2005 10:18 AM - edited 10-06-2005 10:18 AM
Message Edited by AllenP on 10-06-2005 10:18 AM
10-06-2005 11:06 AM
Hi Allan.
I don't hold any reference do these files (as far as I know), I just launch my "test seq" from my background seq (launched in a new execution, with the normal seqmodel), but it could be a good solution to check if the seq file has changed before I start the seq.. this could properly be done both from my background seq or in the model seq... I have not not laptop with me home today (I have been on a NI seminar today ) but I will try this as the first thing tomorrow morning.
Thanks for your answer...
10-07-2005 09:49 AM
Hi Allan.
Now I know what you mean about if I was holding a reference to the new execution. Now I have made this reference, and I can also get out the information if the seq is changed or not, but now I cant get ReleaseSequenceFileEx to work, it will not release and unload the file.
The problem must be that another "thing" has a reference to the seq. The only other thing I can think of is the Execution View in the OI.......
So now I am a little bit lost again... can you please help me a little bit further.
I have attached a cut of my background seq, so you can see what I am doing.
10-10-2005 09:55 AM