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

check that sound card is initialized before calibration

parent a0bca21f
...@@ -159,6 +159,7 @@ classdef itaMSTFni < itaMSTF ...@@ -159,6 +159,7 @@ classdef itaMSTFni < itaMSTF
function this = calibrate_input(this,elementIds) function this = calibrate_input(this,elementIds)
% have to do this here because of different run function % have to do this here because of different run function
% do only specific elements (e.g. only AD) % do only specific elements (e.g. only AD)
this.checkready
if ~exist('elementIds','var') if ~exist('elementIds','var')
elementIds = 1:3; elementIds = 1:3;
else else
...@@ -196,6 +197,7 @@ classdef itaMSTFni < itaMSTF ...@@ -196,6 +197,7 @@ classdef itaMSTFni < itaMSTF
% have to do this here because of different run function % have to do this here because of different run function
% Calibrates all output chains, using only the first % Calibrates all output chains, using only the first
% (hopefully calibrated) input chain. Input chain calibration % (hopefully calibrated) input chain. Input chain calibration
this.checkready
if ~exist('input_chain_number','var') if ~exist('input_chain_number','var')
input_chain_number = find(this.inputMeasurementChain.hw_ch == this.inputChannels(1)); input_chain_number = find(this.inputMeasurementChain.hw_ch == this.inputChannels(1));
end 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