IRmpService2.SetIsActionOngoing (METH)ΒΆ
METHOD SetIsActionOngoing : BOOL
This method tries to set that this channel (for RMP) is currently active writing or reading.
- ..note:
Do not start an activity without setting the flag by this method! And do not forget to reset it after finishing. This is especially important when using multi-threading (especially on multi-core systems). Whenever an action is ongoing, one should omit to do any work on variables used in the RMP (for example as mirror variables). In the case of an action is ongoing and you want to work on RMP variables, just wait as many cycles as necessary, until no action is ongoing any more. Then when working on the variables use IRmpService2.SetIsActionOngoing to ensure, that AC generated code will not interfere with your work on the RMP variables.
- ..return:
- If it was possible to set the current state of activity.If this is FALSE xIsActionOngoing has not been set!
- InOut:
Scope
Name
Type
Return
SetIsActionOngoing
BOOL
Input
xIsActionOngoing
BOOL