Runs a self-test on the board
Gx3348SelfTest (nHandle, pbSuccess, pszTestResult, pnStatus)
Name |
Type |
Description |
nHandle |
SHORT |
Handle for the PXI board. |
pbSuccess |
PBOOL |
Returns the resulting pass/fail result |
pszTestResult |
PSTR |
Returns a detailed message regarding the self-test result |
pnStatus |
PSHORT |
Returned status: 0 on success, negative number on failure. |
The self-test checks each relay for voltage generated from each of the 3 DACs.
The function returns a string, pszTestResult, that contains an explanation of any error that occurred. For example, if the voltage measurement fails at a certain channel, pszTestResult could return the following: “Selftest Failed: Relay failed at Rail A, Group B, Channel 4".
The following example performs a self-test to the board:
SHORT nHandle, nStatus;
BOOL bSuccess;
CHAR szTestResult[512];
Gx3348Initialize (1, &nHandle, &nStatus);
Gx3348SelfTest (nHandle, &bSuccess, szTestResult, &nStatus);
printf(“The test result is: %s”, szTestResult);