NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Have ModelOptions callback execute every batch

The ModelOptions callback is a great way for example to set the number of sockets in the batch model dynamically.

 

The issue is that this is set once and for all when the sequence is loaded.

 

Is there a way to set the number of batch sockets between batches?

 

I would like for our operators to be able to test 5 units one batch, then 4 the next, ...

 

 

0 Kudos
Message 1 of 3
(2,373 Views)

I've decided that while it would be nicer if TS could handle batch sizes that vary a bunch, I can live with the operator either having to disable slots or with overriding the preBatch.

0 Kudos
Message 2 of 3
(2,329 Views)

Hi there,

 

When you're talking about setting the number of sockets dynamically, you're referring to whenever you add in a statement step, correct? So if you wanted 7 sockets, you would type in Parameters.ModelOptions.NumTestSockets = 7? And now you're wanting to be able to change this during runtime for the operator such that the code itself doesn't change in the background but everything is dictated by the UI?

Aulia V.
0 Kudos
Message 3 of 3
(2,305 Views)