Blame view

html/Oscilloscope/CH1/4_Vdiv/cmd_volt_div.php 439 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 CH1 */
  	if(array_key_exists('c1_vdiv',$_POST)){
  		$div=$_POST["c1_vdiv"];
  		shell_exec('lxi scpi -a '.$adresse.' "c1:vdiv '.$div.'"');
  	}
  	if(strpos($c1u,"A")!=false){
  		shell_exec('lxi scpi -a '.$adresse.' "c1:unit V"');
  		$vdiv1=shell_exec('lxi scpi -a '.$adresse.' "c1:vdiv?"');
  		shell_exec('lxi scpi -a '.$adresse.' "c1:unit A"');
  	}else{
  		$vdiv1=shell_exec('lxi scpi -a '.$adresse.' "c1:vdiv?"');
  	}
  ?>