element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet & Tria Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • About Us
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      • Japan
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Vietnam
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Personal Blogs
  • Community Hub
  • More
Personal Blogs
Gough Lui's Blog R&S RTM3004 RoadTest in Depth – Chapter 7: Arbitrary Waveform, Function and Pattern Generator
  • Blog
  • Documents
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
  • Share
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: Gough Lui
  • Date Created: 22 Jul 2018 1:31 PM Date Created
  • Views 1978 views
  • Likes 6 likes
  • Comments 4 comments
  • RoadTest
  • rtm3004
  • mixed signal oscilloscope
  • rtm3k-com4
  • rtm3000
  • oscilloscope
  • rohde and schwarz
  • rohde&schwarz
Related
Recommended

R&S RTM3004 RoadTest in Depth – Chapter 7: Arbitrary Waveform, Function and Pattern Generator

Gough Lui
Gough Lui
22 Jul 2018

The RTM3004 can be more than just an oscilloscope. With the addition of the RTM-B6 Waveform Generator and 4-bit Pattern Generator option, it’s possible to generate regular functions, modulated functions, bit patterns and arbitrary waveforms for testing devices from the oscilloscope itself.

 

Pattern Generator

The RTM3004’s 4-bit pattern generator is output from four lugs on the front panel. This is not the most convenient form of connectivity if you’re looking to drive an external circuit, but at least it can be used easily for demonstration purposes. The pattern generator can generate a range of patterns including Square Wave, Counter, Arbitrary (sequence), Manual (fixed value), UART, SPI, I2C, CAN, LIN, Audio – I2S and Audio – TDM. Only one pattern can be generated at any time, with some patterns only making use of a few of the outputs. The output voltage ranges from 1.5V to 3.3V, with serial output bitrates from 9600bps to 1Mbit/s. For the included serial modes, the serial data is fixed as random.

image

The arbitrary setting provides the possibility from defining a pattern up to 8192 points long across all four outputs, allowing for simulation of other signals. Each of the points are replayed at a constant rate with an idle time of 50ns to 1s, or 1Hz to 20Mhz.

image

The most basic demo is just that of the counter, which uses all four outputs. The signals look a little wavy on screen, probably due to using the “long” ground clip leads. However, I’d have to say that as a basic pattern generator, it seems perfectly serviceable.

image

 

Function Generator

A separate BNC connection on the front panel provides the output from the inbuilt generator which can perform function generator tasks. This includes producing modulated functions with AM, FM, ASK and FSK modulations with variable modulation depth/shift frequency and a fixed modulation input frequency. The generator is switchable between High-Z and 50-ohm modes, with voltages of either 20mV to 10V peak-to-peak for High-Z and 10mV to 5V peak-to-peak for 50 ohm. Output resolution is claimed to be 14-bit at 250Msample/s

 

Inbuilt functions include Sine (0.1-25Mhz), Pulse, Rectangle (0.1-10Mhz), Ramp, Triangle, Sinc and Exponential (0.1 to 1Mhz). Noise can be added up to 100% of signal amplitude, with a bandwidth up to 25Mhz.

imageimage

imageimage

imageimage

A sweep mode is also available with a sweep time of 1ms to 10s and sweep type of linear or logarithmic. Modulation of AM, FM, ASK and FSK are available with a frequency between 0.1Hz to 1Mhz.

 

Experiment: Opamp Gain Transfer Function

Seeing as I have access to an oscilloscope and a signal generator, I decided I would use it to perform a “classic” analog electronics lab experiment, namely that of measuring opamp transfer function. To make things simple, I decided to use the FFT mode display, swept input at a rate of 10s and maximum hold plotting so that I could “build” the graph over time as the frequency was swept.

 

