-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAWG_README.m
More file actions
65 lines (54 loc) · 1.78 KB
/
AWG_README.m
File metadata and controls
65 lines (54 loc) · 1.78 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
%% AWG README
% This is the readme document for the MATLAB AWG Interface for ACQ400
% products from D-TACQ Solutions.
%
% An example run of AWG control is shown before delving into the
% constituent parts of the application. This detail should allow you to
% tweak the application or create your own custom interface.
%
% Click on the hyperlinks in this document to go to detailed views of the
% constituent functions. The most detailed discussion of the interface to
% the card is given in <wavegen.html wavegen.m>.
%% Example Run
% * Execute the |initialise_demo| script.
%
% >> initialise_demo
%
% * Some plots should appear and you will notice that new workspace variables
% have been created.
%
% <<workspace.png>>
%
% * Next, you should define your UUT (Unit Under Test) as follows.
global UUT
% Without DNS
UUT = '10.12.196.103'; % IP address of YOUR product, this is just an example.
% With DNS
UUT = 'acq1001_025';
%%%
% * From here call the |wavegen_go| function with arguments
%
% >> wavegen_go(x1,x2,x3,x4)
%
% Readback from UUT
% stat:/usr/local/awgdata/ch/ch01 length:32768
% New ChanDef:16384
% stat:/usr/local/awgdata/ch/ch02 length:32768
% New ChanDef:16384
% stat:/usr/local/awgdata/ch/ch03 length:32768
% New ChanDef:16384
% stat:/usr/local/awgdata/ch/ch04 length:32768
% New ChanDef:16384
%%%
% * Now through an oscilloscope or acquisition software we can see those generated
% signals output on the UUT. In this case x1 thru x4 are sine waves offset
% by 45 degrees.
%
% <<AWG.gif>>
%
%% <wavegen_go.html wavegen_go.m>
%% <wavegen.html wavegen.m>
%% <write_to_ALL_CH.html write_to_ALL_CH.m>
%% <write_to_CH.html write_to_CH.m>
%% <soft_trigger.html soft_trigger.m>
%% <initialise_demo.html initialise_demo.m>