5. Instruments Drivers vs. Direct SCPI Commands


In the previous chapters, we learned how to remote control Rohde & Schwarz instruments using direct SCPI commands. As an alternative, Rohde & Schwarz offers free instrument drivers that provide an abstraction layer between your application and the instrument’s SCPI commands.

Instead of using VISA Write / Read functions and direct SCPI commands, you use functions and attributes of an instrument driver. A simple example of such substitution in the LabVIEW rsscope Instrument driver:

The same substitution in C# using the IVI.NET RsScope instrument driver. You set the individual parameters with properties, or set more of them with a method:

For simplicity, the above direct SCPI command pictures do not contain all the operations that the instrument drivers perform. For example, the drivers also wait for the instrument acknowledgment that a command has been executed (see Chapter 6 Measurement Synchronization), and check for potential errors after each command (see Chapter 7 Instrument Error Checking). When you use direct SCPI commands, you have to take care of both of these tasks yourself.

Summarized advantages/disadvantages of using direct SCPI commands


  • Quicker start; Instrument user manual has all the SCPI commands described.
  • Faster execution speed.


  • You need to take care of the measurement synchronization and the instrument error checking.
  • You must format arguments into the SCPI commands. This is especially tricky with binary data.
  • When you receive an instrument string response, you need to convert it into an appropriate type (e.g. integer, double or boolean, arrays or binary data).

Summarized advantages/disadvantages of using the instrument drivers


  • Performing error checking after each command. You can switch this off for the critical sections where you require the maximum speed.
  • Synchronization of commands that take long time to complete.
  • Formatting of arguments into the SCPI commands and parsing the instrument responses is already implemented.
  • Instrument drivers come with their own *.chm help files.
  • They always offer the option to write or read direct SCPI commands.


  • Longer learning curve, you have to get familiar with the driver structure.
  • A minor overhead. This can be minimized by the correct approach; see Chapter 8 Speed Optimization
  • Sometimes you have to wait until a new instrument option is supported by instrument drivers.

Suitability of Rohde & Schwarz Instrument drivers for different programming languages

The following table shows, which instrument driver is suitable for which programming language. The specifics of the different environments we discuss afterwards.

VXI plug&play drivers LabWindows/CVI drivers LabVIEW drivers IVI.NET drivers
Python X (bulky)
C#, VB.NET X (if IVI.NET is not available) X
LabWindows/CVI X

For Python users in R&S Forum or Pycharm

Rohde & Schwarz does not provide native Python instrument drivers. The only way to use instrument drivers in Python is with its ctypes library and the VXI plug&play instrument drivers. For Python we recommend using the direct SCPI commands.

Find out more in the dedicated application note:

1MA196: Using R&S®Forum Application for Instrument Remote Control

For MATLAB users

Rohde & Schwarz provides MATLAB MDD drivers. Using MDD drivers requires advanced knowledge of VXI plug&play driver structure, you must manually import all enumeration constants from the driver header file. In addition, MATLAB Instrument Control Toolbox license is required. For MATLAB users we recommend using direct SCPI commands. This application note covers both approaches:

1MA171: How to use Rohde & Schwarz Instruments in MATLAB

For LabVIEW users

Rohde & Schwarz provides native LabVIEW drivers. Find out more in the application note:

1MA228: 10 Tips & Tricks on how to use Rohde & Schwarz LabVIEW Instrument drivers

For C#, VB.NET users

IVI.NET drivers are the clear choice. However, since the IVI.NET drivers are not yet available for all the Rohde & Schwarz instruments, you can also use the VXI plug&play drivers that come with the C# and VB.NET wrapper classes.

Find out more in the dedicated application note:

1MA268: How to use Rohde & Schwarz IVI.NET Instrument drivers

For LabWindows/CVI and other C/C++ environment users

VXI plug&play drivers are compiled CVI drivers for 32-bit and 64-bit Windows applications. You can use them both in C/C++ languages.

To use a CVI driver, add its entire source code into your project.

To use a VXI plug&play driver, add the driver's LLB file (for static linking) or its DLLs file (for dynamic linking) into your project.

정보 요청

질문이 있거나 추가 정보가 필요하십니까? 이 양식에 맞춰 내용을 입력해 주시면 회신 드리겠습니다.

마케팅 동의

로데슈바르즈에서 다음과 같은 방법으로 정보를 수신하겠습니다

이것이 의미하는 바는 무엇입니까?

Rohde & Schwarz GmbH & Co. KG 및 본 웹사이트에서 명기하는 Rohde & Schwarz 법인 혹은 지사에서
테스트 및 계측, 보안 통신, 모니터링 및 네트워크 테스트, 방송 및 미디어, 사이버 보안 분야의 제품, 솔루션과 관련된 마케팅 및 광고 목적(예: 특별 행사 및 할인 프로모션에 대한 정보)을 위해 선택한 채널(이메일 또는 우편)을 통해 연락하는 데 동의합니다.

이용자의 권리

이 동의 선언은 news@rohde-schwarz.com에 "Unsubscribe"라는 제목으로 이메일을 보내 언제든지 취소할 수 있습니다. 또한 전송되는 각 이메일에 향후 이메일 광고에 대한 구독 취소 링크가 포함되어 있습니다. 개인 데이터 사용 및 해지 절차에 대한 자세한 내용은 "개인정보 보호정책"에 명시되어 있습니다.

신청하신 내용이 제출되었습니다. 빠른 시일 내 회신 받으실 것입니다.
An error is occurred, please try it again later.