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,889 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,882 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,880 Views)