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_ACQGR_SIGNALS_IN

Description

Defines the structure to fill and pass to signal acquisition functions. You may activate the synchronization algorithm to synchronize the simulation execution with the acquisition. The interpolation can be used, in this case, to obtain a better result during missed data intervals.

If the time difference between the host and the target exceeds the threshold (sec), the acquisition (console) is updated to overtake the difference. The acqTimestep offers you a way to change the console step size as in Simulink.

Usage

typedef struct{

unsigned short acqGroup;

char synchronize;

char interpolate;

double threshold;

double acqTimestep;

} OP_ACQGR_SIGNALS_IN;

Elements
  • acqGroup: Acquisition group number. Starts with 0.
  • synchronize: Enable synchronization.
  • interpolate: Enable interpolation.
  • threshold: Threshold time between command station and target.
  • acqTimestep: Console sample time.
ExamplesNone.
Related ItemsOpalGetSignalsForGroup (internal)
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