Chapter 3 Programming Examples
RIGOL
Programming Guide for DSA1000A series
3-29
//Get the next device
status = viFindNext(*findList,instrDesc);
}
if
(bFindDSA ==
false
)
{
printf(
"DSA device not found!\n"
);
return
false
;
}
return
true
;
}
bool
DemoForDSA::InstrWrite(string strAddr, string strContent)
//Write
operation
{
ViSession defaultRM,instr;
ViStatus status;
ViUInt32 retCount;
char
* SendBuf = NULL;
char
* SendAddr = NULL;
bool
bWriteOK =
false
;
string str;
//Address conversion, convert strig address to char* address
SendAddr =
const_cast
<
char
*>(strAddr.c_str());
//Address conversion, convert strig address to char* address
SendBuf =
const_cast
<
char
*>(strContent.c_str());
//Open the specific device
status = viOpenDefaultRM(&defaultRM);
if
(status < VI_SUCCESS)
{
cout<<
"No VISA equipment!"
<<endl;
return
false
;
}
Summary of Contents for DSA1000A Series
Page 1: ...RIGOL Programming Guide DSA1000A Series Spectrum Analyzer May 2011 RIGOL Technologies Inc...
Page 2: ......
Page 14: ......
Page 137: ...Chapter 3 Programming Examples RIGOL Programming Guide for DSA1000A series 3 3...
Page 154: ...RIGOL Chapter 3 Programming Examples Programming Guide for DSA1000A series 3 20 6 Exit code...
Page 158: ...RIGOL Chapter 3 Programming Examples Programming Guide for DSA1000A series 3 24...