EasyManua.ls Logo

Agilent Technologies E3647A User Manual

Agilent Technologies E3647A
211 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 #141 background imageLoading...
Page #141 background image
Chapter 6 Application Programs
Example Program for C and C++
141
6
if(bGPIB){ /* For use with GPIB 7 address, use "GPIB::7::INSTR" address format */
strcpy(VISA_address,"GPIB::");
strcat(VISA_address,GPIB_Address);
strcat(VISA_address,"::INSTR");
}
else{ /* For use with COM2 port, use "ASRL2::INSTR" address format */
strcpy(VISA_address,"ASRL");
strcat(VISA_address,COM_Address);
strcat(VISA_address,"::INSTR");
}
/* Open communication session with the power supply */
ErrorStatus = viOpenDefaultRM(&defaultRM);
ErrorStatus = viOpen(defaultRM,VISA_address,0,0,&power_supply);
CheckError("Unable to open port");
if(!bGPIB)
SendSCPI("System:Remote");
}
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);
}
Continued on next page

Table of Contents

Question and Answer IconNeed help?

Do you have a question about the Agilent Technologies E3647A and is the answer not in the manual?

Agilent Technologies E3647A Specifications

General IconGeneral
BrandAgilent Technologies
ModelE3647A
CategoryPower Supply
LanguageEnglish

Summary

Quick Start

Preliminary Checkout

Steps to verify that the power supply is ready for initial use and operation.

Output Checkout

Procedures to check basic voltage and current functions with no load.

General Information

Safety Considerations

Details safety and EMC requirements for the power supply, including relevant standards and guidelines.

Front-Panel Operation and Features

Constant Voltage Operation

Step-by-step guide for configuring and operating the power supply in constant voltage (CV) mode.

Constant Current Operation

Step-by-step guide for configuring and operating the power supply in constant current (CC) mode.

Programming Overvoltage Protection

Details on setting the OVP trip level, enabling the circuit, and clearing overvoltage conditions.

Remote Interface Reference

Error Messages

Specifications

Appendix: Service Information

Service Information

Covers procedures for verifying operation, returning the unit, troubleshooting, and test equipment.

Related product manuals