NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

dynamically set number of sockets in parallel mode

I am new to teststand (been programing LabVIEW for a long time)
I know this is do-able but not sure where to implement it - hoping for an example.
Before the 'Test UUTs' entry point I would like a message popup;
- based on the user button pressed I would like to set the number of sockets to either 3 or one (three sockets when running in auto mode, one socket if running in manual mode) all within Parallel model (can't change models on the fly)
ideally I would like the entire thing encased in a loop that would ask "auto, manual, exit" so that a manual session could be run, and at the completion one or more sessions in auto mode before exiting.
SO WITHIN EITHER A MANUAL OR AUTO SESSION 'NEXT UUT' WOULD STILL BE AVAILABLE, and after exiting from next uut the outer loop would still allow switching session modes
the loop would need to be right up front so the number of sockets could be set before the mode options are loaded.
if there is an example of a modified parallel process model that has similar mods, I would be very gratefull,
thanx
lmd2
ALE System Integration
Lawrence M. David Jr.
Certified LabVIEW Architect
cell: 516.819.9711
http://www.aleconsultants.com
larry@aleconsultants.com
0 Kudos
Message 1 of 4
(3,424 Views)
Hi lmd2,

Attached is a quick example of one way to do what you are asking. This is only a general example, and there may be a bettter implementation depending on the architecture of your application.  The link here also has information on setting the number of sockets for a specific sequence file. Hope this helps.

Regards,
Ebele O.
National Instruments
0 Kudos
Message 2 of 4
(3,408 Views)
thanx
this should get me going
Lawrence M. David Jr.
Certified LabVIEW Architect
cell: 516.819.9711
http://www.aleconsultants.com
larry@aleconsultants.com
0 Kudos
Message 3 of 4
(3,395 Views)
Hi,
I've been playing with your parallelModel.seq
It does just what I was looking for, but there seems to be a bug in the cleanup (some variable is being incorrectly set I believe)
if I run auto mode (3 sockets) and then exit, I get an 'Array index out of bounds' error one time on each of the following steps:
Tell all Test Sockets to Stop
Set all Test Socket notifications
HOWEVER if I run manual mode (1 socket) I get the same errors but 3X on each step ...

in the main section after the message popup, if the third button is pressed (exit), GoTo cleanup, and the following 2 statements which set the array size and set the local 'NumTestSockets' don't execute because of the goto
I moved the goto to be after those two statements and I think it is working
Thanx again for the help
Lawrence M. David Jr.
Certified LabVIEW Architect
cell: 516.819.9711
http://www.aleconsultants.com
larry@aleconsultants.com
0 Kudos
Message 4 of 4
(3,390 Views)