Loading…
Loading…
方法名称: zoom_echo_graph_method
方法ID: 0x4686
方法标签: 缩放回波图表
方法描述: 客户可对回波曲线进行局部放大或缩小
- {
- char status[3];
- long i;
- long array_index;
- long received_index;
- long block;
- long num_blocks;
- long success;
- long datapoint;
- long datapointvalue;
- float conv_to_units;
- float ref_offset;
- float echodeltaX;
- float fscratch;
- float fscratch1;
- int point_interval;
- int total_graphed_points;
- int last_index;
- float first_x_location;
- float last_x_location;
- float threshold_slope;
- long selection;
- zoom_minX = minX;
- zoom_maxX = maxX;
- save_values();
- _set_device_status(0xFF,0);
- _set_all_resp_code(0);
- _set_xmtr_device_status(0xFF,0);
- _set_xmtr_all_resp_code(0);
- _MenuDisplay(18059,literal_string(20),literal_string(1530));
- if (selection != 0)
- {
- process_abort();
- }
- curve_selection = curve1_select;
- requested_runtime = echo_runtimes[curve_selection];
- save_values();
- send_trans(224,0,status);
- if (status[0] == 2)
- {
- ACKNOWLEDGE(literal_string(1521));
- process_abort();
- }
- DELAY_TIME(1);
- success = 0;
- for (i = 1; i <= 3; i++)
- {
- send(225,status);
- if (status[0] == 0)
- {
- save_values();
- success = 1;
- i = 4;
- }
- DELAY_TIME(1);
- }
- if (!success)
- {
- if (status[0] == 10)
- {
- ACKNOWLEDGE(literal_string(1522));
- _add_abort_method(18081);
- }
- else
- {
- ACKNOWLEDGE(literal_string(1523));
- }
- for (i = 0; i < 350; i++)
- {
- curve1Xvalues[i] = minX;
- priadjyvalues[i] = -100.0;
- curve2Xvalues[i] = minX;
- secadjyvalues[i] = -100.0;
- }
- process_abort();
- }
- if (CurveEndIndex == 0)
- {
- ACKNOWLEDGE(literal_string(1524));
- for (i = 0; i < 350; i++)
- {
- curve1Xvalues[i] = minX;
- priadjyvalues[i] = -100.0;
- curve2Xvalues[i] = minX;
- secadjyvalues[i] = -100.0;
- }
- process_abort();
- }
- if (CurveEndIndex > 1399)
- {
- CurveEndIndex = 1399;
- }
- switch (level_units)
- {
- case 47:
- conv_to_units = 0.03937;
- break;
- case 48:
- conv_to_units = 0.1;
- break;
请登录以获得完整内容