% PARAMETERS\r
% ==============================================================\r
\r
-root_dir = pwd; % The directory where CNAQ is installed\r
-device = 1; % The ASIO device number in the audio sytem\r
-delay = 588; % The number of samples in the buffer (latency of the sound card in\r
- % samples. See tests/testacqui.m to know your delay)\r
+% The ASIO device number in the audio sytem\r
+device = 0; \r
+\r
+% The number of samples in the buffer of the sound card\r
+% (delay * f_s = latency time)\r
+% It IS necessary that you compute this value BEFORE any measurement\r
+% executing ./tests/get_latency.m in MATLAB like this :\r
+% >> get_latency(DEVICE, N)\r
+% where DEVICE is the device number (see above) and N the number of \r
+% successive measurements\r
+% If this value is wrong, the phasis results might be also wrong...\r
+delay = 587;\r
+\r
\r
% ==============================================================\r
% INIT\r
% ==============================================================\r
\r
+root_dir = pwd; % The directory where CNAQ is installed\r
%cnaq_path = pwd;\r
cnaq_path = root_dir;\r
tools_path = [cnaq_path '\tools\'];\r