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 3 Next »

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 OpalConnect.
  • 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.
ExamplesNone
Related ItemsGetAcqBlockLastVal
Modulesimport RtlabApi
  • No labels