21 int main(
int argc,
char* argv[]) {
36 if(set_as_default == 1) {
43 rl_log(
ERROR,
"RocketLogger already running\n Run: rocketlogger stop\n");
47 printf(
"Start sampling ...\n");
52 rl_log(
ERROR,
"RocketLogger already running\n Run: rocketlogger stop\n");
56 printf(
"Data acquisition running in background ...\n Stop with: rocketlogger stop\n\n");
61 rl_log(
ERROR,
"RocketLogger already running\n Run: rocketlogger stop\n");
78 printf(
"Stopping RocketLogger ...\n");
86 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 write_default_config(struct rl_conf *conf)
void rl_log(rl_log_type type, const char *format,...)
int parse_args(int argc, char *argv[], struct rl_conf *conf, int *set_as_default)
int read_default_config(struct rl_conf *conf)
int main(int argc, char *argv[])
int rl_start(struct rl_conf *conf)
Set default configuration.
Print the RocketLogger Software Stack version.
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)