NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Parrallel testing using rentrant VIs with Funtional Globals

Solved!
Go to solution

I belive that in order to run a vi in parallel in teststand you must make it reentrant.

My problem is that one of my VIs uses a functional global and I don't want it to effect the other VIs ran for the other test sockets.

 

What is the best way to handle funtional globals in a parallel or batch process model?

 

Also is there a way to have Teststand handle whether or not the VI is reentrant?

Glenn Ellis
0 Kudos
Message 1 of 7
(4,183 Views)

make the functional global also re-entrant

0 Kudos
Message 2 of 7
(4,173 Views)

Making the Funtional Global reentrant won't work since it will just creat a copy every time it is called.

Glenn Ellis
0 Kudos
Message 3 of 7
(4,160 Views)
Solution
Accepted by topic author glennjammin

Greetings,

 

The difficulty here is that you're basically looking for a way to limit the scope of a global variable. What if you converted your functional global variable from a single value, to an array? You could then index based on what test instance you're working on. Essentially you'd still be talking to the same global variable, but you'd have uniqueness in the index of the array. How does that sound? 😄

Product Support Engineer
National Instruments
0 Kudos
Message 4 of 7
(4,148 Views)

Here is an example of the solution:

 

Functional Global:

 

 

 

Glenn Ellis
0 Kudos
Message 5 of 7
(4,115 Views)

I think you missed the attachment

0 Kudos
Message 6 of 7
(4,102 Views)

Here they are

 

Funtional Global VI:

 

 

ReentrantFuncGlob.PNG

Reentrant VI

 

ReentrantFunctionalGlobalCall.PNG

Glenn Ellis
0 Kudos
Message 7 of 7
(4,096 Views)