ソースを参照

fixed Channel write function

publish
Wouter Horlings 8年前
コミット
29352edc9e
1個のファイルの変更3行の追加3行の削除
  1. +3
    -3
      OOequipment/Channel.m

+ 3
- 3
OOequipment/Channel.m ファイルの表示

@@ -118,15 +118,15 @@ classdef Channel
end
methods (Hidden, Access = private)
function c = CHAN(ch,string)
function c = CHAN(ch,string,in)
if nargin == 2
if strcmp(string(end),'?')
c = ch.scope.query(['CHAN',num2str(ch.channelnumber),':',string]);
else
c = ch.scope.write(['CHAN',num2str(ch.channelnumber),':',string]);
ch.scope.write(['CHAN',num2str(ch.channelnumber),':',string]);
end
else
c = ch.scope.write(['CHAN',num2str(ch.channelnumber),':',string,' ',in]);
ch.scope.write(['CHAN',num2str(ch.channelnumber),':',string,' ',in]);
end
end


読み込み中…
キャンセル
保存