Loading…

Method Name: method_calibrate_sensor

Method ID: 0x40B7

Method Label: Calibrate Sensor

Method Help: Calibrate Sensor


  • {
  • char status[3];
  • char disp_string1[120];
  • char disp_string2[120];
  • int slen;
  • int index;
  • int choice;
  • int choice1;
  • int Value_stabilized;
  • int Zero_gas_ok;
  • int Span_gas_ok;
  • int cal_gas_ok;
  • int target_gas_ok;
  • int Span_choice;
  • int Save_flag;
  • int calibration_step;
  • slen = 60;
  • _set_all_resp_code(0);
  • _set_device_status(0xFF,0);
  • _set_xmtr_all_resp_code(0);
  • _set_xmtr_device_status(0xFF,0);
  • _add_abort_method(4118);
  • disp_string1 ="|en|Select Calibration:";
  • disp_string2 ="|en|Zero;Span";
  • choice = SELECT_FROM_LIST(disp_string1, disp_string2);
  • switch (choice)
  • {
  • case 0:
  • disp_string1 ="|en|Detector is warmup, Please wait";
  • DELAY(2, disp_string1);
  • do
  • {
  • _iassign(16506,(0x00));
  • send(149,status);
  • send(147,status);
  • }
  • while (STATUS_CALIBRATION_STATE == 0x04);
  • disp_string1 ="|en|Zero calibration possible, Please wait";
  • DELAY(2, disp_string1);
  • do
  • {
  • Value_stabilized = 0;
  • do


Please login for more