Robotran C Documentation
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Functions
auto_plot.h File Reference

functions used to automatically update the user curves plotted More...

#include "mbs_realtime_struct.h"

Go to the source code of this file.

Functions

AutoPlotinit_auto_plot (int max_nb)
 User curves to plot auto-update. 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...
 

Detailed Description

functions used to automatically update the user curves plotted

Author
Nicolas Van der Noot

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)

User curves to plot auto-update.

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