Documentation Home Page RT-LAB Home Page
Pour la documentation en FRANÇAIS, utilisez l'outil de traduction de votre navigateur Chrome, Edge ou Safari. Voir un exemple.

C-API | OP_EVENTS

Description

Use these enum to register an event with the OpalSetNotificationCallback function. When one of the following events is detected, a notification is sent to all registered API.

Use values greater than OP_USER_BASE_EVENTS(1024) to define your own events.

Usage

see Elements

Elements
  • OP_SYSTEM_PRINT (0): OpalPrint has been called on target.
  • OP_SYSTEM_PAUSE (1): The model is paused.
  • OP_SYSTEM_CONTINUE (2): The model is executed.
  • OP_SYSTEM_TRIM (3): The model is trimming.
  • OP_SYSTEM_RESET (4): The model is reset.
  • OP_SYSTEM_STOP (5): The model stopped by itself normally.
  • OP_SYSTEM_DISCONNECT (6): The model is disconnected (connection with target has been lost)
  • OP_SYSTEM_ERROR (7): The model stopped by itself with errors.
  • OP_SYSTEM_MESSAGE (8): A system message is available.
  • OP_SYSTEM_OVERRUN (9): An overrun occur on target.
  • OP_SYSTEM_INTERRUPTS_ON (10): XHP is disabled.
  • OP_SYSTEM_INTERRUPTS_OFF (11): XHP is enabled.
  • OP_SYSTEM_CONTROL_LOST (12): System control has been lost (it should have been taken before).
  • OP_SYSTEM_CONTROL_TAKEN (13): System control has been taken by another API.
  • OP_SYSTEM_CONTROL_AVAIL (14): System control has been released by another API.
  • OP_PARAMETER_UPDATE (15): Some parameters have been modified on target.
  • OP_PARAMETER_CONTROL_LOST (16): Parameter control has been lost (it should have been taken before).
  • OP_PARAMETER_CONTROL_TAKEN (17): Parameter control has been taken by another API.
  • OP_PARAMETER_CONTROL_AVAIL (18): Parameter control has been released by another API.
  • OP_SNAPHOT_TAKE (19): A snapshot has been taken.
  • OP_SNAPSHOT_RESTORE (20): A snapshot has been restored.
  • OP_SNAPSHOT_CONTROL_LOST (21): Snapshot control has been lost (it should have been taken before).
  • OP_SNAPSHOT_CONTROL_TAKEN (22): Snapshot control has been taken by another API.
  • OP_SNAPSHOT_CONTROL_AVAIL (23): Snapshot control has been released by another API.
  • OP_SIGNAL_CHANGE (24): A control signal has been sent to the target.
  • OP_SIGNAL_CONTROL_LOST (25): Signal control has been lost (it should have been taken before).
  • OP_SIGNAL_CONTROL_TAKEN (26): Signal control has been taken by another API.
  • OP_SIGNAL_CONTROL_AVAIL (27): Signal control has been released by another API.
  • OP_ACQGR_CONTROL_LOST (28): Acquisition control has been lost (it should have been taken before).
  • OP_ACQGR_CONTROL_TAKEN (29): Acquisition control has been taken by another API.
  • OP_ACQGR_CONTROL_AVAIL (30): Acquisition control has been released by another API.
  • OP_BLOB_CONTROL_LOST (31): Blob control has been lost (it should have been taken before).
  • OP_BLOB_CONTROL_TAKEN (32): Blob control has been taken by another API.
  • OP_BLOB_CONTROL_AVAIL (33): Blob control has been released by another API.
  • OP_MONITORING_CONTROL_LOST (34): Monitoring control has been lost (it should have been taken before).
  • OP_MONITORING_CONTROL_TAKEN (35): Monitoring control has been taken by another API.
  • OP_MONITORING_CONTROL_AVAIL (36): Monitoring control has been released by another API.
  • OP_CONFIG_CONTROL_LOST (37): Configuration control has been lost (it should have been taken before).
  • OP_CONFIG_CONTROL_TAKEN (38): Configuration control has been taken by another API.
  • OP_CONFIG_CONTROL_AVAIL (39): Configuration control has been released by another API.
  • OP_DYN_ACQ_LIST_UPDATE (42): List of dynamic acquisition has been updated.
  • OP_ALL_EVENTS: Always the last item, may vary.
  • OP_USER_BASE_EVENTS: 1024, base event number for user notification.
ExamplesNone
Related ItemsOpalSetNotificationCallback, OpalSetNotificationCallbackForModel
Library and Header

WINDOWSLINUX
Static LibraryOpalApi.lib-
Dynamic LibraryOpalApi.dlllibOpalApi.so
Header FileOpalApi.hOpalApi.h

OPAL-RT TECHNOLOGIES, Inc. | 1751, rue Richardson, bureau 1060 | Montréal, Québec Canada H3K 1G6 | opal-rt.com | +1 514-935-2323
Follow OPAL-RT: LinkedIn | Facebook | YouTube | X/Twitter