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.

GetAcqTrigger

Group

Model Configuration, Acquisition

Description

Get the dynamic acquisition trigger that will be used during the simulation.

Required Control

None

Usage

results = RtlabApi.GetAcqTrigger( acquisitionGroup )

( signalName, trigSignalName, level, offset, condition, triggerEnabled, triggerType ) = results

Input

  • acquisitionGroup: Acquisition group (numbering starts at 0).

Output

  • signalName: Name of the triggered signal.

  • trigSignalName: Name of the triggering signal. If “level” is specified then trigSignalName is empty.

  • level: Value that must be reached by the trigger signal to trigger acquisition.

  • offset: Number of steps (cycles) to wait before starting the acquisition system.

  • condition: Condition to be satisfied so that the acquition system is triggered. See OP_TRIGGER_CONDITION.

  • triggerEnabled: Specified if the dynamic trigger is enabled or disabled (1/0 = Enable/Disable).

  • triggerType: Type of trigger that will start the acquisition TRIG_BY_SIGNAL(0) / TRIG_BY_VALUE(1).

Exception

  • EOK: Success.

  • EBADF: Model not specified by previous Connect or OpenProject.

  • EINVAL: Invalid acquisition group.

  • EIO: Error sending the request or receiving the reply.

  • ENOMEM: Memory allocation error.

  • E2BIG: Too many open connections for this process.

Examples

None

Related Items

SetAcqTrigger

Modules

import RtlabApi



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