NI-Sync C API Reference

niSync_SetAttributeViBoolean

  • Updated2023-02-21
  • 1 minute(s) read

C Function Prototype

ViStatus niSync_SetAttributeViBoolean (ViSession vi, ViConstString terminalName, ViAttr attributeID, ViBoolean attributeValue);

Purpose

This function sets the value of a ViBoolean attribute.

Parameters

Name Type Description
vi ViSession The session handle that you obtain from niSync_init. The handle identifies a particular instrument session.

activeItem ViConstString This parameter is ignored for most attributes. For those attributes that are specific to a given item or terminal, the item or terminal's name, for example, NISYNC_VAL_PFI0, must be specified.

Default Value: ""

attributeID ViAttr This parameter specifies the ID of the attribute you want to set.

attributeValue ViBoolean Pass the value to which you want to set the attribute.

Note  Some of the values might not be valid depending on the current settings of the instrument session.


Default Value: none

Return Values

Log in to get a better experience