Loading…

Method Name: digital_tuning

Method ID: 0x406B

Method Label: Digital Tuning

Method Help:


  • {
  • int rc;
  • int dig_mode;
  • int digital_setpoint_variable;
  • int digital_setpoint_default_zero;
  • int digital_setpoint_default_span;
  • int calibrated;
  • int number_of_tries;
  • char status[3];
  • char xmtr_status[25];
  • char disp_string1[60];
  • int slen1;
  • slen1 = 60;
  • digital_setpoint_default_zero = 0;
  • digital_setpoint_default_span = 65535;
  • _add_abort_method(16506);
  • _set_all_resp_code(0);
  • dig_mode = _ivar_value(16408);
  • calibrated = 0;
  • _iassign(16415,0x02);
  • ACKNOWLEDGE(literal_string(345));
  • if (!dig_mode)
  • {
  • _iassign(16408,1);
  • send(131,status);
  • if (status[0])
  • {
  • display_response_status(131,status[0]);
  • _get_dictionary_string(19726342,disp_string1,slen1);
  • DELAY(2,disp_string1);
  • process_abort();
  • }
  • else
  • {
  • DELAY(2,literal_string(305));
  • _add_abort_method(16508);
  • }
  • }
  • do {
  • switch (rc = SELECT_FROM_LIST(literal_string(346),literal_string(347)))
  • {
  • case 0:
  • _iassign(16418,digital_setpoint_default_zero);
  • digital_setpoint_variable = digital_setpoint_default_zero;
  • send(134,status);
  • if (status[0])
  • {
  • display_response_status(134,status[0]);
  • _get_dictionary_string(19726342,disp_string1,slen1);
  • DELAY(2,disp_string1);
  • process_abort();
  • }
  • do {
  • switch (rc = SELECT_FROM_LIST(literal_string(355),literal_string(356)))
  • {
  • case 0:
  • if (((digital_setpoint_variable += 3277) & 65535) < 3277)
  • {
  • digital_setpoint_variable = 65535;
  • DELAY(2,literal_string(357));
  • }
  • else
  • DELAY(2,literal_string(358));
  • break;
  • case 1:
  • if (((digital_setpoint_variable += 655) & 65535) < 655)
  • {


Please login for more