Skip to content

NI DIGITAL PATTERN DRIVER Sequencer Flag Functions

ShantanuShinde edited this page May 24, 2021 · 2 revisions

Sequencer Flag Functions

niDigital_WriteSequencerFlag

Writes the state of a pattern sequencer flag. Use pattern sequencer flags to coordinate execution between the pattern sequencer and a runtime test program.

C Function Prototype: ViStatus niDigital_WriteSequencerFlag (ViSession vi, ViConstString flag, ViBoolean value)

Parameter Description
vi The specified instrument session the niDigital_init or niDigital_InitWithOptions function returns.
flag

The pattern sequencer flag to write.

- NIDIGITAL_VAL_SEQUENCER_FLAG0 ("seqflag0"): Writes pattern sequencer flag 0.

- NIDIGITAL_VAL_SEQUENCER_FLAG1 ("seqflag1"): Writes pattern sequencer flag 1.

- NIDIGITAL_VAL_SEQUENCER_FLAG2 ("seqflag2"): Writes pattern sequencer flag 2.

- NIDIGITAL_VAL_SEQUENCER_FLAG3 ("seqflag3"): Writes pattern sequencer flag 3.

value A Boolean that assigns a state to the pattern sequencer flag you specify.

Note These defined values are currently not supported for gRPC, instead pass the raw values specified alongside, directly.

Return value: Reports the status of the operation.

niDigital_WriteSequencerFlagSynchronized

Writes a Boolean value to the pattern sequencer flag for synchronized digital pattern instruments. Use pattern sequencer flags to coordinate execution between the pattern sequencer and a runtime program.

C Function Prototype: ViStatus niDigital_WriteSequencerFlagSynchronized (ViUInt32 sessionCount, ViSession[] sessions, ViConstString flag, ViBoolean value)

Parameter Description
sessionCount Number of sessions.
sessions An array of niDigital sessions.
flag

The pattern sequencer flag to write.

- NIDIGITAL_VAL_SEQUENCER_FLAG0 ("seqflag0"): Writes pattern sequencer flag 0.

- NIDIGITAL_VAL_SEQUENCER_FLAG1 ("seqflag1"): Writes pattern sequencer flag 1.

- NIDIGITAL_VAL_SEQUENCER_FLAG2 ("seqflag2"): Writes pattern sequencer flag 2.

- NIDIGITAL_VAL_SEQUENCER_FLAG3 ("seqflag3"): Writes pattern sequencer flag 3.

value A Boolean that assigns a state to the pattern sequencer flag you specify.

Note These defined values are currently not supported for gRPC, instead pass the raw values specified alongside, directly.

Return value: Reports the status of the operation.

niDigital_ReadSequencerFlag

Reads the state of a pattern sequencer flag. Use pattern sequencer flags to coordinate execution between the pattern sequencer and a runtime test program.

C Function Prototype: ViStatus niDigital_ReadSequencerFlag (ViSession vi, ViConstString flag, ViBoolean* value)

Parameter Description
vi The specified instrument session the niDigital_init or niDigital_InitWithOptions function returns.
flag

The pattern sequencer flag you want to read.

- NIDIGITAL_VAL_SEQUENCER_FLAG0 ("seqflag0"): Writes pattern sequencer flag 0.

- NIDIGITAL_VAL_SEQUENCER_FLAG1 ("seqflag1"): Writes pattern sequencer flag 1.

- NIDIGITAL_VAL_SEQUENCER_FLAG2 ("seqflag2"): Writes pattern sequencer flag 2.

- NIDIGITAL_VAL_SEQUENCER_FLAG3 ("seqflag3"): Writes pattern sequencer flag 3.

value A Boolean that indicates the state of the pattern sequencer flag you specify.

Note These defined values are currently not supported for gRPC, instead pass the raw values specified alongside, directly.

Return value: Reports the status of the operation.

Table of Contents

Internal Development

Creating and Setting Up a gRPC Server

Server Security Support

Creating a gRPC Client

gRPC Client Examples

Session Utilities API Reference

Driver Documentation

gRPC API Differences From C API

Sharing Driver Sessions Between Clients

C API Docs
NI-DAQmx
NI-DCPOWER
NI-DIGITAL PATTERN DRIVER
NI-DMM
NI-FGEN
NI-RFmx Bluetooth
NI-RFmx NR
NI-RFmx WCDMA
NI-RFmx GSM
NI-RFmx CDMA2k
NI-RFmx Instr
NI-RFmx LTE
NI-RFmx SpecAn
NI-RFmx TD-SCDMA
NI-RFmx WLAN
NI-RFSA
NI-RFSG
NI-SCOPE
NI-SWITCH
NI-TCLK
NI-XNET
Clone this wiki locally