niSwitch_self_test

NI-SWITCH Functions

niSwitch_self_test

Specific Function

C Function Prototype

ViStatus niSwitch_self_test (ViSession vi, ViInt16* selfTestResult, ViChar[] selfTestMessage);

Purpose

Verifies that NI-SWITCH can communicate with the switch.

Parameters

Name Type Description
vi ViSession A particular NI-SWITCH session established with niSwitch_InitWithTopology, niSwitch_InitWithOptions, or niSwitch_init and used for all subsequent NI-SWITCH calls.

selfTestResult ViInt16 Value returned from the switch self-test.

0 Passed
1 Failed

selfTestMessage ViChar[] Self-test response string from the switch. You must pass a ViChar array with at least 256 bytes.