Commit 4cd9bc22 authored by Arnaud Blanchard's avatar Arnaud Blanchard
Browse files

Manage all blc_array types (i.e. UI32)

parent a0a0b23e
Pipeline #45 failed with stages
......@@ -47,20 +47,16 @@ void create_graph(blc_channel *input, char const *title, int refresh_period, flo
EXIT_ON_ARRAY_ERROR(input, "Too many dims");
break;
}
element_size=input->get_type_size();
switch (input->type){
case 'UIN8':
gnuplot_format="%uchar";
element_size=sizeof(uchar);
break;
case 'INT8':
gnuplot_format="%char";
element_size=sizeof(char);
break;
case 'FL32':
gnuplot_format="%float";
element_size=sizeof(float);
break;
case 'UIN8':gnuplot_format="%uchar";break;
case 'INT8':gnuplot_format="%char";break;
case 'IN16':gnuplot_format="%int16";break;
case 'UI16':gnuplot_format="%uint16";break;
case 'IN32':gnuplot_format="%int32";break;
case 'UI32':gnuplot_format="%uint32";break;
case 'FL32':gnuplot_format="%float32";break;
case 'FL64':gnuplot_format="%float64";break;
default: EXIT_ON_ARRAY_ERROR(input, "The type is not managed");
}
......
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