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.

GetAcqBlockLastVal

Group

Model Configuration, Acquisition

Description

Get the current settings for the blocking / non-blocking, and associated last value flag, for signal acquisition. This information is used by the API acquisition functions, which have the option not to wait for data, needed by some console's lack of multiple thread support.

These settings apply to the current model. These settings only apply to the command station from which this call is made.

Required Control

None

Usage

(blockOnGroup, lastValues) = GetAcqBlockLastVal()

Input

None

Output

  • blockOnGroup: Acquisition group for which the API functions will wait for data (specify n for group n). If 0, API function will wait for data for all groups. If -1, API functions will not wait for any group's data.

  • lastValues: Boolean, 1 means API functions will output the last values received while a group's data is not available. If 0, the API function will output zeroes. This parameter is ignored when blockOnGroup is not egal to -1.

Exception

  • EOK: success

  • ENOMEM: memory allocation error

  • EBADF: model not specified by previous OpalConnect or OpenProject

  • EIO: error sending the request or receiving the reply from Controller

Examples

None

Related Items

SetAcqBlockLastVal

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