NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Run multiple sequences in a batch

Hi All,

 

I'm a Test Stand newbie, and am struggling with this task. I have a set of circuit boards to test, a batch consists of:

 

 

  • 4 type A boards
  • 1 type B board
  • 1 type C board
I have set up individual sequences for these, and have also set up a batch sequence to test 4 type A boards, in a loop for about 200 times (whilst ramping up temperature in an enclosure). This sequence runs certain parts with Serial sync, due to shared DAQ resources.
What I'd really like to do is set up a batch sequence to test all 6 boards, and to get the B & C type to run in parallel to the type A boards to cut down cycle time.
This is where I am stuck at the moment, as due to the serial sync setting in the type A sequence, it hangs and waits for type B & C sequences to end before it will execute.
So.....is there a good / better way to test multiple sequences files as a batch - with a mixture of parallel & serial sync?
Thanks,
Martin 

 

0 Kudos
Message 1 of 6
(4,332 Views)

Martin,

 

the simpliest thing to do is to impose one MainSequence. This MainSequence will include a single call subsequence-step. Using Runstate.TestSockets.MyIndex can be used to determine, if Sequence A, B or C is to be called at this socket.

Four sockets will call A, one B and the last socket will call C.

 

hope this helps,
Norbert

Norbert
----------------------------------------------------------------------------------------------------
CEO: What exactly is stopping us from doing this?
Expert: Geometry
Marketing Manager: Just ignore it.
0 Kudos
Message 2 of 6
(4,330 Views)

Thanks Norbert, 

 

That solution does help, it now partially does what I want. Take a look at the attached flowchart - I've tried to explain there how the sequence runs currently (all Test Sockets in series) and how I'd like it to run - partially in series / parallel.

 

Is it possible to run a sequence in this way?

 

Thanks, 

 

Martin

0 Kudos
Message 3 of 6
(4,315 Views)

Hi,

 

Many (..many..) moons ago, I created a modified Process Model from the Parallel Process which allowed for executing different Sequence Files. I have found that link here.

 

It maybe of help.

 

 

Regards
Ray Farmer
0 Kudos
Message 4 of 6
(4,287 Views)

Thanks Ray, I'll try this out tomorrow...

0 Kudos
Message 5 of 6
(4,271 Views)

Ray & Norbert, 

 

Thanks for your suggestions, they got me on track. So I have a solution that works now - I used 2 semaphores within sub-sequences to sync my tests.

 

The first semaphore is used by 4 boards that run sequence A - this is to reserve DAQ resources.

 

The second semaphore syncs the boards that run sequence B & C - this is because they share a PSU.

 

As I wanted to run this sequence in a loop, I then used a rendezvous function in the caller sequence to wait until all boards have completed their test sequence before running the loop again.

 

Thanks again for your help.

 

Martin

0 Kudos
Message 6 of 6
(4,252 Views)