EasyManua.ls Logo

Rigol DP800 Series Programming Guide

Rigol DP800 Series
134 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 #121 background imageLoading...
Page #121 background image
Chapter 4 Programming Demos RIGOL
DP800 Programming Guide 4-17
status = viWrite(instr, (unsigned char *)SendBuf, strlen(SendBuf), &retCount);
//close the instrument
status = viClose(instr);
status = viClose(defaultRM);
return bWriteOK;
}
2) Encapsulate the read operation of VISA for easier operation.
bool CDP800_DEMO_VCDlg::InstrRead(CString strAddr, CString *pstrResult)
//Read from the instrument
{
ViSession defaultRM,instr;
ViStatus status;
ViUInt32 retCount;
char * SendAddr = NULL;
unsigned char RecBuf[MAX_REC_SIZE];
bool bReadOK = false;
CString str;
//Change the address's data style from CString to char*
SendAddr = strAddr.GetBuffer(strAddr.GetLength());
strcpy(SendAddr,strAddr);
strAddr.ReleaseBuffer();
memset(RecBuf,0,MAX_REC_SIZE);
//open the VISA instrument
status = viOpenDefaultRM(&defaultRM);
if (status < VI_SUCCESS)
{
// Error Initializing VISA...exiting
AfxMessageBox("No VISA instrument was opened !");
return false;
}
//open the instrument
status = viOpen(defaultRM, SendAddr, VI_NULL, VI_NULL, &instr);
//read from the instrument
status = viRead(instr, RecBuf, MAX_REC_SIZE, &retCount);
//close the instrument
status = viClose(instr);
status = viClose(defaultRM);
(*pstrResult).Format("%s",RecBuf);
return bReadOK;
}

Table of Contents

Other manuals for Rigol DP800 Series

Question and Answer IconNeed help?

Do you have a question about the Rigol DP800 Series and is the answer not in the manual?

Rigol DP800 Series Specifications

General IconGeneral
Voltage Resolution1 mV
Current Resolution1 mA
Overvoltage Protection (OVP)Yes
Overcurrent Protection (OCP)Yes
Operating Temperature0°C to 40°C
Load Regulation (CV)±(0.01% + 2mV)
Load Regulation (CC)±(0.02% + 2mA)
Line Regulation (CV)±(0.01% + 2mV)
DisplayLCD
InterfaceUSB
ProtectionsOVP, OCP
Remote ControlYes
Storage Temperature-20°C to 60°C
Number of Channels3 (DP831A, DP832, DP832A), 2 (DP821, DP821A)
Output Voltage Range0-30V (CH1), 0-30V (CH2), 0-5V (CH3 for DP831A/DP832/DP832A), 0-30V (CH1), 0-5V (CH2) (DP821/DP821A)
Output Current Range0-3A (CH1), 0-3A (CH2), 0-3A (CH3 for DP831A/DP832/DP832A), 0-3A (CH1), 0-3A (CH2) (DP821/DP821A)
Total Power195W (DP831A, DP832, DP832A), 160W (DP821, DP821A)
Output Power90W (CH1), 90W (CH2), 15W (CH3 for DP831A/DP832/DP832A), 90W (CH1), 70W (CH2) (DP821/DP821A)
Current Accuracy±(0.1% + 2mA)

Related product manuals