Ver código fonte

fixed Channel write function

publish
Wouter Horlings 8 anos atrás
pai
commit
29352edc9e
1 arquivos alterados com 3 adições e 3 exclusões
  1. +3
    -3
      OOequipment/Channel.m

+ 3
- 3
OOequipment/Channel.m Ver arquivo

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


Carregando…
Cancelar
Salvar