|
|
@@ -70,7 +70,7 @@ classdef FunctionGenerator < Equipment |
|
|
|
|
|
|
|
|
methods (Static) |
|
|
methods (Static) |
|
|
function w = getWave(win) |
|
|
function w = getWave(win) |
|
|
w = regexp(num2str(win), '(si|sq|mi|ma[trndu1-7]|s)', 'match', 'once', 'ignorecase'); |
|
|
|
|
|
|
|
|
w = regexp(num2str(win), '(si|sq|mi|ma|[trndu1-7]|s)', 'match', 'once', 'ignorecase'); |
|
|
|
|
|
|
|
|
if isempty(w) |
|
|
if isempty(w) |
|
|
error(strcat('Invalid waveform: ', win)); |
|
|
error(strcat('Invalid waveform: ', win)); |
|
|
|