41 _vna->
write(
":CALC%1%:PAR:SEL \'%2%\'",
channel(), _name);
47 const auto response = _vna->
query(
":CALC%1%:PAR:MEAS? \'%2%\'",
channel(), _name);
54 const std::string parameter_str(
parameter);
68 const auto response = _vna->
query(
":CALC%1%:FORM?",
channel());
75 const std::string format_str(
format);
89 return std::stoi(_vna->
query(
":CONF:TRAC:CHAN:NAME:ID? \'%1%\'", _name));
94 auto response = _vna->
query(
":CONF:TRAC:WIND? \'%1%\'", _name);
101 _vna->
write(
":DISP:WIND%1%:TRAC:EFE \'%2%\'",
diagram, _name);
114 if (!_vna->
write(
"CALC:DATA:TRAC? \'%1%\',FDAT",
name()))
117 return std::vector<double>();
134 if (!_vna->
write(
":CALC:DATA:TRAC? \'%1%\',SDAT",
name()))
137 return std::vector<std::complex<double>>();
std::vector< std::complex< double > > read64BitComplexVector()
Reads block data and parses it into vector <complex <double>>
std::string query(std::string scpi_command, Args &&... args)
bool write(std::string scpi_command, Args &&... args)
std::vector< double > read64BitVector()
Reads block data and parses it into vector <double>
unsigned int diagram()
Queries the index of the diagram for this trace.
void setParameter(const char *parameter)
Sets the measurement parameter for this trace.
void select()
Make trace the active trace.
std::string format()
Queries the trace format.
void setFormat(const char *format)
Sets the trace format.
std::string name() const
Trace name.
Trace(Vna *vna, const char *name)
Constructor.
void setDiagram(unsigned int diagram)
Adds trace to diagram.
unsigned int channel()
Queries the index of the measurement channel for this trace.
std::vector< double > y()
Returns formatted Y values from the last measurement of this trace.
std::string parameter()
Gets the measurement parameter for this trace.
std::vector< std::complex< double > > y_complex()
Returns unformatted Y values from the last measurement of this trace.
Object-oriented R&S ZNX-series VNA control.
DataFormat dataFormat()
Object-oriented control of the data transfer format.
rohdeschwarz helper function definition
std::string unquote(const char *text)
Removes quotes from beginning and end of string.
std::string rightTrim(std::string text)
Trims whitespace from right (end) of string.
rohdeschwarz::to_vector(), rohdeschwarz::to_vector_complex_double() definitions and implementations
rohdeschwarz::instruments::vna::Trace definition
rohdeschwarz::instruments::vna::Vna definition