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
f9ec8ae5
Commit
f9ec8ae5
authored
Nov 25, 2016
by
Dipl.-Ing. Jonas Stienen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixing problems with new version output from VAServer app in itaVA_setup script
parent
f6843511
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
2 deletions
+18
-2
applications/VirtualAcoustics/VA/itaVA_setup.m
applications/VirtualAcoustics/VA/itaVA_setup.m
+18
-2
No files found.
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