Files
mocha/scripts/mcaclose.m
2017-09-19 11:58:36 +02:00

23 lines
710 B
Matlab

function mcaclose(varargin)
%MCACLOSE - permanently closes channels
% MCACLOSE(H1,H2,...,HN) closes the channels identified by their
% integer handles, previously opened with MCAOPEN.
% MCACLOSE(H) is the same for the case that H is an array of handles.
%
% Note: Once a channel is closed, it can not be used
% by MCAGET,MCAPUT or MCAMON. It can not be reopened.
% Use MCAOPEN again in order to connect to the same PV.
%
% See also MCAOPEN, MCASTATE, MCAINFO
if nargin <1
error('Must specify channel handles to close');
else
for i=1:nargin
pvs = varargin{i};
for j=1:length(pvs)
%mca(5, pvs(j))
mocha('close', pvs(j))
end
end
end