Blame view

html/Oscilloscope/CH2/1_Trace/cmd_trace.php 431 Bytes
c825216f   lwadbled   feat(main.php): R...
1
2
3
4
5
6
7
8
9
10
11
12
13
  <?php
  	/* Commande Tracer CH2 */
  	$trace_c2 = shell_exec('lxi scpi -a '.$adresse.' "c2:tra?"');
  	if(array_key_exists('tra_c2',$_POST)){
  		$trace_c2 = shell_exec('lxi scpi -a '.$adresse.' "c2:tra?"');
  		if(strpos($trace_c2,"ON")!=false){
  			shell_exec('lxi scpi -a '.$adresse.' "c2:tra off"');
  		}else{
  			shell_exec('lxi scpi -a '.$adresse.' "c2:tra on"');
  		}
  		$trace_c2 = shell_exec('lxi scpi -a '.$adresse.' "c2:tra?"');
  	}
  ?>