NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

API to get File Globals Separate/Shared Setting

Solved!
Go to solution

Hi all,

 

Does anyone know how to get the File Properties Sequence File Globals setting pragmatically? I can get most of the other settings from the Sequence File pragmatically, but this one is eluding me. I'm using TestStand v4.2.1

 

-Jack

 

0 Kudos
Message 1 of 3
(3,164 Views)

Hi Jack,

 

It seems there is no "real" API call for this available,

but you may access the Data Object...

just use this:

Statement:

RunState.SequenceFile.Data.SFGlobalsScope = 1

API:

SequenceFile.Data.AsPropertyObject().SetValNumber("SFGlobalsScope",1)

 

Regards

 

Juergen

 

 

 

--Signature--
Sessions NI-Week 2017 2016
Feedback or kudos are welcome
Message 2 of 3
(3,151 Views)
Solution
Accepted by topic author Captain_Jack

Thanks Juergen!

 

Your response got me pointed at what I needed, which was to get the value:

 

 int sfGlobalsScope = (int)args.SeqFile.AsPropertyObjectFile ().Data.GetValNumber ("SFGlobalsScope", 0);

 

Thanks again for your help!

 

-Jack

0 Kudos
Message 3 of 3
(3,103 Views)