Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revision | |||
| test-and-measurement:guides:waveforms-waveform-generator [2022/09/12 18:36] – changed forum.digilentinc.com to forum.digilent.com jeff.greenberg_ni.com | test-and-measurement:guides:waveforms-waveform-generator [2022/10/04 11:38] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ====== Using the Waveform Generator ====== | ||
| + | ~~TechArticle~~ | ||
| + | |||
| + | {{reference: | ||
| + | |||
| + | ===== Introduction ===== | ||
| + | Waveform Generators are used to apply specified analog signals to circuits, anything from DC signals, sine waves of varying frequencies, | ||
| + | ---- | ||
| + | ===== Prerequisites ===== | ||
| + | * A Digilent Test & Measurement Device with Analog Input and Output Channels: | ||
| + | * [[test-and-measurement: | ||
| + | * [[test-and-measurement: | ||
| + | * [[test-and-measurement: | ||
| + | * [[test-and-measurement: | ||
| + | * [[test-and-measurement: | ||
| + | * A Computer with [[software: | ||
| + | |||
| + | ---- | ||
| + | ===== Guide ===== | ||
| + | ==== 1. Opening the WaveGen ==== | ||
| + | |||
| + | <WRAP group> | ||
| + | <WRAP column half> | ||
| + | === 1.1 === | ||
| + | Plug in the Test & Measurement Device, then start WaveForms and make sure the device is connected. | ||
| + | |||
| + | If no device is connected to the host computer when WaveForms launches, the **Device Manager** will be launched. Make sure that the device is plugged in and turned on, at which point it will appear in the Device Manager' | ||
| + | |||
| + | **Note:** //" | ||
| + | |||
| + | **Note:** //The Device Manager can be opened by clicking on the " | ||
| + | </ | ||
| + | <WRAP column half> | ||
| + | {{ reference: | ||
| + | </ | ||
| + | </ | ||
| + | ---- | ||
| + | <WRAP group>< | ||
| + | === 1.2 === | ||
| + | Once the Welcome page loads, in the instrument panel at the left side of the window, click on the **Wavegen** button to open the //Waveform Generator// instrument. | ||
| + | </ | ||
| + | {{ reference: | ||
| + | </ | ||
| + | ---- | ||
| + | <WRAP group> | ||
| + | <WRAP column half> | ||
| + | |||
| + | === 1.3 === | ||
| + | Once the Wavegen instrument opens, the window contains the preview plot (1.) showing what the expected waveform is, the configuration panel (2.) left of the preview, and the control toolbar (3.) above both. | ||
| + | |||
| + | </ | ||
| + | <WRAP column half> | ||
| + | |||
| + | {{learn: | ||
| + | |||
| + | </ | ||
| + | </ | ||
| + | |||
| + | ==== 2. Using the WaveGen ==== | ||
| + | |||
| + | //This section details how to configure and run the Wavegen instrument// | ||
| + | |||
| + | === 2.1 Hardware Setup === | ||
| + | To demonstrate the capabilities of the //Waveform Generator// instrument, the //Scope// instrument is used to visualize the //Waveform Generator//' | ||
| + | ---- | ||
| + | == MTE Cables == | ||
| + | //If your Digilent Test and Measurement device supports MTE cables for analog output, open the dropdown below for instructions on setting up a loopback circuit with them.// | ||
| + | --> MTE Cable Loopback # | ||
| + | <WRAP group> <WRAP column half> | ||
| + | Connect the Test & Measurement device' | ||
| + | </ | ||
| + | {{ : | ||
| + | </ | ||
| + | <-- | ||
| + | ---- | ||
| + | == BNC Cables == | ||
| + | //If your Digilent Test and Measurement device supports BNC cables for analog output, select your device below for instructions on setting up a loopback using them.// | ||
| + | |||
| + | --> Analog Discovery Studio # | ||
| + | <WRAP group> <WRAP column half> | ||
| + | Connect BNC cables to the Test and Measurement device' | ||
| + | |||
| + | **Note:** //While BNC probes are single-ended (as is the Waveform Generator hardware), a connected circuit must still share a common ground with the device. No more than one ground should be connected, in order to avoid the creation of ground loops, which may damage your device.// | ||
| + | |||
| + | **Note:** //When using BNC cables, make sure to take note of the probes' | ||
| + | |||
| + | **Note:** //The Analog Discovery Studio' | ||
| + | |||
| + | **Note:** //The Analog Output signal produced by the Waveform Generator is available on both the BNC and MTE cables at the same time.// | ||
| + | |||
| + | </ | ||
| + | {{: | ||
| + | </ | ||
| + | <-- | ||
| + | |||
| + | --> Analog Discovery 2 with BNC Adapter # | ||
| + | <WRAP group> <WRAP column half> | ||
| + | Connect a set of BNC minigrabbers to the test and measurement device' | ||
| + | |||
| + | **Note:** //While BNC Probes are single-ended (as is the Waveform Generator hardware), a connected circuit must still share a common ground with the device. No more than one ground should be connected, in order to avoid the creation of ground loops, which may damage your device.// | ||
| + | |||
| + | **Note:** //When using BNC Cables, make sure to take note of their bandwidth. When these cables are used, the achievable bandwidth is limited by both the probes and by the device. For example, using 1 MHz probes will limit the bandwidth to 1 MHz, even if that is below the Test and Measurement device' | ||
| + | </ | ||
| + | {{: | ||
| + | </ | ||
| + | |||
| + | <WRAP group> <WRAP column half> | ||
| + | Take note of the jumpers that select between 0 or 50 Ohm output impedance on the BNC adapter. Either setting will work for the loopback circuit used here, however, some applications may find one or the other more useful. | ||
| + | </ | ||
| + | {{: | ||
| + | </ | ||
| + | <-- | ||
| + | |||
| + | --> Analog Discovery Pro (ADP3450/ | ||
| + | <WRAP group> <WRAP column half> | ||
| + | Connect a BNC oscilloscope probe to the Analog Discovery Pro's Oscilloscope Channel 1 connector and a set of BNC minigrabbers to its Wavegen Out Channel 1 connector. Connect these together, as pictured, to form a loopback circuit. Check the input probe' | ||
| + | |||
| + | **Note:** //While BNC Probes are single-ended (as is the Waveform Generator hardware), a connected circuit must still share a common ground with the device. No more than one ground should be connected, in order to avoid the creation of ground loops, which may damage your device.// | ||
| + | </ | ||
| + | {{reference: | ||
| + | </ | ||
| + | <-- | ||
| + | |||
| + | --> Analog Discovery Pro (ADP5250) # | ||
| + | <WRAP group> <WRAP column half> | ||
| + | Connect a BNC oscilloscope probe to the Analog Discovery Pro's Oscilloscope Channel 1 connector and the minigrabbers to the AWG Channel 1 | ||
| + | connector on the front of the ADP5250 to create a loopback circuit. | ||
| + | |||
| + | **Note:** //While BNC Probes are single-ended (as is the Waveform Generator hardware), a connected circuit must still share a common ground with the device. No more than one ground should be connected, in order to avoid the creation of ground loops, which may damage your device.// | ||
| + | |||
| + | **Note:** //When using BNC Probes, make sure to take note of the probes' | ||
| + | </ | ||
| + | {{: | ||
| + | </ | ||
| + | <-- | ||
| + | ---- | ||
| + | <WRAP group> | ||
| + | <WRAP column half> | ||
| + | |||
| + | === 2.2 Set Up the Oscilloscope === | ||
| + | |||
| + | With the loopback circuit set up, return to WaveForm' | ||
| + | |||
| + | Next, the //Wavegen// and //Scope// instruments will be docked so that any changes to //Wavegen// settings can immediately be viewed in the //Scope//. | ||
| + | |||
| + | </ | ||
| + | {{ reference: | ||
| + | </ | ||
| + | |||
| + | <WRAP group> | ||
| + | <WRAP column half> | ||
| + | |||
| + | In order to show both the //Wavegen// and the //Scope// instruments on the screen at once, click on the Docking Windows button ({{learn: | ||
| + | |||
| + | **Note:** //To return to the default tabbed view later, click on the " | ||
| + | |||
| + | </ | ||
| + | <WRAP column half> | ||
| + | |||
| + | {{ : | ||
| + | |||
| + | </ | ||
| + | </ | ||
| + | |||
| + | ---- | ||
| + | //If using a BNC cable for Analog Input, click the dropdown below. No additional software settings are required to use BNC cables for Analog Output.// | ||
| + | --> Set the BNC Cable Attenuation Factor # | ||
| + | <WRAP group> <WRAP column half> | ||
| + | Regardless of the device, if BNC cables are used for input, make sure that the attenuation factor setting in WaveForms for Oscilloscope Channel 1 (pictured to the right) matches the setting of the probe. | ||
| + | </ | ||
| + | {{: | ||
| + | </ | ||
| + | <-- | ||
| + | |||
| + | ---- | ||
| + | |||
| + | <WRAP group> | ||
| + | <WRAP column half> | ||
| + | |||
| + | === 2.3 Configure Signal Type === | ||
| + | Begin by changing the signal type. Click the **Type** drop-down and choose //Square//. | ||
| + | |||
| + | </ | ||
| + | <WRAP column half> | ||
| + | |||
| + | {{: | ||
| + | |||
| + | </ | ||
| + | </ | ||
| + | |||
| + | ---- | ||
| + | |||
| + | <WRAP group> | ||
| + | <WRAP column half> | ||
| + | |||
| + | === 2.4 === | ||
| + | The frequency is configured by selecting the value from the **Frequency** drop-down list, or by clicking into the field and manually typing it in (including units and an SI suffix). Set the frequency to 200 Hz. | ||
| + | |||
| + | </ | ||
| + | <WRAP column half> | ||
| + | |||
| + | {{: | ||
| + | |||
| + | </ | ||
| + | </ | ||
| + | |||
| + | ---- | ||
| + | |||
| + | <WRAP group> | ||
| + | <WRAP column half> | ||
| + | |||
| + | === 2.5 === | ||
| + | Configuring the amplitude is similar to changing frequency. Proceed by setting the amplitude to 2 V. | ||
| + | |||
| + | </ | ||
| + | <WRAP column half> | ||
| + | |||
| + | {{: | ||
| + | |||
| + | </ | ||
| + | </ | ||
| + | |||
| + | ---- | ||
| + | |||
| + | <WRAP group> | ||
| + | <WRAP column half> | ||
| + | |||
| + | === 2.6 === | ||
| + | Click the Run button in the control bar near the top of the window to begin output the signal. | ||
| + | |||
| + | </ | ||
| + | <WRAP column half> | ||
| + | |||
| + | {{: | ||
| + | |||
| + | </ | ||
| + | </ | ||
| + | |||
| + | ---- | ||
| + | |||
| + | <WRAP group> | ||
| + | <WRAP column half> | ||
| + | |||
| + | === 2.7 === | ||
| + | |||
| + | Back in the Wavegen instrument, click Stop ({{: | ||
| + | |||
| + | **Note:** //An idle channel will still output some amount of voltage, which is determined by the offset parameter by default. Unchecking enable at any point will stop the signal if it is running, disable the channel and set its output voltage to 0 V.// | ||
| + | |||
| + | </ | ||
| + | <WRAP column half> | ||
| + | |||
| + | {{: | ||
| + | |||
| + | </ | ||
| + | </ | ||
| + | |||
| + | ---- | ||
| + | ==== Note: Analog Discovery Pro (ADP3450/ | ||
| + | {{section> | ||
| + | |||
| + | ==== Note: Analog Discovery Pro (ADP5250) Wavegen Output Filter ==== | ||
| + | |||
| + | //The Analog Discovery Pro (ADP5250) features a switchable filter on the AWG output. Click the dropdown below to learn how to use this feature.// | ||
| + | |||
| + | --> Enable or Disable the ADP5250' | ||
| + | <WRAP group> <WRAP column half> | ||
| + | This filter can be enabled or disabled through the use of the dropdown on the right side of the control toolbar. It can be set to Auto, On, or Off. | ||
| + | </ | ||
| + | {{: | ||
| + | </ | ||
| + | <-- | ||
| + | |||
| + | ---- | ||
| + | ==== Note: Using Multiple Instruments ==== | ||
| + | The //Waveform Generator// instrument can be used with other WaveForms instruments. Using multiple instruments at the same time is helpful in a wide variety of situations. One example would be to use the //Waveform Generator// to stimulate a circuit under test, the //Power Supplies// to provide power to the circuit and view the response with the // | ||
| + | |||
| + | It should be noted that the Analog Output channels cannot be shared by multiple instruments. When the //Waveform Generator// is enabled, any other instruments using the Analog Output channels are disabled. Other instruments that use the Analog Output channels include the //Network Analyzer//, and //Impedance Analyzer//. | ||
| + | ---- | ||
| + | ==== 3. Wavegen UI Overview ==== | ||
| + | |||
| + | //This sections walks through the different controls and features present in the Wavegen instrument// | ||
| + | |||
| + | <WRAP group> | ||
| + | <WRAP column half> | ||
| + | |||
| + | === 3.1 The Control Toolbar === | ||
| + | The control toolbar contains menus and control interfaces used to configure the Wavegen instrument. | ||
| + | |||
| + | </ | ||
| + | <WRAP column half> | ||
| + | |||
| + | {{: | ||
| + | |||
| + | </ | ||
| + | </ | ||
| + | |||
| + | <WRAP group> | ||
| + | <WRAP column half> | ||
| + | |||
| + | **File** contains options to start a new Wavegen instance, open, or save a Wavegen project for sharing or reuse of the configuration, | ||
| + | |||
| + | </ | ||
| + | <WRAP column half> | ||
| + | |||
| + | {{: | ||
| + | |||
| + | </ | ||
| + | </ | ||
| + | |||
| + | <WRAP group> | ||
| + | <WRAP column half> | ||
| + | |||
| + | **Control** contains the Run All and Stop All actions. | ||
| + | |||
| + | </ | ||
| + | <WRAP column half> | ||
| + | |||
| + | {{: | ||
| + | |||
| + | </ | ||
| + | </ | ||
| + | |||
| + | <WRAP group> | ||
| + | <WRAP column half> | ||
| + | |||
| + | **Channels** allows the user to open or close wavegen channels for configuration. | ||
| + | |||
| + | </ | ||
| + | <WRAP column half> | ||
| + | |||
| + | {{: | ||
| + | |||
| + | </ | ||
| + | </ | ||
| + | |||
| + | <WRAP group> <WRAP column half> | ||
| + | The **Synchronization** dropdown allows the user to select how the Wavegen Channels operate in regards to each other. Selecting // | ||
| + | </ | ||
| + | {{ : | ||
| + | </ | ||
| + | |||
| + | <WRAP group> <WRAP column half> | ||
| + | **Edit** lets the user copy or swap output signal configurations between available channels. | ||
| + | </ | ||
| + | {{: | ||
| + | </ | ||
| + | |||
| + | <WRAP group> | ||
| + | <WRAP column half> | ||
| + | |||
| + | |||
| + | === 3.2 The Preview Plot === | ||
| + | The preview plot displays what the waveform output will be. As the waveform parameters are changed in the configuration panel, the preview plot will update to reflect the changes. | ||
| + | |||
| + | Preview plot graphical settings can be changed by clicking on the Gear icon ({{learn: | ||
| + | </ | ||
| + | <WRAP column half> | ||
| + | |||
| + | {{: | ||
| + | |||
| + | </ | ||
| + | </ | ||
| + | |||
| + | <WRAP group> | ||
| + | <WRAP column half> | ||
| + | |||
| + | === 3.3 The Configuration Panel === | ||
| + | Configuration of the output waveform is done using the configuration panel. There are several different sets of configuration options, which can be selected with the drop-down to the right of the //Enable// checkbox, labeled " | ||
| + | |||
| + | The " | ||
| + | |||
| + | </ | ||
| + | <WRAP column half> | ||
| + | |||
| + | {{: | ||
| + | |||
| + | </ | ||
| + | </ | ||
| + | |||
| + | <WRAP group> | ||
| + | <WRAP column half> | ||
| + | |||
| + | The " | ||
| + | |||
| + | In this panel, the list of waves seen at the left side of the window can be changed by adding, importing, editing, or removing waves through the use of the buttons at the top of the list. When adding or editing a wave, the wave can be defined through several different methods, including through mathematical functions, through a data file (including CSV, TXT, and various audio files), or as a variant of one of the default functions. Note that the default set of waves cannot be edited or removed. | ||
| + | |||
| + | </ | ||
| + | <WRAP column half> | ||
| + | |||
| + | {{: | ||
| + | |||
| + | </ | ||
| + | </ | ||
| + | |||
| + | <WRAP group> | ||
| + | <WRAP column half> | ||
| + | |||
| + | The " | ||
| + | |||
| + | </ | ||
| + | <WRAP column half> | ||
| + | |||
| + | {{: | ||
| + | |||
| + | </ | ||
| + | </ | ||
| + | |||
| + | <WRAP group> | ||
| + | <WRAP column half> | ||
| + | |||
| + | The " | ||
| + | |||
| + | For devices that have a headphone jack, the Wavegen Channel outputs are always available through the connector. | ||
| + | |||
| + | </ | ||
| + | <WRAP column half> | ||
| + | |||
| + | {{: | ||
| + | |||
| + | </ | ||
| + | </ | ||
| + | |||
| + | <WRAP group> | ||
| + | <WRAP column half> | ||
| + | |||
| + | The " | ||
| + | The sweep panel provides all of the same configuration options as the simple configuration panel, with the addition of a linear frequency and/or amplitude sweep. | ||
| + | |||
| + | </ | ||
| + | <WRAP column half> | ||
| + | |||
| + | {{: | ||
| + | |||
| + | </ | ||
| + | </ | ||
| + | |||
| + | <WRAP group> | ||
| + | <WRAP column half> | ||
| + | |||
| + | The " | ||
| + | |||
| + | </ | ||
| + | <WRAP column half> | ||
| + | |||
| + | {{: | ||
| + | |||
| + | </ | ||
| + | </ | ||
| + | |||
| + | ==== Next Steps ==== | ||
| + | |||
| + | For more guides on how to use the Digilent Test & Measurement Device, return to the device' | ||
| + | |||
| + | If voltage values output by the //Wavegen// are significantly different from expected, please calibrate the device by following the [[test-and-measurement: | ||
| + | |||
| + | For more information on WaveForms visit the [[software: | ||
| + | |||
| + | For technical support, please visit the [[https:// | ||
| + | |||
| + | {{tag> | ||

