Skip to content

Commit

Permalink
Number of cbox channels increased to 8
Browse files Browse the repository at this point in the history
  • Loading branch information
pcklink committed Mar 24, 2022
1 parent 125e3df commit 192230e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
3 changes: 2 additions & 1 deletion TrackerApp/prestim.m
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,11 @@

BtOn = 0; %if using button presses set to 1
Board = int32(22); %mcc board = 22; Demo-board = 0
nChan = 8; %how many channels to initiate (little loss in launching all)

if ~isfield(Par, 'DasOn') || Par.DasOn ~= 1
try
dasinit( Board, 2); %mexfunction acces!! give board number
dasinit(Board, nChan); %mexfunction acces!! give board number
Par.DasOn = 1; %and number of channels
catch
Par.DasOn = 0;
Expand Down
9 changes: 5 additions & 4 deletions TrackerT/prestim.m
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,15 @@

BtOn = 0; %if using button presses set to 1
Board = int32(22); %mcc board = 22; Demo-board = 0
nChan = 8; %how many channels to initiate (little loss in launching all)

if ~isfield(Par, 'DasOn')
Par.DasOn = 0; %persistent value
end
if ~isfield(Par, 'DasOn')
Par.DasOn = 0; %persistent value
end

if Par.DasOn ~= 1
try
dasinit( Board, 2); %mexfunction acces!! give board number
dasinit(Board, nChan); %mexfunction acces!! give board number
Par.DasOn = 1; %and number of channels
catch
errordlg('no dascard')
Expand Down

0 comments on commit 192230e

Please sign in to comment.