Commit 2d3dbf6c authored by Arnaud Blanchard's avatar Arnaud Blanchard
Browse files

Manage UINT and INT 16 and 32.

parent 252fec05
......@@ -81,14 +81,20 @@ static void *refresh_history_cb(void *history_pt){
history->init_timer();
switch (history->type) {
case 'UIN8': case 'INT8':
case 'UIN8': case 'INT8':
history->start_refresh<char>();
break;
case 'UI16': case 'IN16':
history->start_refresh<int16_t>();
break;
case 'UI32': case 'IN32':
history->start_refresh<int32_t>();
break;
case 'FL32':
history->start_refresh<float>();
break;
default:
break;
default: EXIT_ON_ERROR("The type is not managed");
break;
}
return NULL;
}
......@@ -125,6 +131,22 @@ void create_history_graph(blc_channel *input, char const *title, int history_len
gnuplot_format="%char";
history.element_size=sizeof(char);
break;
case 'UI16':
gnuplot_format="%uint16";
history.element_size=sizeof(uint16_t);
break;
case 'IN16':
gnuplot_format="%int16";
history.element_size=sizeof(int16_t);
break;
case 'UI32':
gnuplot_format="%uint32";
history.element_size=sizeof(uint32_t);
break;
case 'IN32':
gnuplot_format="%uint32";
history.element_size=sizeof(int32_t);
break;
case 'FL32':
gnuplot_format="%float";
history.element_size=sizeof(float);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment