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