Because I was using rail-to-rail opamps with a single-ended 0-5V USB supply, I decided to set the generator offset to 2.5V to ensure no saturation would take place. The opamps were configured as voltage followers (unity gain) for simplicity and predictability. The particular opamps used were the Microchip MCP6273 with a 2Mhz gain bandwidth product (GBP) and a Texas Instruments TL974 with a 12Mhz GBP.

 

I started with a 1V peak-to-peak input into the MCP6273 and noticed that the FFT result can be plotted in different modes. I tried Veff which plots in against linear voltage. Below the 381khz grid line, it shows the opamp to be fairly flat around 360mV. As this will be the RMS amplitude, this is the expected result which is good (1V peak to peak = 0.5V amplitude * 0.707 = 353mV). But wait a sec … the gain starts falling off at 381khz?

image

The FFT output can be plotted as a more conventional dBm (power) scale which helps to compare values which range over a large scale. I know this is probably not the best scale to use but it works and it shows that the 3dB drop-off sits about 648.5khz. That’s still not quite what I was expecting.

image

I changed the generator output to 100mV and things looked much better. The 3dB point was now almost 3Mhz (better than expected).

image

Doing the same with the TL974, I noticed that the gain bandwidth was wider as expected, this time using the dBV scale (the other scale available). But at 1V peak-to-peak, the drop-off occurred around 1.91Mhz.

image

Changing to 100mV pushed the 3dB point to about 8.5Mhz and 6dB to about 14.5Mhz which is much more in line with expectations.

image

But why? Remember that an op-amp can be slew-rate limited. As a result, it just can’t keep up with the rate of the incoming signal, producing a “triangle” wave output of much lower amplitude.

image

Having the function generator and oscilloscope in one really makes it easier to set up these experiments, easier to manipulate the parameters without co-ordinating different pieces of equipment and better in case you are working remotely. There are some limitations in the ability of the hardware, but it is good enough for many basic experiments and of great utility especially in educational contexts.

 

Note that during these experiments, a bug was found in the X and Y cursor behaviour on FFT traces which results in the L2 and ΔL values not being updated as the cursors were being moved. A workaround consisting of toggling the cursor data source results in the values being correctly recalculated. This issue has been reported to Rohde & Schwarz for future rectification.

 

Experiment: A Radio Station

It occurred to me, with the modulation available, it is possible to use the RTM3004 to generate signals that could be received on a radio receiver. To do this, I chose an empty portion of the AM band (due to maximum frequency limitations on the generator) at 911khz. The only exception was for FM, due to spectral width, I chose to use the ISM band also used for NFC cards at 13.56Mhz to ensure no interference with licensed services. The signal was received using my Winradio G31DDC software-defined radio. The generator output was attached to a piece of loose wire.

imageimage

imageimage

Signals were successfully broadcast and received in AM with 1khz tone, ASK with 440Hz modulation, FM with 1khz tone and 5khz deviation, and FSK at 2Hz with a 500Hz shift frequency. This is illustrated in the waterfall diagrams above.

Unfortunately, as the modulation is not flexible enough to accept an input for modulating the generated function, it is only possible to transmit tones.

 

Arbitrary Waveform Generator

The arbitrary waveform generator uses the same BNC output and can generate signals at a rate of 10Msamples/sec with a memory depth of 32,000 points. While this isn’t class-leading compared to standalone dedicated instruments, it is still enough to be quite useful and the integration with the RTM3004 is of value.

 

Experiment: Arbitrary Waveform Graphics

This led me to some shower-time thinking – just how arbitrary can a waveform get and how can I demonstrate its capabilities? I was convinced there was a way to draw an image with it and before long, I was able to do exactly that. If you’re interested in knowing how it was done, look at the Appendix post where I discuss that.

 

But what would be a good image to draw? I know, how about an image that expresses my gratitude?

image

That was the arbitrary waveform generator looped back into C2 (because I like green). Don’t believe me?

image

Seeing as I’ve gone so far, I thought I’d let the oscilloscope advertise itself.

image

