IRmpService2.GetIsActionOngoing (METH)ΒΆ

METHOD GetIsActionOngoing : BOOL

This method determines if this channel (for RMP) is currently active writing or reading.

..note:

Do not perform an action without checking for avitivity first. 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 amny 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 get the current state of activity.
If this is FALSE xIsActionOngoing is not valid!
InOut:

Scope

Name

Type

Comment

Return

GetIsActionOngoing

BOOL

Output

xIsActionOngoing

BOOL

Whether the RMPService is currently active.