niHSDIO_self_test
Specific Function
C Function Prototype
ViStatus niHSDIO_self_test (ViSession vi, ViInt16* selfTestResult, ViChar[ ] selfTestMessage);
Purpose
This function performs a self-test on the device and returns the test results. The self-test function performs a simple series of tests that ensure the device is powered up and responding. Complete functional testing and calibration are not performed by this function.
This function is internal and does not affect external I/O connections or connections between devices.
Parameters
Name | Type | Description |
---|---|---|
vi | ViSession | This handle identifies your instrument session. vi was obtained from the niHSDIO_InitAcquisitionSession or niHSDIO_InitGenerationSession function. |
selfTestResult | ViInt16 | This control contains the value returned from the device self-test. Self-test Code Description: 0—Self-test passed Anything else—Self-test failed |
selfTestMessage | ViChar[ ] | Returns the self-test response string from the device; you must pass a ViChar array at least IVI_MAX_MESSAGE_BUF_SIZE bytes in length |