Blame view

html/Oscilloscope/CH2/4_Vdiv/cmd_volt_div.php 440 Bytes
c825216f   lwadbled   feat(main.php): R...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
  <?php
  	/* Commande Volts/DIV CH2 */	
  	if(array_key_exists('c2_vdiv',$_POST)){
  		$div=$_POST["c2_vdiv"];
  		shell_exec('lxi scpi -a '.$adresse.' "c2:vdiv '.$div.'"');
  	}
  	if(strpos($c2u,"A")!=false){
  		shell_exec('lxi scpi -a '.$adresse.' "c2:unit V"');
  		$vdiv2=shell_exec('lxi scpi -a '.$adresse.' "c2:vdiv?"');
  		shell_exec('lxi scpi -a '.$adresse.' "c2:unit A"');
  	}else{
  		$vdiv2=shell_exec('lxi scpi -a '.$adresse.' "c2:vdiv?"');
  	}
  ?>