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_NOTIFICATION

Description

Structure for RT-LAB API notifications.

For OP_PARAMETER_UPDATE and OP_SIGNAL_CHANGE events, you can get additional informations using OpalNotificationGetPathName, OpalNotificationGetID andOpalNotificationGetValue.

Usage

typedef struct{

OP_EVENTS event;

short int status;

long int cycle;

OP_REF_ID modelId;

short int logicalId;

char *message;

} OP_NOTIFICATION;

typedef void (*OPALCALLBACK) (OP_NOTIFICATION, void *pUserData);

Elements
  • event: Event ID. see OP_EVENTS.
  • status: Error code.
  • cycle: Model step.
  • modelId: ID of the model from which the event has been detected. 0 (zero) means that this is a project event.
  • logicalId: Subsystem’s logical ID from which the event has been set. see Glossary.
  • message: Message if any.
ExamplesNone.
Related ItemsOP_EVENTS, OpalSetNotificationCallback, OpalSetNotificationCallbackForModel, OpalNotificationGetPathName, OpalNotificationGetID, OpalNotificationGetValue
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