126
Keysight E1406A Command Module Service Guide
Verification Tests - C Programs
Introduction
return;
}
/* ----- TEST F-7: Serial Port Information -----* /
void serial_port_information (ViSession cm, ViStatus err)
{
char result[256] = { 0} ;
printf ("\nTest F-7: Serial Port Information\n\n");
err= viPrintf(cm, "DIAG:COMM:SER:OWN?\n"); /* Query serial port
ownership * /
if(err< VI_SUCCESS) err_handler(cm,err);
err= viScanf(cm, "%t", result);
if(err< VI_SUCCESS) err_handler(cm,err);
printf (" -Serial port ownership: %s", result);
err= viPrintf(cm, "SYST:COMM:SER:BAUD?\n"); /* Query baud rate *
/
if(err< VI_SUCCESS) err_handler(cm,err);
err= viScanf(cm, "%t", result);
if(err< VI_SUCCESS) err_handler(cm,err);
printf (" -Transmit/receive baud rate: %s", result);
err= viPrintf(cm, "SYST:COMM:SER:CONT:DTR?\n"); /* Query DTR
mode line * /
if(err< VI_SUCCESS) err_handler(cm,err);
err= viScanf(cm, "%t", result);
if(err< VI_SUCCESS) err_handler(cm,err);
printf (" -Current mode of DTR line: %s", result);
err= viPrintf(cm, "SYST:COMM:SER:CONT:RTS?\n"); /* Query RTS
mode line * /
if(err< VI_SUCCESS) err_handler(cm,err);
err= viScanf(cm, "%t", result);
if(err< VI_SUCCESS) err_handler(cm,err);
printf (" -Current mode of RTS line: %s\n", result);
err= viPrintf(cm, "SYST:COMM:SER:BITS?\n"); /* Query bits
setting * /
if(err< VI_SUCCESS) err_handler(cm,err);
err= viScanf(cm, "%t", result);
if(err< VI_SUCCESS) err_handler(cm,err);
Summary of Contents for VXI bus 75000 C Series
Page 1: ...Keysight E1406A Command Module Service Guide 75000 Series C...
Page 2: ......
Page 6: ...6...
Page 10: ...x Keysight E1406A Command Module Service Guide...
Page 70: ...70 Keysight Keysight E1406A Command Module Service Guide Replaceable Parts Component Locators...
Page 77: ...Keysight E1406A Command Module Service Guide 77 Assembly Disassembly Instructions Service...
Page 78: ...78 Keysight E1406A Command Module Service Guide Service Assembly Disassembly Instructions...
Page 79: ...Keysight E1406A Command Module Service Guide 79 Assembly Disassembly Instructions Service...
Page 81: ...Keysight E1406A Command Module Service Guide 81 Assembly Disassembly Instructions Service...
Page 82: ...82 Keysight E1406A Command Module Service Guide Service Assembly Disassembly Instructions...
Page 83: ...Keysight E1406A Command Module Service Guide 83 Assembly Disassembly Instructions Service...
Page 84: ...84 Keysight E1406A Command Module Service Guide Service Assembly Disassembly Instructions...
Page 106: ...106 KeysightE1406A Command Module Service Guide Error Messages Introduction...
Page 129: ......