Dear Albert,
no, you don't need a script. You start the recording/splitting with a single command line like:
Code:
msb_record | msb_split -D -t3600
This line creates a new file every 3600 seconds. The argument -D defines a file name like 20170223_15h32m12s.msblog, which make it more easier to pick the right one afterwards. Without -D you will get files named like xaa.msblog, xab.msblog and so on.
You can even start the analyzer with in a paused state and send the start command by another program when a certain event occurs.
Code:
msb_record --paused | msb_split -D -t3600
For instance: Open a DOS/Command shell and input the command above. The command starts the analyzer (load the firmware if not already done) and then waits for the start trigger. To send the start command open another DOS/Command shell and input:
Code:
msb_record -r start
The parameter -r means 'remote'. To stop the recording (pausing again) send:
The recording is ending with:
Chapter 19.2 explains the details, especially with the remote control.
For simplifying I didn't set the connection parameters like baud rate, tapping. You can pass all these settings as program arguments or use a config file (chapter 19.6). I suggest to play around a little bit with the API to get an idea how it works.
Best regards