Start and suspend from batch file

Forum for discussion on different user applications
Post Reply
lavincent
Posts: 11
Joined: 10 Mar 2016, 06:25

Start and suspend from batch file

Post by lavincent » 26 Sep 2016, 13:59

Hi all,
sorry if in the wrong forum section, but i don't know where this post could be more appropriate.

Anyone knows why this error: ...path\batch_file.bat, line 22: Wait aborted

when i try to execute this:

Code: Select all

Change directory $BCI2000LAUNCHDIR
Show window; Set title ${Extract file base $0}
Reset system
Startup system localhost

Start executable SignalGenerator --local
Start executable DummySignalProcessing --local
Start executable DummyApplication --local
Wait for Connected

Start executable MyApp --local
Load parameterfile "../parms/testParams.prm"

SET CONFIG
START

WAIT FOR Suspended 5
?

Thank you

pbrunner
Posts: 344
Joined: 17 Sep 2010, 12:43

Re: Start and suspend from batch file

Post by pbrunner » 26 Sep 2016, 15:00

Lavincent,

I could reproduce the issue with the "WAIT FOR" command in the operator script. I will let you know once this issue is resolved.

Unrelated to this, I have noticed that you are starting two application modules. Please note that only one will connect, specifically the fist one in your list. I would like to suggest, that you replace the DummyApplication in your script with your MyApp.

Regards, Peter

lavincent
Posts: 11
Joined: 10 Mar 2016, 06:25

Re: Start and suspend from batch file

Post by lavincent » 27 Sep 2016, 05:53

OK thank you Peter,
let me know if you need more information.

Anyway thanks again for your suggestion, I've created an UDP socket in MyApp to receive the datagrams.
I also asked help here:
http://www.bci2000.org/bbs/viewtopic.php?f=5&t=3355


Regards, LaV

pbrunner
Posts: 344
Joined: 17 Sep 2010, 12:43

Re: Start and suspend from batch file

Post by pbrunner » 28 Sep 2016, 13:41

Lavincent,

the bug is now fixed in SVN revision 5553. Please update your source code to the trunk (currently revision 5555) and re-compile. Thanks again for reporting the issue.

Regards, Peter

lavincent
Posts: 11
Joined: 10 Mar 2016, 06:25

Re: Start and suspend from batch file

Post by lavincent » 29 Sep 2016, 08:05

Welcome.

Thanks for support. Regards

Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests