From 04:00 PM CDT – 08:00 PM CDT (09:00 PM UTC – 01:00 AM UTC) Tuesday, April 16, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

get station model

Solved!
Go to solution

Dear All,

 

I'm using c# user interface example and I would like to know what kind of station model and how many stations the sequence is configured.(before executing the sequence)

 

How can I get the type of station model (batch\sequential) and No. of stations with the relevant objects (axApplicationMgr\axSequenceViewMgr\axExecutionViewMgr)

Tnx

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

Hi,

 

You could use: Engine.StationOptions.StationModelSequenceFilePath

to determine which ModelFile is used.

and if your SequenceFile is refering to the model: SequenceFile.Model
is pointing to the model.

 

 

Maybe this helps
Juergen

 

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

Hi Juergen,

 

Thank you for quick and helpful answer

 

 

private void axApplicationMgr_DisplaySequenceFile(object sender, NationalInstruments.TestStand.Interop.UI.Ax._ApplicationMgrEvents_DisplaySequenceFileEvent e)
{
            string t = string.Empty;
            e.file.GetModelSequenceFile(out t);

}

 

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