NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Lock Synchronization

Solved!
Go to solution

Hello,
I have a sequence that works in parallel mode with test sockets. All are using a DAQ, whose subvi are with "Clone execution" (VI Properties/Execution/Reentrancy), despite this I have errors that the source is reserved.
In the Steps that use this DAQ subvis in "properties"/"Synchronization" I have selected the "Use Lock to allow Only Thread at a Time to Execute the Step" with the same Lock Name for all and in Batch Synchronization: "Serial(one thread at a time)", but I'm not sure if this is the right option or "Use sequence file at a time".
I have searched in the manual but I cannot find the different options in this case explained.
Can you please help me with this?

Syn.png

 

Thanks so much in advance!!

0 Kudos
Message 1 of 5
(102 Views)

I don't understand your case completely, but maybe the folloing might help:

- changing reentrancy settings on driver VIs will enable the VIs to be called in parallel, yet I doesn't make the hardware ressource available for all parallel threads at the same time). Reserved Resource error message indicates, that one thread/ execution has reserved the ressource while the others are denied access.

- The Synchronization Steps/ Options you are referring to are only functional with the Batch Model not with the Parallel .  In the Parallel Model, you have to use lock steps.

0 Kudos
Message 2 of 5
(67 Views)

Hello Oli,

thank you very much for your response. So it's just doing the Lock for me? It doesn't matter what I am selecting in "Batch Synchronization",right?

Is this Lock in synchronization/Properties the same as the one used in "Insert Step"/"Synchronization/Lock?

 

thanks so much for your time!!

0 Kudos
Message 3 of 5
(64 Views)
Solution
Accepted by Elfernro

@Elfernro wrote:

Hello Oli,

thank you very much for your response. So it's just doing the Lock for me? It doesn't matter what I am selecting in "Batch Synchronization",right?

 


Exactly. Will be used only by the Batch Model

 


@Elfernro wrote:

 

Is this Lock in synchronization/Properties the same as the one used in "Insert Step"/"Synchronization/Lock?

 

thanks so much for your time!!


Same but different 😉

The Lock Property you can configure in the step settings only refers to this very step. If you need to include more than one step in a locked section, you better off defining a section by using dedicated Lock Steps.

 

Though I have to admit, I do prefer using explicit lock steps also for just a single one, since it doesn't hide the property somewhere in the step.

 

 

 

0 Kudos
Message 4 of 5
(57 Views)

Now everything is clear. Thank you very much!!

0 Kudos
Message 5 of 5
(52 Views)