EasyManuals Logo

Keysight E3634A User Manual

Keysight E3634A
205 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #175 background imageLoading...
Page #175 background image
Application Programs 6
Keysight E3633A and E3634A User’s Guide 175
void SendSCPI(char* pString)
{
char* pdest;
strcpy(commandString,pString);
strcat(commandString,"\n");
ErrorStatus = viPrintf(power_supply,commandString);
CheckError("Can’t Write to Driver");
if (bGPIB == 0)
delay(1000); /* Unit is milliseconds */
pdest = strchr(commandString, ’?’); /* Search for query command */
if( pdest != NULL )
{
ErrorStatus = viScanf(power_supply,"%s",&ReadBuffer);
CheckError("Can’t Read From Driver");
strcpy(pString,ReadBuffer);
}
}
void ClosePort()
{
/* Close the communication port */
viClose(power_supply);
viClose(defaultRM);
}
void CheckError(char* pMessage)
{
if (ErrorStatus VI_SUCCESS)
{
printf("\n %s",pMessage);
ClosePort();
exit(0);
}
}
void delay(clock_t wait)
{
clock_t goal;
goal = wait + clock();
while( goal > clock() ) ;
}
End of program

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Keysight E3634A and is the answer not in the manual?

Keysight E3634A Specifications

General IconGeneral
BrandKeysight
ModelE3634A
CategoryPower Supply
LanguageEnglish

Related product manuals