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 ...@@ -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"); EXIT_ON_ARRAY_ERROR(input, "Too many dims");
break; break;
} }
element_size=input->get_type_size();
switch (input->type){ switch (input->type){
case 'UIN8': case 'UIN8':gnuplot_format="%uchar";break;
gnuplot_format="%uchar"; case 'INT8':gnuplot_format="%char";break;
element_size=sizeof(uchar); case 'IN16':gnuplot_format="%int16";break;
break; case 'UI16':gnuplot_format="%uint16";break;
case 'INT8': case 'IN32':gnuplot_format="%int32";break;
gnuplot_format="%char"; case 'UI32':gnuplot_format="%uint32";break;
element_size=sizeof(char); case 'FL32':gnuplot_format="%float32";break;
break; case 'FL64':gnuplot_format="%float64";break;
case 'FL32':
gnuplot_format="%float";
element_size=sizeof(float);
break;
default: EXIT_ON_ARRAY_ERROR(input, "The type is not managed"); default: EXIT_ON_ARRAY_ERROR(input, "The type is not managed");
} }
......
Supports Markdown
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