Loading…

Method Name: ejx_method_pres_trim

Method ID: 0x4162

Method Label: Pres trim

Method Help: 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(16554,(choice ));
  • send_command( 168 );
  • switch( choice ) {
  • case 1:
  • tmp = _fvar_value(6004);
  • break;
  • case 2:
  • tmp = _fvar_value(6006);
  • break;
  • case 3:
  • tmp = _fvar_value(16399);
  • break;
  • case 4:
  • tmp = _fvar_value(16400);


Please login for more