Explorar el Código

fixed Channel write function

publish
Wouter Horlings hace 8 años
padre
commit
29352edc9e
Se han modificado 1 ficheros con 3 adiciones y 3 borrados
  1. +3
    -3
      OOequipment/Channel.m

+ 3
- 3
OOequipment/Channel.m Ver fichero

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


Cargando…
Cancelar
Guardar