Matlab waveform function editor - example – Teledyne LeCroy WaveRunner XI SERIES Operator’s Manual User Manual
Page 210

W
AVE
R
UNNER
X
I
S
ERIES
210
WRXi-OM-E Rev C
Example
ou can reach the MATLAB Editor where you will see the default waveform function. If
and create a MATLAB function that performs
n be a one-line call of your MATLAB function.
MATLAB Waveform Function Editor -
By touching
Edit Code, y
you are familiar with MATLAB, you might prefer to launch MATLAB
your task. Your program in the instrument could the
This is the default waveform function, with one important change – the semi-colon (;) has been removed from the
end of the line. If the semicolon is p
cause the output values will not
be shown in MATLAB Response.
isplay it could be
he
response va
l du
itho
roduce a
visible MATL
From this panel you can save your code, load a previous code, and edit your func
MATLAB is
an entire wave
. The two input wa
n1 and
WformIn2, while the outpu
ut. You can al
vidual samples, suc
In1(34), and
W
W
WformOut(34:55) = WformIn(34:55)
WformOut(233:377) = WformIn(100:244)
resent, your function will run much faster, be
With a long waveform, the time needed to d
ring development and debugging. Any line w
quite long. T
ut a semicolon will p
lues can be usefu
AB Response.
tion. A powerful feature of
veforms are WformI
h as Wform
that you can refer to
t is WformO
form as a vector
so refer to indi
sequences of samples, such as WformIn(55:89)
You can write statements such as these:
formOut(5) = WformIn(5)
formOut(89) = WformIn(144)