NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Total number of test

Hi Guys,

Is there a way to get the total number of test in a given sequence file?

thanks,

Steve
0 Kudos
Message 1 of 8
(4,135 Views)
Steve,

I can tell you how to get the number of steps in a sequence or sequence file.  However, due to looping, sequence calls, external calls to other files, this may not be the information you want.

Once you have a SequenceFile object, you can iterate through the Sequences using the GetSequence method and the NumSequences property.  Once you have a Sequence, you can use the GetNumSteps method for each of the three step groups.

Pseudo code:
totalsteps = 0
For each Sequence in SequenceFile
totalsteps+= Sequence.GetNumSteps(Setup)
totalsteps+= Sequence.GetNumSteps(Main)
totalsteps+= Sequence.GetNumSteps(Cleanup)
End For

If I have misunderstood your question, let me know.

Allen P
NI
0 Kudos
Message 2 of 8
(4,130 Views)
Someone sent me a sequence that I believe does what you want, or at least is close.  But, I can't for the life of me see how to attach anything in this forum.

I see the insert image button but that's not what I want to do.  I see the atachment edit field below and browse to the file but nothing happens after that and it doesn't show up when I preview the post.

If this might be of interest, I can email it to you.






0 Kudos
Message 3 of 8
(3,975 Views)

Hi,

In the Post Message window, you should see a control to allow you to attach a file.

 

Regards

Ray Farmer



Message Edited by Ray Farmer on 01-28-2008 06:54 AM
Regards
Ray Farmer
0 Kudos
Message 4 of 8
(3,971 Views)
Ray,

And I've tried numerous times to browse to the file I want to attach and it then appears in the edit field and nothing get's attached.

Perhaps it's a permissions thing.


0 Kudos
Message 5 of 8
(3,964 Views)
Don't preview your post before posting. This removes attachements.
Hope this helps.
Now Using LabVIEW 2019SP1 and TestStand 2019
0 Kudos
Message 6 of 8
(3,939 Views)
Wow, that's certainly intuitive. Smiley Mad

Thank you.  It seems to work unless editing the post also drops the attachments.

OK, that seemed to work.


Message Edited by mhousel on 01-28-2008 07:58 PM

Message Edited by mhousel on 01-28-2008 07:58 PM
0 Kudos
Message 7 of 8
(3,931 Views)
Just to clarify in case someone else reads this. Don't preview a post after adding an attachment. It seems to drop the attachment.
Now Using LabVIEW 2019SP1 and TestStand 2019
0 Kudos
Message 8 of 8
(3,911 Views)