Some improvements to the rc call snipped from Matlab env

parent f7b7e94c
......@@ -1466,10 +1466,12 @@ To run several simulations in a batch system, the VAServer application can be st
Stopping VA with a <i>kill</i> command will not close VA properly and the simulated and recorded data is lost.
To enable the remote control mode, add a fourth parameter. A Matlab code snippet to launch it could look like this:
<pre><code>vaserver_path = which( 'VAServer.exe' );
va_syscall = [ '"' vaserver_path '" localhost:12340 VACore.ini remote_control_mode &' ];
vaserver_config = which( 'VACore.ini' );
va_syscall = sprintf('"%s" %s:%i "%s" remote_control_mode &', vaserver_path, 'localhost', 12340, vaserver_config );
disp( [ 'Calling: ' va_syscall ] )
system( va_syscall );
pause( 1 )
va.connect
va = VA( 'localhost' );
% Run your scene ...
va.shutdown_server
va.disconnect
......
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