Top Ten SCPI Programming Tips for Signal Generators - Rohde ...
Top Ten SCPI Programming Tips for Signal Generators - Rohde ...
Top Ten SCPI Programming Tips for Signal Generators - Rohde ...
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
Example Script<br />
8 Example Script<br />
In the following we provide a simple example script. This basic script is written in<br />
MATLAB code and uses functions of the R&S MATLAB Toolkit (application note<br />
1GP60, [7]).<br />
Function rs_send_command sends a <strong>SCPI</strong> command to the instrument.<br />
Function rs_send_query sends a <strong>SCPI</strong> query to the instrument.<br />
The example script demonstrates the recommended program structure. Focus on the<br />
comments (in gray) and the actual <strong>SCPI</strong> commands (in blue).<br />
Script<br />
% use VISA interface from National Instruments to connect via<br />
TCP/IP<br />
[status, InstrObject] = rs_connect ('visa', 'ni',<br />
'TCPIP::smbv100a100018::INSTR');<br />
if (status