Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Institute of Technical Acoustics (ITA)
toolbox
Commits
f9ec8ae5
Commit
f9ec8ae5
authored
Nov 25, 2016
by
Dipl.-Ing. Jonas Stienen
Browse files
Fixing problems with new version output from VAServer app in itaVA_setup script
parent
f6843511
Changes
1
Show whitespace changes
Inline
Side-by-side
applications/VirtualAcoustics/VA/itaVA_setup.m
View file @
f9ec8ae5
...
...
@@ -75,7 +75,15 @@ current_va_server_dir = which( 'VAServer.exe' );
if
~
isempty
(
current_va_server_dir
)
set
(
handles
.
edit_vaserver_full_path
,
'String'
,
current_va_server_dir
)
[
~
,
v
]
=
system
(
[
current_va_server_dir
' --version'
]
);
set
(
handles
.
edit_vaserver_version
,
'String'
,
strcat
(
v
)
)
vs
=
strsplit
(
v
,
'\n'
);
for
i
=
1
:
numel
(
vs
)
vss
=
vs
{
1
,
i
};
if
numel
(
vss
)
>
6
if
strcmpi
(
vss
(
1
:
6
),
'VACore'
)
set
(
handles
.
edit_vaserver_version
,
'String'
,
strcat
(
vs
(
i
)
)
)
end
end
end
end
uiwait
(
handles
.
figure1
);
...
...
@@ -212,7 +220,15 @@ if vaserver_found
vaserver_path
=
fullfile
(
vaserver_dir
,
'VAServer.exe'
);
set
(
handles
.
edit_vaserver_full_path
,
'String'
,
vaserver_path
)
[
~
,
v
]
=
system
(
[
vaserver_path
' --version'
]
);
set
(
handles
.
edit_vaserver_version
,
'String'
,
strcat
(
v
)
)
vs
=
strsplit
(
v
,
'\n'
);
for
i
=
1
:
numel
(
vs
)
vss
=
vs
{
1
,
i
};
if
numel
(
vss
)
>
6
if
strcmpi
(
vss
(
1
:
6
),
'VACore'
)
set
(
handles
.
edit_vaserver_version
,
'String'
,
strcat
(
vs
(
i
)
)
)
end
end
end
else
set
(
handles
.
edit_vaserver_full_path
,
'String'
,
'not found'
)
end
...
...
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