8. Speed Optimization

By Speed Optimization in relation to remote-control application, we mean performing a measurement task as fast as possible, but still with reliable and repeatable results.

VISA Trace Tools mentioned in Chapter 3 - VISA and VISA Tools can help you to point to operations taking big amounts of time. Their logs contain timestamps which you can use to calculate measurement task durations.

When starting with speed optimization, always consider your application overhead in relation to the measurement duration. If, for example, an oscilloscope acquisition time is 2ms, reducing your overall overhead from 5ms to 3ms results to approximately 30% speed increase. However, if the acquisition time is 2 seconds, the same overhead reduction leads to only a 0.1% speed increase.

Hints on how to improve the speed of your measurement task:

  • Never sacrifice proper measurement synchronization for speed. At the end it costs you more time to debug problems and repeat measurements, than do it properly the first time.
  • If you have more than one measurement instruments in your test setup, try to parallelize tasks. For example, you can set up signal generator and oscilloscope in parallel and only synchronize them before an acquisition.
  • Do not perform instrument error checking in loops with many repetitions and short acquisition times (less than 10ms). If you use the instrument drivers, switch the error checking off before the loop and switch it back ON after the loop.
  • Switch the instrument’s display OFF after you have debugged your application. This usually improves the instrument's performance.
  • Try to avoid reading entire traces or waveforms. Rohde & Schwarz instruments offer many trace / waveform evaluation possibilities. You do not need every point of an oscilloscope waveform to evaluate frequency, amplitude or pulse rise time. The instrument provides ready-to-use measurements for such parameters.
  • Use the instrument's averaging or maxhold functions for traces and waveforms instead of performing these operations in your application. This saves data transfer time and the measurement triggering overhead.
  • Use limit lines and mask functions for the cases when you only need to evaluate simple pass/fail criteria. Transferring the entire trace and evaluating it in your application is unnecessary.
  • Rohde & Schwarz instruments are capable of parallel command processing. Always set the parameter that takes the maximum time first. If for example, you set the spectrum analyzer manual attenuator first, then the center frequency and then resolution bandwidth, it is faster than setting them in the reversed order.
  • Combine several SCPI commands (separated by semicolons) into one string to send to the instrument; It is faster than sending them separately. In addition, it lets the instrument decide the most optimal order of executing the commands. An example of already mentioned three parameters of a spectrum analyzer – mechanical attenuator, center frequency, resolution bandwidth settings: INP:ATT 50;:FREQ:CENT 2GHz;:BWIDth 5MHz

Request information

Do you have questions or need additional information? Simply fill out this form and we will get right back to you.

I want to receive information from Rohde & Schwarz via

Marketing permission

What does this mean in detail?

I agree that Rohde & Schwarz GmbH & Co. KG and the Rohde & Schwarz entity or subsidiary company mentioned in the imprint of this website, may contact me via the chosen channel (email or postal mail) for marketing and advertising purposes (e.g. information on special offers and discount promotions) related to, but not limited to, products and solutions in the fields of test and measurement, secure communications, monitoring and network testing, broadcast and media, and cybersecurity.

Your rights

This declaration of consent may be withdrawn at any time by sending an email with the subject "Unsubscribe" to news@rohde-schwarz.com. Additionally, a link to unsubscribe from future email advertisements is contained in each email sent. Further details on the use of personal data and the withdrawal procedure are set out in the Statement of Privacy.

Your request has been sent successfully. We will contact you shortly.
An error is occurred, please try it again later.