If you’d like to try this for yourself, the CSV files that generate the images are also attached to this post – import them as a reference waveform, select it as the source for the arbitrary waveform generator, loop the input back, turn on dot-mode display (as opposed to lines), get the trigger set up just right and see for yourself.

 

As demonstrated, the arbitrary waveform generator is quite useful for generating any sort of analog signal within its capabilities for test purposes. While its memory depth and signal frequency doesn’t match some stand-alone units, there is a convenience of integration for all-in-one automated testing and not consuming additional bench-space.

 

Conclusion

The option provides a basic 4-bit pattern generator with a number of inbuilt random-data serial protocol options, counter and arbitrary pattern capability up to 8192 points with a rate up to 20Mhz and output voltage between 1.5V to 3.3V. While this can be useful for demonstration purposes, its output being connected to four lugs on the front panel makes it inconvenient for other uses.

 

The function generator is capable of generating Sine (0.1-25Mhz), Pulse, Rectangle (0.1-10Mhz), Ramp, Triangle, Sinc and Exponential (0.1 to 1Mhz). with noise (0-100%) and AM/FM/ASK/FSK modulation ability with variable modulation depth/shift frequency and a fixed modulation input frequency.

 

The arbitrary waveform generator is capable of providing up to 10Msample/s rates for up to 32,000 memory points and output voltages either 20mV to 10V peak-to-peak for High-Z and 10mV to 5V peak-to-peak for 50 ohm.

 

In all cases, the parameters for these features are not class-leading when compared to dedicated standalone instruments. However, despite this, the option does provide enough performance for many tasks. Its main advantage is the fact it is already integrated into the RTM3004, making it easier to set-up and control remotely, while taking no extra bench space or power points. If the specifications meet your needs, the RTM-B6 Waveform Generator and 4-bit Pattern Generator option could be well worth having.

Attachments:
thxe14rs.csv.zip
rtm3kdem.csv.zip
  • Sign in to reply

Top Comments

  • jw0752
    jw0752 over 7 years ago +2
    Very Impressive! John
  • rachaelp
    rachaelp over 7 years ago +2
    Oh wow, I don't think I have seen "Scope Art" like that before! Awesome Best Regards, Rachael
  • Gough Lui
    Gough Lui over 7 years ago +1
    Thanks for the kind words. I'm sure others have thought of and/or done this kind of thing before. But I did want to do it myself because I do like thinking about how to do things, actually coding up something…
  • Kosta123
    Kosta123 over 3 years ago

    What kind of interface/connectors were used to make use of the pattern generator signas and have them input into an external board/device? 

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • Gough Lui
    Gough Lui over 7 years ago

    Thanks for the kind words.

     

    I'm sure others have thought of and/or done this kind of thing before. But I did want to do it myself because I do like thinking about how to do things, actually coding up something simple and giving it a go, because at least that way, I can show something more unique than just a straightforward review. It would have been nice if there was more memory on the AWG, as that would provide for better resolution.

     

    If I had two "locked" AWGs, I could probably make X-Y vector-style scope-art as well. When it comes to this, I have heard of people using L/R channel of sound card outputs to do this, but with limited bandwidth and accuracy - someone even played Quake this way.

     

    I'm sure you're probably already aware, but I do mention a little more about this and provide some basic C-code I wrote that produced the voltage values that went into the .csv file in the Appendix. For those who don't need all the details, the Rohde & Schwarz Oscilloscope Kit RTM3K-COM4 - Review has been uploaded via the form.

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • rachaelp
    rachaelp over 7 years ago

    Oh wow, I don't think I have seen "Scope Art" like that before! Awesome image

     

    Best Regards,

     

    Rachael

    • Cancel
    • Vote Up +2 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • jw0752
    jw0752 over 7 years ago

    Very Impressive!

    John

    • Cancel
    • Vote Up +2 Vote Down
    • Sign in to reply
    • More
    • Cancel
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube