EasyManuals Logo

Rigol DP832 Programming Guide

Rigol DP832
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 #122 background imageLoading...
Page #122 background image
RIGOL Chapter 4 Programming Demos
4-18 DP800 Programming Guide
7 Add the control message response code.
1) Connect the instrument
void CDP800_DEMO_VCDlg::OnConnect()
{
// TODO: Add your control notification handler code here
ViStatus status;
ViSession defaultRM;
ViString expr = "?*";
ViPFindList findList = new unsigned long;
ViPUInt32 retcnt = new unsigned long;
ViChar instrDesc[1000];
CString strSrc = "";
CString strInstr = "";
unsigned long i = 0;
bool bFindDP = false;
status = viOpenDefaultRM(&defaultRM);
if (status < VI_SUCCESS)
{
// Error Initializing VISA...exiting
MessageBox("No VISA instrument was opened ! ");
return ;
}
memset(instrDesc,0,1000);
// Find resource
status = viFindRsrc(defaultRM,expr,findList, retcnt, instrDesc);
for (i = 0;i < (*retcnt);i++)
{
// Get instrument name
strSrc.Format("%s",instrDesc);
InstrWrite(strSrc,"*IDN?");
::Sleep(200);
InstrRead(strSrc,&strInstr);
// If the instrument(resource) belongs to the DP series then jump out from the loop
strInstr.MakeUpper();
if (strInstr.Find("DP") >= 0)
{
bFindDP = true;
m_strInstrAddr = strSrc;
break;
}
//Find next instrument
status = viFindNext(*findList,instrDesc);
}
if (bFindDP == false)
{
MessageBox("Didn't find any DP!");
}
UpdateData(false);
}

Table of Contents

Other manuals for Rigol DP832

Questions and Answers:

Question and Answer IconNeed help?

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

Rigol DP832 Specifications

General IconGeneral
Number of Outputs3
Output Voltage Range CH1/CH20-30V
Output Voltage Range CH30-5V
Output Current Range CH1/CH20-3A
Output Current Range CH30-3A
Total Power195 W
Power per Channel CH1/CH290 W
Power per Channel CH315 W
Voltage Resolution1 mV
Current Resolution1 mA
InterfacesUSB, RS232
Display3.5 inch TFT LCD

Related product manuals