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.

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

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
  • No labels