Adding NatNet version display when browsing for VA binaries, did only work...

Adding NatNet version display when browsing for VA binaries, did only work when VA was found right away
parent a0a07c6c
......@@ -79,7 +79,7 @@ disp( [ 'Resulting sound source speed: ' num2str( spatialstep / timestep ) ' m/s
numsteps = 3400 * 2;
disp( [ 'Simulation result duration: ' num2str( numsteps * timestep ) ' s' ] )
x = linspace( -1, 1, numsteps ) * 20; % motion from x = -50m to x = 50m
x = linspace( -1, 1, numsteps ) * 20; % motion from x = -20m to x = 20m
H_direct_log = []; % Direct field component
H_diffracted_log = []; % Diffracted field component
......
......@@ -248,6 +248,17 @@ else
set( handles.edit_vaserver_full_path, 'String', 'not found' )
end
% NatNetML
current_natnet_dir = which( 'NatNetML.dll' );
if ~isempty( current_natnet_dir )
ainfo = NET.addAssembly( current_natnet_dir );
natnetversion_raw = NatNetML.NatNetClientML( 0 ).NatNetVersion();
vs = sprintf( 'NatNetML (OptiTrack) %d.%d', natnetversion_raw(1), natnetversion_raw(2) );
set( handles.edit_natnet_version, 'String', vs )
end
function [ found, va_component_dir ] = find_VA_Component( va_search_dir, component, recursive )
found = false;
va_component_dir = '';
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment