34 const std::vector<unsigned int> channels = this->channels();
35 auto i = std::find(channels.begin(), channels.end(), index);
36 return i != channels.end();
42 write(
":CONF:CHAN%1% 1", index);
43 return channel(index);
56 const std::string response = query(
":CONF:CHAN:CAT?");
58 const std::vector<IndexName> index_names = IndexName::parse(csvList);
59 return IndexName::indexesFrom(index_names);
65 const std::string name_str(name);
66 return isTrace(name_str);
72 const std::vector<std::string> traces = this->traces();
73 auto i = std::find(traces.begin(), traces.end(), name);
74 return i != traces.end();
80 const std::string name_str(name);
81 return createTrace(name_str, channel);
87 write(
":CALC%1%:PAR:SDEF \'%2%\',\'S21\'", channel, name);
94 const std::string name_str(name);
95 return trace(name_str);
101 return Trace(
this, name);
108 const std::string response = query(
":CONF:TRAC:CAT?");
110 const std::vector<IndexName> index_names = IndexName::parse(csvList);
111 return IndexName::namesFrom(index_names);
Object-oriented measurement channel control.
Object-oriented display control.
Object-oriented trace control.
Trace trace(const char *name)
Object-oriented control of a trace.
bool isChannel(unsigned int index)
Checks for existence of channel index
Channel createChannel(unsigned int index)
Create new channel with specified index.
std::vector< unsigned int > channels()
Query existing channels, by indexes.
bool isTrace(const char *name)
Checks for existence of a trace by name.
DataFormat dataFormat()
Object-oriented control of the data transfer format.
std::vector< std::string > traces()
Query existing traces by name.
Display display()
Object-oriented control of the display.
Channel channel(unsigned int index)
Object-oriented control of a measurement channel.
Trace createTrace(const char *name, unsigned int channel=1)
Creates a new trace.
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::instruments::vna::Vna definition