Commit 82cd51b1 authored by Markus Mueller-Trapet's avatar Markus Mueller-Trapet

check that sound card is initialized before calibration

parent a0bca21f
......@@ -159,6 +159,7 @@ classdef itaMSTFni < itaMSTF
function this = calibrate_input(this,elementIds)
% have to do this here because of different run function
% do only specific elements (e.g. only AD)
this.checkready
if ~exist('elementIds','var')
elementIds = 1:3;
else
......@@ -196,6 +197,7 @@ classdef itaMSTFni < itaMSTF
% have to do this here because of different run function
% Calibrates all output chains, using only the first
% (hopefully calibrated) input chain. Input chain calibration
this.checkready
if ~exist('input_chain_number','var')
input_chain_number = find(this.inputMeasurementChain.hw_ch == this.inputChannels(1));
end
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment