NI Home
Cart Cart | Help
Hello Events Academic NI Developer Zone Support Solutions Products & Services Contact NI MyNI
You are here: 
NI Home > NI Developer Zone > NI Discussion Forums


Reply
Member
MICHAELZUBKOV
Posts: 9
0 Kudos

Unload Sequence

Hi,

How can I unload sequence after it finished running?

In unload option I picked the unload after step executes, in MainSequence I did not set Optimize Non Reeantrant calls to This Sequence, but still the used memory did not decreased.

Thanks.

Member
glennjammin
Posts: 46
0 Kudos

Re: Unload Sequence

There is an API function that does this.

 

RunState.Engine.UnloadAllModules()

 

 

Test Engineer
L-3 Communications
Member
glennjammin
Posts: 46
0 Kudos

Re: Unload Sequence

Sorry I misread your question.  The UnloadAllModuals() function wouldn't be the best solution for you.

 

I believe you want to unload that individual step.

 

There is an option in the step settings under run options.  I will look at it when I am at my computer tomarrow to see if I can give you a better answer. 

Test Engineer
L-3 Communications
Member
MICHAELZUBKOV
Posts: 9
0 Kudos

Re: Unload Sequence

Hi,

Thanks for the answer, but I need to run different sequences one after another (in one execution).

After one sequence finished running I want to unload it and to run the next one. The configurations I descibed in the first question should be enough, but still it did not work.

Member
glennjammin
Posts: 46
0 Kudos

Re: Unload Sequence

1. Select Step:

 

tsscreenshot.PNG

 

2. Here is what you need to do to dynamically load sequence.

 

Dynamiclly loading vi.PNG

 

 

 

3. Then  Unload after step executes:

 

Unloadstep.PNG

Test Engineer
L-3 Communications
Member
glennjammin
Posts: 46
0 Kudos

Re: Unload Sequence

The UnloadAllModuals() would work if you put it in the post Expression on each seq call.  But there is a performance hit if you were to use it after each step.
Test Engineer
L-3 Communications
Member
MICHAELZUBKOV
Posts: 9
0 Kudos

Re: Unload Sequence

Hi,

As I mentioned before, I did all of the properties you suggested (load dynamicaly too), but still not working.

Correct me if I am wrong, but if it was working, the memory that TestStand using suppose to decrease.

I do not use the UnloadAllModules(), only the properties of the sequence.

Member
glennjammin
Posts: 46
0 Kudos

Re: Unload Sequence

Can you give an example of what you are trying to do and maybe I can more fully understand what you are trying to do.
Test Engineer
L-3 Communications
Member
MICHAELZUBKOV
Posts: 9
0 Kudos

Re: Unload Sequence

 

 

Hi,

Here is an example.

I have sequence with all the properties you said. After the sequence ends I excpect the memory of TestStand to decrees (Task Maneger).

 

example.JPG

Trusted Enthusiast
RayFarmer
Posts: 4,648

Re: Unload Sequence

Hi,

 

Providing there is no other reference to that Sequence File in you Sequence then I would say your assumption is correct.

 

Regards

Ray Farmer

Regards
Ray Farmer
By using this web site, you accept the Terms of Use for this web site. Please read these Terms of Use carefully before using any part of this site. Please go here for information on ni.com's copyright infringement policy.
My Profile | Privacy | Legal | Contact NI © 2011 National Instruments Corporation. All rights reserved.    |    E-Mail this Page E-Mail this Page