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.

SetAcqBlockLastVal

Group

Model Configuration, Acquisition

Description

Set 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. The ProbeControl panel sets these settings using this call.

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

SetAcqBlockLastVal(BlockOnGroup, lastValues)

Input

  • 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 equal to -1.

Output

None

Exception

  • EOK: success.

  • ENOMEM: memory allocation error.

  • EBADF: model not specified by the previous Connect or OpenProject.

  • EACCES: error saving parameters to .probe file.

  • EINVAL: invalid acquisition group.

  • ESRCH: the specified acquisition group is not active.

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

Examples

None

Related Items

GetAcqBlockLastVal

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