Loading…

方法名称: SalintyCondTrim

方法ID: 0x4071

方法标签: Salinity/Cond. Trim

方法描述: This trim adjusts the Salinity value by means of an entered Conductivity value in mS/cm.


  • {
  • char acStatus[3];
  • char disp_string1[60];
  • int wChoice;
  • int wChoice2;
  • int wRetry;
  • int wRetry2;
  • int slen1;
  • int wUnits;
  • long dwVarId[1];
  • slen1 = 60;
  • wRetry = 0;
  • wRetry2 = 0;
  • disp_string1 ="|en|Please wait.";
  • _set_all_resp_code(0);
  • _set_xmtr_all_resp_code(0);
  • _set_device_status(0xFF,0);
  • _set_xmtr_device_status(0xFF,0);
  • iOneLowFloatIndex = 28;
  • send_command( 137 );
  • wChoice = select_from_list("|en|Change Salinity value from %{rSalinity_ppt} 0/00?", dwVarId,"|en|No;Yes" );
  • if( wChoice == 1 )
  • {
  • do
  • {
  • wRetry2 = 0;
  • wChoice2 = select_from_list("|en|Select the measured value of Conductivity as an integer from 5 to 54 mS/cm. 0 mS/cm = 0 Salinity", dwVarId,"|en|0;5;6;7;8;9;10;"+
  • "|en|11;12;13;14;15;16;17;18;19;20;21;22;23;24;25;26;27;28;29;30;31;32;33;34;35;36;37;38;39;40;42;44;46;48;50;52;54" );
  • switch( wChoice2 )
  • {
  • case 0:
  • rSalinity_ppt = 0;
  • break;
  • case 1:
  • rSalinity_ppt = 3;
  • break;
  • case 2:
  • rSalinity_ppt = 4;
  • break;


请登录以获得完整内容