NI TestStand Idea Exchange

cancel
Showing results for 
Search instead for 
Did you mean: 
RayFarmer

Shared or Separate FileGlobals

Status: New

I would like to see Shared or Separate FileGlobals available to all Types of Sequence File not just limited to Batch or Parallel Process Models.

 

Regards

Ray Farmer

Regards
Ray Farmer
6 Comments
Eugene12
Member

Hello Ray,

 

Am I misunderstanding this? The sequential model always has only one test socket execution, so how would this apply to it?

 

 

Eugene

RayFarmer
Trusted Enthusiast

If you have two sequence file where you MainSequence, one SequenceFile calls a Sequence contained in another Sequence File and you had set the option to Share FileGlobals then you can only Share if you are using Parallel or Batch Models.  If you are using Sequential Model, although you can still set the option, the FileGlobals are still treated as separate.

 

Hope this is clear.

 

regards

Ray

Regards
Ray Farmer
Eugene12
Member

Kudos

 

Wow. That is a good idea.

 

 

Eugene

dug9000
NI Employee (retired)

The current Shared vs. Separate file globals setting is not related in any way to what process model you are using. I think the documentation incorrectly gives that impression, but its implementation has nothing to do with process models.

 

That said, I think you are misunderstanding what the setting does and are perhaps asking for a new setting. When using the Shared setting, the file globals are shared among all executions, BUT they are still per sequence file, so only sequences in the same sequence file can access the same FileGlobals. In the case describe above you are  perhaps wanting the fileglobals to be shared between multiple sequence files. That is not how they currently work. Perhaps what you really want are station globals defined by the initial sequence file of the execution?

 

-Doug

RayFarmer
Trusted Enthusiast

Hi Doug,

 

Maybe your right that this is a new setting.

 

I know when I first started using TestStand (a long time ago), I created a number of sequences in separate sequencefiles because I thought it would be easier to reused sequences/sequencefiles this way only to find FileGlobals didn't work the way I thought they did when setting the Shared option. 

 

 

I dont think you want them to behave like StationGlobals, otherwise you might just as well use StationGlobals.

 

I think you would need to beable to setup sequencefiles to beable to share FileGlobals from a master only at runtime.

 

Also, when setup sequencefile, have the option of to import  the FileGlobals from a master sequencefile so that if used on there own they would not error because of missing FileGlobals.

 

regards

Ray

 

 

 

 

Message Edited by Ray Farmer on 06-15-2010 09:16 PM
Regards
Ray Farmer
dug9000
NI Employee (retired)

Hi Ray,

 

I think what you want might be very similar to the another idea already posted, the Project-based or Workspace-based globals. Take a look at that idea and see what you think.

 

Another possibility might be to have a feature like we have for locals where a variable can propagate to the subsequence (that might be a lot trickier and potentially more confusing than the Project/Workspace-based globals though).

 

-Doug