Robotran C Documentation
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Functions
auto_plot.c File Reference
#include "auto_plot.h"
#include "useful_functions.h"
#include <stdlib.h>
#include <string.h>

Functions

AutoPlotinit_auto_plot (int max_nb)
 initialize the AutoPlot structure More...
 
void free_auto_plot (AutoPlot *auto_plot)
 release memory for AutoPlot More...
 
void update_auto_plot (AutoPlot *auto_plot, double value, const char *label)
 update auto_plot when a 'set_plot' is encountered More...
 
int index_plot_string (AutoPlot *auto_plot, const char *label)
 get index for a curve with its label More...
 

Function Documentation

◆ free_auto_plot()

void free_auto_plot ( AutoPlot auto_plot)

release memory for AutoPlot

Parameters
[out]auto_plotAutoPlot structure to free

◆ index_plot_string()

int index_plot_string ( AutoPlot auto_plot,
const char *  label 
)

get index for a curve with its label

Parameters
[in]auto_plotAutoPlot structure
[in]labellabel of the curve
Returns
index of the curve, -1 if not known

◆ init_auto_plot()

AutoPlot* init_auto_plot ( int  max_nb)

initialize the AutoPlot structure

User curves to plot auto-update.

Parameters
[in]max_nbmaximum number of curves to plot
Returns
AutoPlot structure initialized

◆ update_auto_plot()

void update_auto_plot ( AutoPlot auto_plot,
double  value,
const char *  label 
)

update auto_plot when a 'set_plot' is encountered

Parameters
[out]auto_plotAutoPlot structure
[in]valuecurrent curve value
[in]labelcurrent curve label