Chapter 3 Programming Examples
RIGOL
Programming Guide for DSA1000A series
3-27
bool
InstrRead(string strAddr, string & pstrResult);
bool
InstrWrite(string strAddr, string strContent);
bool
ConnectInstr();
string m_strInstrAddr;
string m_strResult;
string m_strCommand;
};
void
makeupper(string & instr);
#endif
2.
Edit the
DemoForDSA.cpp
file to realize various operations of the instrument.
#include
"visa.h"
#include
"DemoForDSA.h"
DemoForDSA::DemoForDSA()
{
m_strInstrAddr =
""
;
m_strResult =
""
;
m_strCommand =
""
;
}
bool
DemoForDSA::ConnectInstr()
{
ViUInt32 retCount;
ViStatus status;
ViSession defaultRM;
ViString expr =
"?*"
;
ViPFindList findList =
new
unsigned
long
;
ViPUInt32 retcnt =
new
unsigned
long
;
string strSrc =
""
;
Содержание DSA1000A Series
Страница 1: ...RIGOL Programming Guide DSA1000A Series Spectrum Analyzer May 2011 RIGOL Technologies Inc...
Страница 2: ......
Страница 14: ......
Страница 137: ...Chapter 3 Programming Examples RIGOL Programming Guide for DSA1000A series 3 3...
Страница 154: ...RIGOL Chapter 3 Programming Examples Programming Guide for DSA1000A series 3 20 6 Exit code...
Страница 155: ...Chapter 3 Programming Examples RIGOL Programming Guide for DSA1000A series 3 21 7 Execute results...
Страница 158: ...RIGOL Chapter 3 Programming Examples Programming Guide for DSA1000A series 3 24...