Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Data items are published (sent to an RT-LAB framework) and subscribed to (received from an RT-LAB framework) by calling RTPublish() and RTSubscribe() respectively. The data exchange can be synchronous or asynchronous, as specified in the DDF. For a synchronous connection, calls to RTPublish() and RTSubscribe() must be enclosed in calls to functions that provide a locking mechanism.

Prior to exchanging data, a connection to a domain must be established by calling RTConnect().

Disconnection from a domain is performed by calling RTDisconnect().


Background Color
color#D3D3D3


NOTE:

  • The RTAPI is C only, so that it can be compiled by C only client code.
  • The RTAPI assumes that the client code calling it is single threaded.
  • Any error in publishing and subscribing with a domain will disconnect the C code External Component from the RT-LAB Orchestra co-simulation.


...