Loading…

方法名称: rectangular_thin_plate_weir_lin_table_generation

方法ID: 0x4460

方法标签: Generate Linearization Table

方法描述: Generate linearization table with 32 input and 32 output points.


  • {
  • float angle1;
  • float angle2;
  • float Kb;
  • float be;
  • float he;
  • float hP;
  • float cd;
  • float flowratecalculated;
  • float headconvertedrectangular;
  • float notchwidthconverted;
  • float crestheightconverted;
  • float channelwidthconverted;
  • float ratiocalculation;
  • int i;
  • double Factor;
  • char disp_string1[135];
  • int slen1;
  • slen1 = 135;
  • _set_device_status(0xFF,0);
  • _set_xmtr_device_status(0xFF,0);
  • _set_all_resp_code(0);
  • _set_xmtr_all_resp_code(0);
  • _get_dictionary_string(19726337,disp_string1,slen1);
  • ACKNOWLEDGE(disp_string1);
  • _add_abort_method(4118);
  • ACKNOWLEDGE(literal_string(1546));
  • PUT_MESSAGE(literal_string(1547));
  • activateLineariser = 0;
  • send_command(213);
  • index_linpoints = 0;
  • lin_input_0 = 0.0;
  • lin_output_0 = 0.0;
  • send_command(211);
  • index_linpoints = 31;
  • lin_input_31 = span_Obj_value_0;
  • lin_output_31 = 100.00;
  • send_command(211);
  • for (i = 1; i < 31; i = i + 1)
  • {
  • index_linpoints = i;
  • Factor = i * 1.0 / 31.0;
  • array_linpoints[i].inputpoint = span_Obj_value_0 * Factor;
  • if (Distance_Obj_unit == 44)
  • {
  • headconvertedrectangular = array_linpoints[i].inputpoint * 0.3048;
  • notchwidthconverted = notchwidth * 0.3048;
  • crestheightconverted = crestheight * 0.3048;
  • channelwidthconverted = channelwidth * 0.3048;
  • }
  • else
  • if (Distance_Obj_unit == 45)
  • {
  • headconvertedrectangular = array_linpoints[i].inputpoint * 1;
  • notchwidthconverted = notchwidth * 1;
  • crestheightconverted = crestheight * 1;
  • channelwidthconverted = channelwidth * 1;
  • }
  • else
  • if (Distance_Obj_unit == 47)
  • {
  • headconvertedrectangular = array_linpoints[i].inputpoint * 0.0254;
  • notchwidthconverted = notchwidth * 0.0254;
  • crestheightconverted = crestheight * 0.0254;
  • channelwidthconverted = channelwidth * 0.0254;
  • }


请登录以获得完整内容