NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

know steps names of called sequence file using sequence call step type in TestStand

Hi,
    I have a problem in accessing step names in called sequence file using "Sequence call"step type in TestStand 4.0.
I would list out all step names of called sequence file. Is it possible to do through C#.NET? If, yes, Please explain to me in detail with possible example.
 
Thank you,
regards
RKK
0 Kudos
Message 1 of 8
(4,794 Views)
Hello RKK,

Are you making your own User Interface (or custom Operator Interface) in C#, or are you having difficulties getting a list of all of the available sequences in your sequence file from the Sequence Call step settings?  The "Sequence Call" step lists the sequences in the sequence file, not the steps in a sequence.  Are you trying to run a step directly from another sequence?  I look forward to your response.
Best Regards,
Software Engineer
Jett R
0 Kudos
Message 2 of 8
(4,773 Views)
Yes, I am making own interface. My executions is like this.
1) I have sequence file which has got 2 steps are type "Sequence call".
   1.1  The step one has got assigned to another sequence file. The reference file has got 6 steps are type "ACTION" and other.
   1.2  The second step  got assigned to another sequence file.The reference file has got 6 steps are type "ACTION" and other.
When I start execute the main sequence file shows the windows. But, problem is now, I would like to capture each step values of referenced file and store into a variable for future use. Form the bellow code I can get first step( which is referenced by another sequence file) results and another. Please help me in this. Please make necessory chnage in code if it's wrong. I am looking forward for the answer.
 
Thank you....
 
My code looks like.
Please see the attachment
 

 

0 Kudos
Message 3 of 8
(4,757 Views)
Hey RKK,

TestStand 4.0 comes with many great examples of full-featured and simple Operator Interfaces written in C# and other languages.  You can finds these examples on your computer in the <TestStand>\UserInterfaces\NI\ folder; the <TestStand>\UserInterfaces\NI\Full-Featured\CSharp\ example should help you out the most.  Let me know if you have any questions.
Best Regards,
Software Engineer
Jett R
0 Kudos
Message 4 of 8
(4,748 Views)
Hey Jett R.
I seen those examples, but I did get the required information. Please go through my attachment of code and help me. I waiting for u r reply.
 
Thank you,
 
Regards
RKK
0 Kudos
Message 5 of 8
(4,736 Views)
Hey RKK,

I wrote a simple example for you in C# .NET, and I also wrote a sequence (GetNames.seq) that calls this .NET assembly in the "Dll" sequence.  This assembly will return the names of all the sequence in a sequnece file that you pass by reference.  Please open GetNames.seq and run the "Dll" sequence.  If you break after the GetNames step, you will notice that the local variable, SequenceNames, has all of the names of the current sequence file.  I also want to point out that the pre-expression of the GetNames step allocates the SequenceName array to the appropriate size.  I hope this helps.  Have a great day!
Best Regards,
Software Engineer
Jett R
0 Kudos
Message 6 of 8
(4,715 Views)
Hi Jett R.
Thank you for u r reply.
My requirement is
1) Main Sequence file steps (step type is "Sequence Call)calls another sequence file . I would like to know the step names of called sequence file and list it out.
 
Please see the attachment of sequence file for u r reference.
Please give a soliution for this
 
The folder has got three sequence files
1) mainSequence.seq
2)subSequence1.seq
3)subSequence2.seq
Here mainSequence.seq file has got 3 Steps
1) firtst step type is "Sequence call" which calls the "subSequence1.seq" file . I woul like to know how to list all step names at runtime?
2) second step type is "Message popup"
3) third step type is "Sequence call" Which calls the "subSequence2.seq" file.  I woul like to know how to list all step names at runtime?
 
 
Thank you
 
0 Kudos
Message 7 of 8
(4,704 Views)
 

Hey RKK,

I want to first set your expectations for the forums.  This is not a place for people to review and rewrite your code for you; this is a place for specific and general questions.  I am not saying your question in this thread is inappropriate, because it is a good questions.  We should just not post code and ask others to fix it here.  If you are looking for this type of service we have alliance members that can help you write your TestStand Operator Interface (www.ni.com/partners).

As for you question about getting the sequence names for a sequence file that is not the currently running sequence file, you will need to open a reference to that sequence files and then use the API calls that I mentioned in my previous posts.  You can use the Enigine.GetSequenceFileEx function to open a reference to sequence file, and you will need to close the reference with the Engine.ReleaseSequenceFile function when you are done using it.  After you have a reference to this external Sequence File, you can use the example dll and sequence I previously sent you.  I also attach a new sequence file (SeqFile2.seq) plus an updated GetNames.seq to illustrate how to use the above mentioned functions.  I hope this helps.  Have a great day!

 
Best Regards,
Software Engineer
Jett R
0 Kudos
Message 8 of 8
(4,691 Views)