From 29352edc9e8c6766a5d06ccac8a631ecd02f6b12 Mon Sep 17 00:00:00 2001 From: Wouter Horlings Date: Wed, 29 Nov 2017 15:10:42 +0100 Subject: [PATCH] fixed Channel write function --- OOequipment/Channel.m | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/OOequipment/Channel.m b/OOequipment/Channel.m index 9f166ad..8438970 100644 --- a/OOequipment/Channel.m +++ b/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