Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
toolbox
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
0
Merge Requests
0
Requirements
Requirements
List
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Incidents
Packages & Registries
Packages & Registries
Package Registry
Container Registry
Analytics
Analytics
Code Review
Insights
Issue
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Marco Berzborn
toolbox
Commits
f4091558
Commit
f4091558
authored
Jan 17, 2017
by
Markus Mueller-Trapet
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bugfix if instrument control toolbox is not available
parent
848c7178
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
20 deletions
+22
-20
kernel/StandardRoutines/ccx.m
kernel/StandardRoutines/ccx.m
+22
-20
No files found.
kernel/StandardRoutines/ccx.m
View file @
f4091558
...
...
@@ -3,8 +3,8 @@
% standard working directory setting used in open/write file GUIs.
% <ITA-Toolbox>
% This file is part of the ITA-Toolbox. Some rights reserved.
% You can find the license for this m-file in the license.txt file in the ITA-Toolbox folder.
% This file is part of the ITA-Toolbox. Some rights reserved.
% You can find the license for this m-file in the license.txt file in the ITA-Toolbox folder.
% </ITA-Toolbox>
% Author: Pascal Dietrich - pdi@akustik.rwth-aachen.de - 2007
...
...
@@ -12,30 +12,32 @@
try
%#ok<TRYNC>
dbquit
all
end
warning
off
%#ok<WNOFF>
warning
off
clear
classes
%RSC - needed to clean class references in case of changes
clear
global
%RSC - needed to clean up global variables from preferences or mpb_filter and free memory
clear
java
%RSC - reduces trouble with figures
clear
java
%RSC - reduces trouble with figures
if
usejava
(
'jvm'
)
%Only if jvm available (non_cluster)
s_obj
=
instrfind
();
if
~
isempty
(
s_obj
)
for
idx
=
1
:
length
(
s_obj
)
if
strcmpi
(
s_obj
(
idx
),
'closed'
)
elseif
strcmpi
(
s_obj
(
idx
),
'open'
)
fclose
(
s_obj
(
idx
));
if
exist
(
'instrfind'
,
'file'
)
s_obj
=
instrfind
();
if
~
isempty
(
s_obj
)
for
idx
=
1
:
length
(
s_obj
)
if
strcmpi
(
s_obj
(
idx
),
'closed'
)
elseif
strcmpi
(
s_obj
(
idx
),
'open'
)
fclose
(
s_obj
(
idx
));
end
disp
([
' deleting: '
s_obj
(
idx
)
.
Name
'...'
]);
delete
(
s_obj
(
idx
));
end
end
disp
([
' deleting: '
s_obj
(
idx
)
.
Name
'...'
]);
delete
(
s_obj
(
idx
));
end
end
end
end
if
exist
(
'playrec'
,
'file'
)
if
playrec
(
'isInitialised'
)
playrec
(
'reset'
);
end
if
playrec
(
'isInitialised'
)
playrec
(
'reset'
);
end
end
fclose
all
;
...
...
@@ -52,6 +54,6 @@ if usejava('jvm') % bugfix mpo
end
clc
warning
on
%#ok<WNON>
warning
off
MATLAB
:
log
:
logOfZero
warning
on
warning
off
MATLAB
:
log
:
logOfZero
warning
off
MATLAB
:
pfileOlderThanMfile
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment