Command line interface: Difference between revisions
m (Felix Kaschura moved page Command line control to Command line interface: using common technical term) |
|||
(2 intermediate revisions by one other user not shown) | |||
Line 5: | Line 5: | ||
Open a command line and type in the following line: | Open a command line and type in the following line: | ||
'''SweepMe!. | '''SweepMe!.exe -setting="test.set" -user="first last name" -folder="test2" -file="test1" -r -s -c''' | ||
SweepMe! will be started by loading the setting '''test.set''' from the setting folder. | SweepMe! will be started by loading the setting '''test.set''' from the setting folder. | ||
Line 17: | Line 17: | ||
== Command line options == | == Command line options == | ||
{| class="wikitable" | |||
|- | |||
! Option !! Explanation | |||
|- | |||
| -setting="''file.set''" || set setting file to specified file | |||
|- | |||
| -r || run on start | |||
|- | |||
| -c || close after measurement | |||
|- | |||
| -s || save data after run | |||
|- | |||
| -user="''username''" || set user to specified name (only set if user exists) | |||
|- | |||
| -file="''file''" || set file name prefix | |||
|- | |||
| -folder="''folder''" || set folder name | |||
|- | |||
| -d || debug mode: show all error messages in ConsoleWindow | |||
|- | |||
|} |
Latest revision as of 20:36, 24 June 2020
SweepMe! can be controlled via command line by handing over command line options.
Example
Open a command line and type in the following line:
SweepMe!.exe -setting="test.set" -user="first last name" -folder="test2" -file="test1" -r -s -c
SweepMe! will be started by loading the setting test.set from the setting folder. The user is set to first last name if available in the list of users. Folder and file are set to test2 and test1, respectively. After start of SweepMe!, the measurement will automatically run (-r), save the data (-s), and close the program afterwards (-c). Probably, you have to modify some of the commannd line options to get the example working.
Batch processing
By using batch files, SweepMe! can be started multiple times to perform different measurements, which have previously been configured via a setting file. In that way, you can easily insert further commands between consecutive calls of SweepMe!, e.g. a time to stop or a call of another script evaluating some data.
Command line options
Option | Explanation |
---|---|
-setting="file.set" | set setting file to specified file |
-r | run on start |
-c | close after measurement |
-s | save data after run |
-user="username" | set user to specified name (only set if user exists) |
-file="file" | set file name prefix |
-folder="folder" | set folder name |
-d | debug mode: show all error messages in ConsoleWindow |