Blame view

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