46 int main(
int argc,
char* argv[]) {
56 if (
parse_args(argc, argv, &conf, &set_as_default, &file_comment) ==
63 if (set_as_default == 1) {
71 "RocketLogger already running\n Run: rocketlogger stop\n");
75 printf(
"Start sampling ...\n");
81 "RocketLogger already running\n Run: rocketlogger stop\n");
85 printf(
"Data acquisition running in background ...\n Stop with: " 86 "rocketlogger stop\n\n");
92 "RocketLogger already running\n Run: rocketlogger stop\n");
109 printf(
"Stopping RocketLogger ...\n");
117 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)