Kaynağa Gözat

fixed Channel write function

publish
Wouter Horlings 8 yıl önce
ebeveyn
işleme
29352edc9e
1 değiştirilmiş dosya ile 3 ekleme ve 3 silme
  1. +3
    -3
      OOequipment/Channel.m

+ 3
- 3
OOequipment/Channel.m Dosyayı Görüntüle

@@ -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


Yükleniyor…
İptal
Kaydet