02-19-2025 03:29 AM
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?
Thanks so much in advance!!
Solved! Go to Solution.
02-20-2025 12:28 AM
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.
02-20-2025 12:38 AM
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!!
02-20-2025 02:40 AM
@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.
02-20-2025 06:00 AM
Now everything is clear. Thank you very much!!