*/
private void startExport() {
writeSettings();
int simLength = 0;
simLength = ModelManager.getInstance().getSimulationLength();
simSettings = new SimulationSettings();
simSettings.setSimLength(simLength);
if (b_connectRemote.isSelected()) {
// remote mode
simSettings.setRemote();
int port = 0;