ClassPrefix_self_test

CVI/LabWindows IVI Class Driver

ClassPrefix_self_test

IVI Inherent Function

To form the ClassPrefix_ of the function name, use the prefix of the class driver with which you are working. For example, if you are working with the IviDmm class driver, use the prefix IviDmm_ to create the correct function name, IviDmm_self_test.

C Function Prototype

ViStatus ClassPrefix_self_test(ViSession vi, ViInt16 * testResult, ViChar testMessage[]);

Purpose

Causes the instrument to perform a self-test. ClassPrefix_self_test waits for the instrument to complete the test. It then queries the instrument for the results of the self test and returns the results to you.

Parameters

Name Type Description
vi ViSession The instrument handle that you obtain from the ClassPrefix_init or ClassPrefix_InitWithOptions functions. The handle identifies a particular IVI session.
     
Outputs Type Description
testResult ViInt16 Numeric result from self-test operation
0 = no error (test passed)
testMessage ViChar array Self-test status message. You must pass a ViChar array with at least 256 bytes.

Return Values