Loading…
Loading…
方法名称: ejx_method_sp_trim
方法ID: 0x4132
方法标签: Static Pres trim
方法描述: 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);
请登录以获得完整内容