47 int main(
int argc,
char* argv[]) {
57 if (
parse_args(argc, argv, &conf, &set_as_default, &file_comment) ==
64 if (set_as_default == 1) {
72 "RocketLogger already running\n Run: rocketlogger stop\n");
76 printf(
"Start sampling ...\n");
82 "RocketLogger already running\n Run: rocketlogger stop\n");
86 printf(
"Data acquisition running in background ...\n Stop with: " 87 "rocketlogger stop\n\n");
93 "RocketLogger already running\n Run: rocketlogger stop\n");
110 printf(
"Stopping RocketLogger ...\n");
118 rl_log(
WARNING,
"change will not affect current measurement");
void rl_print_status(struct rl_status *status)
Limited sampling mode (limited by number of samples to take)
Print default configuration.
Get current status of RocketLogger.
rl_mode mode
Sampling mode.
Stop continuous sampling.
Continuous sampling mode (in background)
void rl_print_version(void)
int parse_args(int argc, char *argv[], struct rl_conf *conf, int *set_as_default, char **file_comment)
int write_default_config(struct rl_conf *conf)
void rl_log(rl_log_type type, const char *format,...)
int read_default_config(struct rl_conf *conf)
int main(int argc, char *argv[])
Set default configuration.
Print the RocketLogger Software Stack version.
int rl_start(struct rl_conf *conf, char *file_comment)
rl_state rl_get_status(void)
void print_config(struct rl_conf *conf)
Meter mode (display current values in terminal)
int rl_read_status(struct rl_status *status)