Loading…

Method Name: ejx_method_sp_trim

Method ID: 0x4132

Method Label: Static Pres trim

Method Help: Static pressure trim- Executes full sensor trim with zero point adjustment by Lower Pt and span adjustment by Upper Pt.


  • {
  • int choice;
  • float tmp;
  • long var_id[2];
  • char status[3];
  • { _set_all_resp_code(0); _set_device_status(0xFF,0); _set_xmtr_device_status(0xFF,0); _set_xmtr_all_resp_code(0); };
  • while( 1 ) {
  • choice = SELECT_FROM_LIST("|en|Select trim mode","|en|Off;Auto, Lower Pt;Auto, Upper Pt;Manual, Lower Pt;Manual, Upper Pt" );
  • if( (1 <= choice)&&(choice <= 4) ) {
  • _iassign(16557,(choice ));
  • send_command( 169 );
  • switch( choice ) {
  • case 1:
  • tmp = _fvar_value(16563);
  • break;
  • case 2:
  • tmp = _fvar_value(16562);
  • break;
  • case 3:
  • tmp = _fvar_value(16565);
  • break;
  • case 4:
  • tmp = _fvar_value(16564);


Please login for more