29 return toBool(updateSetting());
35 setUpdateSetting(on?
"1" :
"0");
41 setUpdateSetting(off?
"0" :
"1");
47 return updateSetting() ==
"ONCE";
53 setUpdateSetting(
"ONCE");
59 setUpdateSetting(
"ONCE");
77 std::string Display::updateSetting()
83 void Display::setUpdateSetting(
const char* value)
85 const std::string value_str(value);
86 setUpdateSetting(value_str);
90 void Display::setUpdateSetting(
const std::string& value)
92 _vna->
write(
":SYST:DISP:UPD %1%", value);
std::string query(std::string scpi_command, Args &&... args)
bool write(std::string scpi_command, Args &&... args)
bool isManualUpdate()
queries manual display update value
Display(Vna *vna)
Constructor.
void local()
set instrument to local mode
void setManualUpdate(bool manual=true)
sets manual display update
void setOn(bool on=true)
sets display on value
bool isOn()
queries whether display is on
void setOff(bool off=true)
sets display off value
void remote()
set instrument to remote mode
void update()
manually updates the display
Object-oriented R&S ZNX-series VNA control.
rohdeschwarz::instruments::vna::Display definition
rohdeschwarz helper function definition
bool toBool(std::string scpi)
Converts SCPI bool to C/C++ bool.
std::string rightTrim(std::string text)
Trims whitespace from right (end) of string.
rohdeschwarz::instruments::vna::Vna definition