取消
顯示結果 
搜尋替代 
您的意思是: 

Lock Synchronization

已解決!
前往解決方案

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 積分
1 條訊息(共 5 條)
770 檢視

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 積分
2 條訊息(共 5 條)
735 檢視

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 積分
3 條訊息(共 5 條)
732 檢視
解決方案
接受者 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 積分
4 條訊息(共 5 條)
725 檢視

Now everything is clear. Thank you very much!!

0 積分
5 條訊息(共 5 條)
720 檢視