Examples -

The Solution files for the examples are zipped and included below.

The first example waveform output alternates between a sine waveform and a ramp waveform.

The second example waveform output consists of pseudorandom noise. This example uses a variety of of waveform-specific parameters. 

The third example demonstrates the user_define_bulk method, and its waveform output is a series of eight pulses with increasing rise/fall times. The output also contains a 1-0-1-0 clock-like pattern on another user page. 

The fourth example generates a user defined file. This file contains data which you can download to the modules using the AWG_WIN.exe GUI. This waveform is a concatenation of triangle, sine, and square waves.

The fifth example generates a user defined file from MATLAB. The example generates a two-tone waveform corrupted with noise and then windowed. You can view the theoretical waveform and idealized spectrum in Matlab. The example assumes your computer is licensed for Matlab and the Matlab Signal Processing Toolbox.

The sixth example is called Waveform Explorer. This generates a .dat text file enumerating the available waveform codes.

The last example waveform is very similar to the first example but is designed for multiple-channel modules (AWG272 and AWG472). The output alternates between sine waveforms of two frequencies on one channel and ramp waveforms of two slopes on the other channel.

 

Please note that you must re-reference the Euvis_Module_V1p2.dll API file for the examples. To do this, follow the instructions as detailed on the API Reference page. Your compiler must also have been set up with Common Language Runtime Support and with the Multi-threaded DLL Runtime Library. 

Also, please ensure there is a copy of your signature file(s)
AWG_yyy_SGN_xxx.dat (for API version 1.0),
AWGyyy_SGN_xxx.dat (for API versions 1.1-1.2),
where the three digits
xxx should be replaced by the serial number of your module(s) and
yyy should be replaced by the 3 digits of your AWG hardware number [252, 452, 801, 272, or 472],
in the directory you specify in the code. The examples use the default installation directory C:\Program Files\Euvis\AWG. If your module

example.zip

The examples in this manual work for API versions 1.1-1.2.
For API version 1.0, please see 1.0 Examples