Skip to content

NI DIGITAL PATTERN DRIVER Utility Functions

Shantanu Shinde edited this page May 26, 2021 · 3 revisions

Utility Functions

niDigital_reset

Resets a digital pattern instrument to a known state.

This function performs the following actions:

  • Aborts pattern execution.
  • Clears pin maps, time sets, source and capture waveforms, and patterns.
  • Resets all properties to default values, including the niDigital Selected Function property that is set to Disconnect, causing the I/O switches to open.
  • Stops exporting all external signals and events.

C Function Prototype: ViStatus niDigital_reset (ViSession vi)

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

Return value: Reports the status of the operation.

niDigital_ResetDevice

Returns a digital pattern instrument to a known state.

This function performs the following actions:

  • Aborts pattern execution.
  • Clears pin maps, time sets, source and capture waveforms, and patterns.
  • Resets all properties to default values, including the niDigital Selected Function property that is set to Disconnect, causing the I/O switches to open.
  • Stops export of all external signals and events.
  • Clears over-temperature and over-power conditions.

C Function Prototype: ViStatus niDigital_ResetDevice (ViSession vi)

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

Return value: Reports the status of the operation.

niDigital_self_test

Returns self test results from a digital pattern instrument. This test requires several minutes to execute.

C Function Prototype: ViStatus niDigital_self_test (ViSession vi, ViInt16* testResult, ViChar[] testMessage)

Parameter Description
vi The specified instrument session the niDigital_init or niDigital_InitWithOptions function returns.
Output
testResult A parameter that indicates if the self test passed (0) or failed (!=0).
testMessage The returned self test status message. The array must contain at least 256 characters.

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-FPGA
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