* differentiated Valve::setValveCoeff from PressureController::setPressureCoeff and introduced MassFlowController::setMassFlowCoeff for consistency. * introduced FlowDevice::setTimeFunction and FlowDevice::setPressureFunction to differentiate time-dependent and pressure-dependent functions. * introduced arbitrary pressure dependence for PressureController * deprecated FlowDevice::setFunction which is replaced by time and pressure specific functions. * introduced properties Valve.valve_coeff / PressureController.pressure_coeff / MassFlowController.mass_flow_coeff in Cython interface and deprecated Valve.set_pressure_coeff / PressureController.set_pressure_coeff * deprecated corresponding function calls in clib interface * deprecate FlowDevice.setParameters (which was only used by MATLAB interface)
20 lines
522 B
Matlab
20 lines
522 B
Matlab
function setFunction(f, mf)
|
|
% SETFUNCTION Set the mass flow rate with class :mat:func:`Func`.
|
|
% setFunction(f, mf)
|
|
%
|
|
% See also: :mat:func:`MassFlowController`, :mat:func:`Func`
|
|
%
|
|
% :param f:
|
|
% Instance of class :mat:func:`MassFlowController`
|
|
% :param mf:
|
|
% Instance of class :mat:func:`Func`
|
|
%
|
|
|
|
if strcmp(f.type, 'MassFlowController')
|
|
k = flowdevicemethods(9, f.index, func_hndl(mf));
|
|
if k < 0
|
|
error(geterr);
|
|
end
|
|
else
|
|
error('Mass flow rate can only be set for mass flow controllers')
|
|
end
|