diff --git a/html/Captures/.bmp b/html/Captures/.bmp new file mode 100644 index 0000000..2b205de Binary files /dev/null and b/html/Captures/.bmp differ diff --git a/html/Captures/Siglent_SDS1102CML_SDS1MEBX2R2090_6_01_01_19.bmp b/html/Captures/Siglent_SDS1102CML_SDS1MEBX2R2090_6_01_01_19.bmp new file mode 100644 index 0000000..6bad338 Binary files /dev/null and b/html/Captures/Siglent_SDS1102CML_SDS1MEBX2R2090_6_01_01_19.bmp differ diff --git a/html/Captures/Siglent_SDS1102CML_SDS1MHEQ4R3490_6_01_01_21R2.bmp b/html/Captures/Siglent_SDS1102CML_SDS1MHEQ4R3490_6_01_01_21R2.bmp new file mode 100644 index 0000000..9769cd0 Binary files /dev/null and b/html/Captures/Siglent_SDS1102CML_SDS1MHEQ4R3490_6_01_01_21R2.bmp differ diff --git a/html/Captures/Siglent_Technologies_SDG1032X_SDG1XCAX3R0874_1_01_01_33R1.bmp b/html/Captures/Siglent_Technologies_SDG1032X_SDG1XCAX3R0874_1_01_01_33R1.bmp new file mode 100644 index 0000000..733278f Binary files /dev/null and b/html/Captures/Siglent_Technologies_SDG1032X_SDG1XCAX3R0874_1_01_01_33R1.bmp differ diff --git a/html/Generateur/Fonctions/Burst/cmd_burst.php b/html/Generateur/Fonctions/Burst/cmd_burst.php new file mode 100644 index 0000000..6a2cc74 --- /dev/null +++ b/html/Generateur/Fonctions/Burst/cmd_burst.php @@ -0,0 +1,7 @@ + diff --git a/html/Generateur/Fonctions/Burst/form_burst.php b/html/Generateur/Fonctions/Burst/form_burst.php new file mode 100644 index 0000000..bb9fefe --- /dev/null +++ b/html/Generateur/Fonctions/Burst/form_burst.php @@ -0,0 +1,24 @@ + + + +
+ + +
+ diff --git a/html/Generateur/Fonctions/Channel/cmd_channel.php b/html/Generateur/Fonctions/Channel/cmd_channel.php new file mode 100644 index 0000000..86615fc --- /dev/null +++ b/html/Generateur/Fonctions/Channel/cmd_channel.php @@ -0,0 +1,7 @@ + diff --git a/html/Generateur/Fonctions/Channel/form_channel.php b/html/Generateur/Fonctions/Channel/form_channel.php new file mode 100644 index 0000000..5690a91 --- /dev/null +++ b/html/Generateur/Fonctions/Channel/form_channel.php @@ -0,0 +1,7 @@ + + +
+ + +
+ diff --git a/html/Generateur/Fonctions/Mod/cmd_mod.php b/html/Generateur/Fonctions/Mod/cmd_mod.php new file mode 100644 index 0000000..5749b48 --- /dev/null +++ b/html/Generateur/Fonctions/Mod/cmd_mod.php @@ -0,0 +1,7 @@ + diff --git a/html/Generateur/Fonctions/Mod/form_mod.php b/html/Generateur/Fonctions/Mod/form_mod.php new file mode 100644 index 0000000..599ea00 --- /dev/null +++ b/html/Generateur/Fonctions/Mod/form_mod.php @@ -0,0 +1,7 @@ + + +
+ + +
+ diff --git a/html/Generateur/Fonctions/Parameter/cmd_parameter.php b/html/Generateur/Fonctions/Parameter/cmd_parameter.php new file mode 100644 index 0000000..74c81ab --- /dev/null +++ b/html/Generateur/Fonctions/Parameter/cmd_parameter.php @@ -0,0 +1,7 @@ + diff --git a/html/Generateur/Fonctions/Parameter/form_parameter.php b/html/Generateur/Fonctions/Parameter/form_parameter.php new file mode 100644 index 0000000..66dd870 --- /dev/null +++ b/html/Generateur/Fonctions/Parameter/form_parameter.php @@ -0,0 +1,7 @@ + + +
+ + +
+ diff --git a/html/Generateur/Fonctions/Sweep/cmd_sweep.php b/html/Generateur/Fonctions/Sweep/cmd_sweep.php new file mode 100644 index 0000000..da2d571 --- /dev/null +++ b/html/Generateur/Fonctions/Sweep/cmd_sweep.php @@ -0,0 +1,7 @@ + diff --git a/html/Generateur/Fonctions/Sweep/form_sweep.php b/html/Generateur/Fonctions/Sweep/form_sweep.php new file mode 100644 index 0000000..40980d5 --- /dev/null +++ b/html/Generateur/Fonctions/Sweep/form_sweep.php @@ -0,0 +1,7 @@ + + +
+ + +
+ diff --git a/html/Generateur/Fonctions/Utility/cmd_utility.php b/html/Generateur/Fonctions/Utility/cmd_utility.php new file mode 100644 index 0000000..5e5953c --- /dev/null +++ b/html/Generateur/Fonctions/Utility/cmd_utility.php @@ -0,0 +1,7 @@ + diff --git a/html/Generateur/Fonctions/Utility/form_utility.php b/html/Generateur/Fonctions/Utility/form_utility.php new file mode 100644 index 0000000..3aa21f8 --- /dev/null +++ b/html/Generateur/Fonctions/Utility/form_utility.php @@ -0,0 +1,7 @@ + + +
+ + +
+ diff --git a/html/Generateur/Fonctions/Waves/cmd_waves.php b/html/Generateur/Fonctions/Waves/cmd_waves.php new file mode 100644 index 0000000..efa4afa --- /dev/null +++ b/html/Generateur/Fonctions/Waves/cmd_waves.php @@ -0,0 +1,7 @@ + diff --git a/html/Generateur/Fonctions/Waves/form_waves.php b/html/Generateur/Fonctions/Waves/form_waves.php new file mode 100644 index 0000000..479b695 --- /dev/null +++ b/html/Generateur/Fonctions/Waves/form_waves.php @@ -0,0 +1,7 @@ + + +
+ + +
+ diff --git a/html/Generateur/Global/Chiffres/cmd_chiffres.php b/html/Generateur/Global/Chiffres/cmd_chiffres.php new file mode 100644 index 0000000..3de6b85 --- /dev/null +++ b/html/Generateur/Global/Chiffres/cmd_chiffres.php @@ -0,0 +1,7 @@ + diff --git a/html/Generateur/Global/Chiffres/form_chiffres.php b/html/Generateur/Global/Chiffres/form_chiffres.php new file mode 100644 index 0000000..0002dd6 --- /dev/null +++ b/html/Generateur/Global/Chiffres/form_chiffres.php @@ -0,0 +1,84 @@ + + + + +
+
+
+
+ + +
+
+ + +
+
+ + +
+
+
+
+
+ + +
+
+ + +
+
+ + +
+
+
+
+
+ + +
+
+ + +
+
+ + +
+
+
+
+
+ + +
+
+ + +
+
+ + +
+
+
+
+ diff --git a/html/Generateur/Global/Fleches/cmd_fleches.php b/html/Generateur/Global/Fleches/cmd_fleches.php new file mode 100644 index 0000000..6f35def --- /dev/null +++ b/html/Generateur/Global/Fleches/cmd_fleches.php @@ -0,0 +1,7 @@ + diff --git a/html/Generateur/Global/Fleches/form_fleches.php b/html/Generateur/Global/Fleches/form_fleches.php new file mode 100644 index 0000000..6a9725b --- /dev/null +++ b/html/Generateur/Global/Fleches/form_fleches.php @@ -0,0 +1,13 @@ + + +
+
+ + +
+
+ + +
+
+ diff --git a/html/Generateur/Global/Knob/btn_knob_generateur.png b/html/Generateur/Global/Knob/btn_knob_generateur.png new file mode 100644 index 0000000..c183400 Binary files /dev/null and b/html/Generateur/Global/Knob/btn_knob_generateur.png differ diff --git a/html/Generateur/Global/Knob/cmd_knob.php b/html/Generateur/Global/Knob/cmd_knob.php new file mode 100644 index 0000000..ef351e6 --- /dev/null +++ b/html/Generateur/Global/Knob/cmd_knob.php @@ -0,0 +1,7 @@ + diff --git a/html/Generateur/Global/Knob/form_knob.php b/html/Generateur/Global/Knob/form_knob.php new file mode 100644 index 0000000..5533f16 --- /dev/null +++ b/html/Generateur/Global/Knob/form_knob.php @@ -0,0 +1,36 @@ + + + +
+
+
+ + +
+
+ + +
+
+ + +
+
+
+ diff --git a/html/Generateur/Menus/Func1/cmd_func1.php b/html/Generateur/Menus/Func1/cmd_func1.php new file mode 100644 index 0000000..caa8e77 --- /dev/null +++ b/html/Generateur/Menus/Func1/cmd_func1.php @@ -0,0 +1,7 @@ + diff --git a/html/Generateur/Menus/Func1/form_func1.php b/html/Generateur/Menus/Func1/form_func1.php new file mode 100644 index 0000000..720096d --- /dev/null +++ b/html/Generateur/Menus/Func1/form_func1.php @@ -0,0 +1,28 @@ + + + +
+ + +
+ + diff --git a/html/Generateur/Menus/Func2/cmd_func2.php b/html/Generateur/Menus/Func2/cmd_func2.php new file mode 100644 index 0000000..442e34f --- /dev/null +++ b/html/Generateur/Menus/Func2/cmd_func2.php @@ -0,0 +1,7 @@ + diff --git a/html/Generateur/Menus/Func2/form_func2.php b/html/Generateur/Menus/Func2/form_func2.php new file mode 100644 index 0000000..cccc40a --- /dev/null +++ b/html/Generateur/Menus/Func2/form_func2.php @@ -0,0 +1,28 @@ + + +
+ + +
+ + diff --git a/html/Generateur/Menus/Func3/cmd_func3.php b/html/Generateur/Menus/Func3/cmd_func3.php new file mode 100644 index 0000000..b3f0706 --- /dev/null +++ b/html/Generateur/Menus/Func3/cmd_func3.php @@ -0,0 +1,7 @@ + diff --git a/html/Generateur/Menus/Func3/form_func3.php b/html/Generateur/Menus/Func3/form_func3.php new file mode 100644 index 0000000..d1cd3f8 --- /dev/null +++ b/html/Generateur/Menus/Func3/form_func3.php @@ -0,0 +1,27 @@ + + +
+ + +
+ + diff --git a/html/Generateur/Menus/Func4/cmd_func4.php b/html/Generateur/Menus/Func4/cmd_func4.php new file mode 100644 index 0000000..2469fa8 --- /dev/null +++ b/html/Generateur/Menus/Func4/cmd_func4.php @@ -0,0 +1,7 @@ + diff --git a/html/Generateur/Menus/Func4/form_func4.php b/html/Generateur/Menus/Func4/form_func4.php new file mode 100644 index 0000000..518778f --- /dev/null +++ b/html/Generateur/Menus/Func4/form_func4.php @@ -0,0 +1,27 @@ + + +
+ + +
+ + diff --git a/html/Generateur/Menus/Func5/cmd_func5.php b/html/Generateur/Menus/Func5/cmd_func5.php new file mode 100644 index 0000000..81e68ee --- /dev/null +++ b/html/Generateur/Menus/Func5/cmd_func5.php @@ -0,0 +1,7 @@ + diff --git a/html/Generateur/Menus/Func5/form_func5.php b/html/Generateur/Menus/Func5/form_func5.php new file mode 100644 index 0000000..5657193 --- /dev/null +++ b/html/Generateur/Menus/Func5/form_func5.php @@ -0,0 +1,28 @@ + + +
+ + +
+ + diff --git a/html/Generateur/Menus/Func6/cmd_func6.php b/html/Generateur/Menus/Func6/cmd_func6.php new file mode 100644 index 0000000..1891b0d --- /dev/null +++ b/html/Generateur/Menus/Func6/cmd_func6.php @@ -0,0 +1,7 @@ + diff --git a/html/Generateur/Menus/Func6/form_func6.php b/html/Generateur/Menus/Func6/form_func6.php new file mode 100644 index 0000000..123e04a --- /dev/null +++ b/html/Generateur/Menus/Func6/form_func6.php @@ -0,0 +1,28 @@ + + +
+ + +
+ + diff --git a/html/Generateur/Outputs/Output1/cmd_output_1.php b/html/Generateur/Outputs/Output1/cmd_output_1.php new file mode 100644 index 0000000..a943a25 --- /dev/null +++ b/html/Generateur/Outputs/Output1/cmd_output_1.php @@ -0,0 +1,7 @@ + diff --git a/html/Generateur/Outputs/Output1/form_output_1.php b/html/Generateur/Outputs/Output1/form_output_1.php new file mode 100644 index 0000000..70160d6 --- /dev/null +++ b/html/Generateur/Outputs/Output1/form_output_1.php @@ -0,0 +1,7 @@ + + +
+ + +
+ diff --git a/html/Generateur/Outputs/Output2/cmd_output_2.php b/html/Generateur/Outputs/Output2/cmd_output_2.php new file mode 100644 index 0000000..7034ff2 --- /dev/null +++ b/html/Generateur/Outputs/Output2/cmd_output_2.php @@ -0,0 +1,7 @@ + diff --git a/html/Generateur/Outputs/Output2/form_output_2.php b/html/Generateur/Outputs/Output2/form_output_2.php new file mode 100644 index 0000000..8c5917c --- /dev/null +++ b/html/Generateur/Outputs/Output2/form_output_2.php @@ -0,0 +1,7 @@ + + +
+ + +
+ diff --git a/html/Generateur/main_generateur.php b/html/Generateur/main_generateur.php new file mode 100644 index 0000000..010c21c --- /dev/null +++ b/html/Generateur/main_generateur.php @@ -0,0 +1,154 @@ + + + '; + echo '
'; + /* Affichage de la capture d'ecran */ + usleep(90000); /* Utilisation pour un premier screenshot plus propre */ + /* Nom de la capture d'ecran au nom de l'appareil */ + $pic_name[$i] = str_replace(".","_",$Appareil[$i]['nom']); + $pic_name[$i] = str_replace(" ","_",$pic_name[$i]); + $pic_name[$i] = str_replace("+","",$pic_name[$i]); + $pic_name[$i] = str_replace(",","_",$pic_name[$i]).".bmp"; + $pic_name[$i] = 'Captures/'.$pic_name[$i]; + $_SESSION['pic_name'] = $pic_name[$i]; + include(getcwd().'/Scripts/screenshot.php'); /* Execution commande screenshot */ + /* Recuperation du nom du fichier a partir du chemin complet */ + echo "Image de ".$Appareil[$i]["; + echo '
'; + echo '
'; + /* Commandes de l'appareil */ + echo '
'; + echo '

Panel de commande

'; + echo '
'; + echo '
'; + echo ''; + echo ''; + echo '
'; + echo '
'; + ?> + +
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+ + + + + + + + diff --git a/html/Oscilloscope/CH1/1_Trace/cmd_trace.php b/html/Oscilloscope/CH1/1_Trace/cmd_trace.php new file mode 100644 index 0000000..f4600b0 --- /dev/null +++ b/html/Oscilloscope/CH1/1_Trace/cmd_trace.php @@ -0,0 +1,12 @@ + diff --git a/html/Oscilloscope/CH1/1_Trace/form_trace.php b/html/Oscilloscope/CH1/1_Trace/form_trace.php new file mode 100644 index 0000000..6ba27ff --- /dev/null +++ b/html/Oscilloscope/CH1/1_Trace/form_trace.php @@ -0,0 +1,6 @@ + + +
+ +
+ diff --git a/html/Oscilloscope/CH1/2_Attn/cmd_attn.php b/html/Oscilloscope/CH1/2_Attn/cmd_attn.php new file mode 100644 index 0000000..be4add1 --- /dev/null +++ b/html/Oscilloscope/CH1/2_Attn/cmd_attn.php @@ -0,0 +1,8 @@ + diff --git a/html/Oscilloscope/CH1/2_Attn/form_attn.php b/html/Oscilloscope/CH1/2_Attn/form_attn.php new file mode 100644 index 0000000..4e181c6 --- /dev/null +++ b/html/Oscilloscope/CH1/2_Attn/form_attn.php @@ -0,0 +1,24 @@ + + +
+ + +
+ diff --git a/html/Oscilloscope/CH1/3_Unite/cmd_unite.php b/html/Oscilloscope/CH1/3_Unite/cmd_unite.php new file mode 100644 index 0000000..5f2a08d --- /dev/null +++ b/html/Oscilloscope/CH1/3_Unite/cmd_unite.php @@ -0,0 +1,8 @@ + diff --git a/html/Oscilloscope/CH1/3_Unite/form_unite.php b/html/Oscilloscope/CH1/3_Unite/form_unite.php new file mode 100644 index 0000000..1aa019a --- /dev/null +++ b/html/Oscilloscope/CH1/3_Unite/form_unite.php @@ -0,0 +1,10 @@ + + +
+ + +
+ diff --git a/html/Oscilloscope/CH1/4_Vdiv/cmd_volt_div.php b/html/Oscilloscope/CH1/4_Vdiv/cmd_volt_div.php new file mode 100644 index 0000000..0b20ac5 --- /dev/null +++ b/html/Oscilloscope/CH1/4_Vdiv/cmd_volt_div.php @@ -0,0 +1,14 @@ + diff --git a/html/Oscilloscope/CH1/4_Vdiv/form_volt_div.php b/html/Oscilloscope/CH1/4_Vdiv/form_volt_div.php new file mode 100644 index 0000000..ca58d55 --- /dev/null +++ b/html/Oscilloscope/CH1/4_Vdiv/form_volt_div.php @@ -0,0 +1,26 @@ + + + +
+ + +
+ diff --git a/html/Oscilloscope/CH1/5_Couplage/cmd_couplage.php b/html/Oscilloscope/CH1/5_Couplage/cmd_couplage.php new file mode 100644 index 0000000..21a1f9c --- /dev/null +++ b/html/Oscilloscope/CH1/5_Couplage/cmd_couplage.php @@ -0,0 +1,8 @@ + diff --git a/html/Oscilloscope/CH1/5_Couplage/form_couplage.php b/html/Oscilloscope/CH1/5_Couplage/form_couplage.php new file mode 100644 index 0000000..b8b758c --- /dev/null +++ b/html/Oscilloscope/CH1/5_Couplage/form_couplage.php @@ -0,0 +1,11 @@ + + +
+ + +
+ diff --git a/html/Oscilloscope/CH1/6_Filtre/cmd_filtre.php b/html/Oscilloscope/CH1/6_Filtre/cmd_filtre.php new file mode 100644 index 0000000..e5516d3 --- /dev/null +++ b/html/Oscilloscope/CH1/6_Filtre/cmd_filtre.php @@ -0,0 +1,37 @@ +=$limite_sup){ + $limite_inf=$limite_sup-5; + } + shell_exec('lxi scpi -a '.$adresse.' "c1:filts type,'.$c1filts.',upplimit,'.$limite_sup.'MHz,lowlimit,'.$limite_inf.'MHz"'); + } + } + $c1filts=shell_exec('lxi scpi -a '.$adresse.' "c1:filts?"'); +?> diff --git a/html/Oscilloscope/CH1/6_Filtre/form_filtre.php b/html/Oscilloscope/CH1/6_Filtre/form_filtre.php new file mode 100644 index 0000000..fcaae6a --- /dev/null +++ b/html/Oscilloscope/CH1/6_Filtre/form_filtre.php @@ -0,0 +1,72 @@ + + +
+ +
+ "; + if(strpos($c1filts,"LP")!=false){ + echo "
"; + }else if(strpos($c1filts,"HP")!=false){ + echo ""; + }else{ + echo ""; + } + echo '
'; + echo ""; + echo ""; + if(strpos($c1filts,"LP")!=false){ + $limite = strstr($c1filts,"UPPLIMIT"); + $lim_sup=floatval(substr($limite,9,-4)); + echo ''; + echo ''; + echo '
'; + echo 'Fréquence : '.$lim_sup.' MHz'; + echo '
'; + }else if(strpos($c1filts,"HP")!=false){ + $limite = strstr($c1filts,"LOWLIMIT"); + $lim_inf=floatval(substr($limite,9,-4)); + echo ''; + echo ''; + echo '
'; + echo 'Fréquence : '.$lim_inf.' MHz'; + echo '
'; + }else{ + $limite = strstr($c1filts,"UPPLIMIT"); + $lim_sup=floatval(substr($limite,9,-4)); + $limite = strstr($c1filts,"LOWLIMIT"); + $lim_inf=floatval(substr($limite,9,-4)); + echo ''; + echo ''; + echo '
'; + echo 'Fréquence : '.$lim_sup.' MHz'; + echo '
'; + echo ''; + echo ''; + echo '
'; + echo 'Fréquence : '.$lim_inf.' MHz'; + echo '
'; + } + echo '
'; + echo "
"; + }else{ + echo "OFF"; + } + ?> + diff --git a/html/Oscilloscope/CH1/7_Trigger_level/cmd_trig_lvl.php b/html/Oscilloscope/CH1/7_Trigger_level/cmd_trig_lvl.php new file mode 100644 index 0000000..2d1ed30 --- /dev/null +++ b/html/Oscilloscope/CH1/7_Trigger_level/cmd_trig_lvl.php @@ -0,0 +1,8 @@ + diff --git a/html/Oscilloscope/CH1/7_Trigger_level/form_trig_lvl.php b/html/Oscilloscope/CH1/7_Trigger_level/form_trig_lvl.php new file mode 100644 index 0000000..5a0dc93 --- /dev/null +++ b/html/Oscilloscope/CH1/7_Trigger_level/form_trig_lvl.php @@ -0,0 +1,13 @@ + + + +
+ + +
+ Trigger level : V +
+ diff --git a/html/Oscilloscope/CH2/1_Trace/cmd_trace.php b/html/Oscilloscope/CH2/1_Trace/cmd_trace.php new file mode 100644 index 0000000..baeca03 --- /dev/null +++ b/html/Oscilloscope/CH2/1_Trace/cmd_trace.php @@ -0,0 +1,13 @@ + diff --git a/html/Oscilloscope/CH2/1_Trace/form_trace.php b/html/Oscilloscope/CH2/1_Trace/form_trace.php new file mode 100644 index 0000000..1cd0278 --- /dev/null +++ b/html/Oscilloscope/CH2/1_Trace/form_trace.php @@ -0,0 +1,6 @@ + + +
+ +
+ diff --git a/html/Oscilloscope/CH2/2_Attn/cmd_attn.php b/html/Oscilloscope/CH2/2_Attn/cmd_attn.php new file mode 100644 index 0000000..1ead050 --- /dev/null +++ b/html/Oscilloscope/CH2/2_Attn/cmd_attn.php @@ -0,0 +1,8 @@ + diff --git a/html/Oscilloscope/CH2/2_Attn/form_attn.php b/html/Oscilloscope/CH2/2_Attn/form_attn.php new file mode 100644 index 0000000..e4ae5b2 --- /dev/null +++ b/html/Oscilloscope/CH2/2_Attn/form_attn.php @@ -0,0 +1,24 @@ + + +
+ + +
+ diff --git a/html/Oscilloscope/CH2/3_Unite/cmd_unite.php b/html/Oscilloscope/CH2/3_Unite/cmd_unite.php new file mode 100644 index 0000000..6d97ae5 --- /dev/null +++ b/html/Oscilloscope/CH2/3_Unite/cmd_unite.php @@ -0,0 +1,8 @@ + diff --git a/html/Oscilloscope/CH2/3_Unite/form_unite.php b/html/Oscilloscope/CH2/3_Unite/form_unite.php new file mode 100644 index 0000000..a8820a2 --- /dev/null +++ b/html/Oscilloscope/CH2/3_Unite/form_unite.php @@ -0,0 +1,10 @@ + + +
+ + +
+ diff --git a/html/Oscilloscope/CH2/4_Vdiv/cmd_volt_div.php b/html/Oscilloscope/CH2/4_Vdiv/cmd_volt_div.php new file mode 100644 index 0000000..5208e5d --- /dev/null +++ b/html/Oscilloscope/CH2/4_Vdiv/cmd_volt_div.php @@ -0,0 +1,14 @@ + diff --git a/html/Oscilloscope/CH2/4_Vdiv/form_volt_div.php b/html/Oscilloscope/CH2/4_Vdiv/form_volt_div.php new file mode 100644 index 0000000..6e1c1e7 --- /dev/null +++ b/html/Oscilloscope/CH2/4_Vdiv/form_volt_div.php @@ -0,0 +1,26 @@ + + + +
+ + +
+ diff --git a/html/Oscilloscope/CH2/5_Couplage/cmd_couplage.php b/html/Oscilloscope/CH2/5_Couplage/cmd_couplage.php new file mode 100644 index 0000000..dd88220 --- /dev/null +++ b/html/Oscilloscope/CH2/5_Couplage/cmd_couplage.php @@ -0,0 +1,8 @@ + diff --git a/html/Oscilloscope/CH2/5_Couplage/form_couplage.php b/html/Oscilloscope/CH2/5_Couplage/form_couplage.php new file mode 100644 index 0000000..42d21f4 --- /dev/null +++ b/html/Oscilloscope/CH2/5_Couplage/form_couplage.php @@ -0,0 +1,11 @@ + + +
+ + +
+ diff --git a/html/Oscilloscope/CH2/6_Filtre/cmd_filtre.php b/html/Oscilloscope/CH2/6_Filtre/cmd_filtre.php new file mode 100644 index 0000000..25ef700 --- /dev/null +++ b/html/Oscilloscope/CH2/6_Filtre/cmd_filtre.php @@ -0,0 +1,36 @@ +=$limite_sup){ + $limite_inf=$limite_sup-5; + } + shell_exec('lxi scpi -a '.$adresse.' "c2:filts type,'.$c2filts.',upplimit,'.$limite_sup.'MHz,lowlimit,'.$limite_inf.'MHz"'); + } + } + $c2filts=shell_exec('lxi scpi -a '.$adresse.' "c2:filts?"'); +?> diff --git a/html/Oscilloscope/CH2/6_Filtre/form_filtre.php b/html/Oscilloscope/CH2/6_Filtre/form_filtre.php new file mode 100644 index 0000000..f00989a --- /dev/null +++ b/html/Oscilloscope/CH2/6_Filtre/form_filtre.php @@ -0,0 +1,72 @@ + + +
+ +
+ "; + if(strpos($c2filts,"LP")!=false){ + echo "
"; + }else if(strpos($c2filts,"HP")!=false){ + echo ""; + }else{ + echo ""; + } + echo '
'; + echo ""; + echo ""; + if(strpos($c2filts,"LP")!=false){ + $limite = strstr($c2filts,"UPPLIMIT"); + $lim_sup=floatval(substr($limite,9,-4)); + echo ''; + echo ''; + echo '
'; + echo 'Fréquence : '.$lim_sup.' MHz'; + echo '
'; + }else if(strpos($c2filts,"HP")!=false){ + $limite = strstr($c2filts,"LOWLIMIT"); + $lim_inf=floatval(substr($limite,9,-4)); + echo ''; + echo ''; + echo '
'; + echo 'Fréquence : '.$lim_inf.' MHz'; + echo '
'; + }else{ + $limite = strstr($c2filts,"UPPLIMIT"); + $lim_sup=floatval(substr($limite,9,-4)); + $limite = strstr($c2filts,"LOWLIMIT"); + $lim_inf=floatval(substr($limite,9,-4)); + echo ''; + echo ''; + echo '
'; + echo 'Fréquence : '.$lim_sup.' MHz'; + echo '
'; + echo ''; + echo ''; + echo '
'; + echo 'Fréquence : '.$lim_inf.' MHz'; + echo '
'; + } + echo '
'; + echo "
"; + }else{ + echo "OFF"; + } + ?> + diff --git a/html/Oscilloscope/CH2/7_Trigger_level/cmd_trig_lvl.php b/html/Oscilloscope/CH2/7_Trigger_level/cmd_trig_lvl.php new file mode 100644 index 0000000..90ced24 --- /dev/null +++ b/html/Oscilloscope/CH2/7_Trigger_level/cmd_trig_lvl.php @@ -0,0 +1,8 @@ + diff --git a/html/Oscilloscope/CH2/7_Trigger_level/form_trig_lvl.php b/html/Oscilloscope/CH2/7_Trigger_level/form_trig_lvl.php new file mode 100644 index 0000000..1e1bb0c --- /dev/null +++ b/html/Oscilloscope/CH2/7_Trigger_level/form_trig_lvl.php @@ -0,0 +1,13 @@ + + + +
+ + +
+ Trigger level : V +
+ diff --git a/html/Oscilloscope/Curseurs/1_Choix/cmd_choix.php b/html/Oscilloscope/Curseurs/1_Choix/cmd_choix.php new file mode 100644 index 0000000..0917232 --- /dev/null +++ b/html/Oscilloscope/Curseurs/1_Choix/cmd_choix.php @@ -0,0 +1,8 @@ + diff --git a/html/Oscilloscope/Curseurs/1_Choix/form_choix.php b/html/Oscilloscope/Curseurs/1_Choix/form_choix.php new file mode 100644 index 0000000..c01ba39 --- /dev/null +++ b/html/Oscilloscope/Curseurs/1_Choix/form_choix.php @@ -0,0 +1,11 @@ + + +
+ + +
+ diff --git a/html/Oscilloscope/Curseurs/2_Affichage_curseurs/cmd_affichage_curseurs.php b/html/Oscilloscope/Curseurs/2_Affichage_curseurs/cmd_affichage_curseurs.php new file mode 100644 index 0000000..83c10b3 --- /dev/null +++ b/html/Oscilloscope/Curseurs/2_Affichage_curseurs/cmd_affichage_curseurs.php @@ -0,0 +1,50 @@ + diff --git a/html/Oscilloscope/Curseurs/2_Affichage_curseurs/form_affichage_curseurs.php b/html/Oscilloscope/Curseurs/2_Affichage_curseurs/form_affichage_curseurs.php new file mode 100644 index 0000000..7eef0b3 --- /dev/null +++ b/html/Oscilloscope/Curseurs/2_Affichage_curseurs/form_affichage_curseurs.php @@ -0,0 +1,78 @@ + + + '; + echo '
'; + if(strpos($trace_c1,"ON")!=false or strpos($trace_c2,"ON")!=false){ + echo ''; + echo ''; + } + echo ''; + echo ''; + echo '
'; + echo 'Division : '.$valueA.''; + echo '
'; + /* Curseur B */ + echo ''; + echo ''; + echo '
'; + echo 'Division : '.$valueB.''; + echo '
'; + echo '
'; + echo ''; + }else if(strpos($crms,"VREL")!=false){ + $valueA=floatval(substr($vrelA,13)); + $valueB=floatval(substr($vrelB,13)); + /* Curseur A */ + echo '
'; + echo '
'; + if(strpos($trace_c1,"ON")!=false or strpos($trace_c2,"ON")!=false){ + echo ''; + echo ''; + } + echo ''; + echo ''; + echo '
'; + echo 'Division : '.$valueA.''; + echo '
'; + /* Curseur B */ + echo ''; + echo ''; + echo '
'; + echo 'Division : '.$valueB.''; + echo '
'; + echo '
'; + echo '
'; + } + ?> + diff --git a/html/Oscilloscope/Global/1_Mode_acqw/cmd_acqw.php b/html/Oscilloscope/Global/1_Mode_acqw/cmd_acqw.php new file mode 100644 index 0000000..0f08033 --- /dev/null +++ b/html/Oscilloscope/Global/1_Mode_acqw/cmd_acqw.php @@ -0,0 +1,14 @@ + diff --git a/html/Oscilloscope/Global/1_Mode_acqw/form_acqw.php b/html/Oscilloscope/Global/1_Mode_acqw/form_acqw.php new file mode 100644 index 0000000..3724bdc --- /dev/null +++ b/html/Oscilloscope/Global/1_Mode_acqw/form_acqw.php @@ -0,0 +1,38 @@ + + +
+ + +
+ '; + echo ''; + echo ''; + echo ''; + } + ?> + diff --git a/html/Oscilloscope/Global/2_Cmd/cmd_run_stop_aset.php b/html/Oscilloscope/Global/2_Cmd/cmd_run_stop_aset.php new file mode 100644 index 0000000..a3b0ba0 --- /dev/null +++ b/html/Oscilloscope/Global/2_Cmd/cmd_run_stop_aset.php @@ -0,0 +1,14 @@ + diff --git a/html/Oscilloscope/Global/2_Cmd/form_run_stop_aset.php b/html/Oscilloscope/Global/2_Cmd/form_run_stop_aset.php new file mode 100644 index 0000000..3f07203 --- /dev/null +++ b/html/Oscilloscope/Global/2_Cmd/form_run_stop_aset.php @@ -0,0 +1,8 @@ + + +
+ + + +
+ diff --git a/html/Oscilloscope/Global/3_Trigger/cmd_trigger_mode.php b/html/Oscilloscope/Global/3_Trigger/cmd_trigger_mode.php new file mode 100644 index 0000000..5a46743 --- /dev/null +++ b/html/Oscilloscope/Global/3_Trigger/cmd_trigger_mode.php @@ -0,0 +1,8 @@ + diff --git a/html/Oscilloscope/Global/3_Trigger/form_trigger_mode.php b/html/Oscilloscope/Global/3_Trigger/form_trigger_mode.php new file mode 100644 index 0000000..cb3f554 --- /dev/null +++ b/html/Oscilloscope/Global/3_Trigger/form_trigger_mode.php @@ -0,0 +1,12 @@ + + +
+ + +
+ diff --git a/html/Oscilloscope/Global/4_Temps_par_div/cmd_temps_div.php b/html/Oscilloscope/Global/4_Temps_par_div/cmd_temps_div.php new file mode 100644 index 0000000..9f5415a --- /dev/null +++ b/html/Oscilloscope/Global/4_Temps_par_div/cmd_temps_div.php @@ -0,0 +1,9 @@ + diff --git a/html/Oscilloscope/Global/4_Temps_par_div/form_temps_div.php b/html/Oscilloscope/Global/4_Temps_par_div/form_temps_div.php new file mode 100644 index 0000000..df5d665 --- /dev/null +++ b/html/Oscilloscope/Global/4_Temps_par_div/form_temps_div.php @@ -0,0 +1,40 @@ + + +
+ + +
+ diff --git a/html/Oscilloscope/Global/5_Menu/cmd_menu.php b/html/Oscilloscope/Global/5_Menu/cmd_menu.php new file mode 100644 index 0000000..9cf02b0 --- /dev/null +++ b/html/Oscilloscope/Global/5_Menu/cmd_menu.php @@ -0,0 +1,10 @@ + diff --git a/html/Oscilloscope/Global/5_Menu/form_menu.php b/html/Oscilloscope/Global/5_Menu/form_menu.php new file mode 100644 index 0000000..094e959 --- /dev/null +++ b/html/Oscilloscope/Global/5_Menu/form_menu.php @@ -0,0 +1,7 @@ + + +
+ + +
+ diff --git a/html/Oscilloscope/main_oscilloscope.php b/html/Oscilloscope/main_oscilloscope.php new file mode 100644 index 0000000..06580d4 --- /dev/null +++ b/html/Oscilloscope/main_oscilloscope.php @@ -0,0 +1,74 @@ + + + '; + echo '
'; + /* Affichage de la capture d'ecran */ + usleep(90000); /* Utilisation pour un premier screenshot plus propre */ + /* Nom de la capture d'ecran au nom de l'appareil */ + $pic_name[$i] = str_replace(".","_",$Appareil[$i]['nom']); + $pic_name[$i] = str_replace(" ","_",$pic_name[$i]); + $pic_name[$i] = str_replace("+","",$pic_name[$i]); + $pic_name[$i] = str_replace(",","_",$pic_name[$i]).".bmp"; + $pic_name[$i] = 'Captures/'.$pic_name[$i]; + $_SESSION['pic_name'] = $pic_name[$i]; + include(getcwd().'/Scripts/screenshot.php'); /* Execution commande screenshot */ + /* Recuperation du nom du fichier a partir du chemin complet */ + echo "Image de ".$Appareil[$i]["; + echo '
'; + echo '
'; + /* Commandes de l'appareil */ + echo '
'; + echo '

Panel de commande

'; + echo '
'; + echo '
'; + echo ''; + echo ''; + echo '
'; + echo '
'; + echo ''; + ?> + diff --git a/html/Scripts/refresh_img.php b/html/Scripts/refresh_img.php new file mode 100644 index 0000000..653b4a0 --- /dev/null +++ b/html/Scripts/refresh_img.php @@ -0,0 +1,26 @@ + + diff --git a/html/Scripts/screenshot.php b/html/Scripts/screenshot.php new file mode 100644 index 0000000..3e035ad --- /dev/null +++ b/html/Scripts/screenshot.php @@ -0,0 +1,20 @@ + alert('Probleme screenshot') "; + echo ""; + } +?> diff --git a/html/bdd.json b/html/bdd.json new file mode 100644 index 0000000..1d33305 --- /dev/null +++ b/html/bdd.json @@ -0,0 +1,10 @@ +[ + { + "name": "SDS1102CML+", + "appareil": "Oscilloscope" + }, + { + "name": "SDG1032X", + "appareil": "Generateur" + } +] diff --git a/html/decouvre.php b/html/decouvre.php new file mode 100644 index 0000000..4ffc7a9 --- /dev/null +++ b/html/decouvre.php @@ -0,0 +1,142 @@ + + + + Choix appareil + + + + + + + +
+ +
+
+ +
+ +
+
+ =5){ + $nom = $tableau[1]; + /* Verification du type de l'appareil */ + $type = ""; + include(getcwd().'/type_appareil.php'); + if($type!=""){ + $Types[$nb] = $type; + $Devices[$nb] = $nom; + $Adresses[$nb] = $mots[count($mots)-1]; + $nb++; + } + } + $txt = substr($txt,-(strlen($txt)-$i)); /* On enlève la phrase que l'on vient d'afficher au texte de base pour afficher d'autres phrases */ + unset($phrase); + } + /* Affichage sous forme de tableau */ + echo "
"; + echo ""; + echo ""; + echo ""; + echo ""; + echo ""; + echo ""; + echo ""; + echo ""; + echo ""; + echo ""; + for($i=0;$i<=$nb-1;$i++){ /* On affiche tous les appareils trouvés en enlevant la derniere ligne qui correspond au nombre d'appareils trouvés */ + $infos = $Devices[$i].'$'.$Types[$i].'$'.$Adresses[$i]; + echo ""; + echo ""; + echo ""; + echo ""; + echo ""; + } + echo ""; + echo "
ChoixNom de l'appareilType d'appareilAdresse IP
".$Devices[$i]."".$Types[$i]."".$Adresses[$i]."
"; + /* Bouton d'envoie des donnees de l'appareil choisi */ + echo ""; + echo '
'; + echo "
"; + } + ?> + + + + diff --git a/html/index.html b/html/index.html new file mode 100644 index 0000000..3c9e510 --- /dev/null +++ b/html/index.html @@ -0,0 +1,36 @@ + + + + + Page principale + + + + +
+

Appuyez pour rechercher les appareils utilisables

+
+ +
+
+ + +
+ + + + diff --git a/html/main.php b/html/main.php new file mode 100644 index 0000000..85eafac --- /dev/null +++ b/html/main.php @@ -0,0 +1,124 @@ + + + + + Commande Appareil + + + + + +
+ +

+ +
+ +

+
+ "; + echo "Nom : ".$nom."
"; + echo "Adresse : ".$adresse."
"; + echo 'Type : '.$type.'
'; + echo "
"; + $Appareil[$number-1]['nom'] = $nom; + $Appareil[$number-1]['type'] = $type; + $Appareil[$number-1]['adresse'] = $adresse; + } + }else if(isset($_SESSION['App'])){ + $number = 0; + $App = $_SESSION['App']; + foreach($App as $element){ + $number++; + $donnees=explode("$",$element); + $nom = $donnees[0]; + $type = $donnees[1]; + $adresse = $donnees[2]; + /* Affichage des données de l'appareil (nom,type et adresse IP) */ + echo "Données de l'appareil $number choisi :
"; + echo "Nom : ".$nom."
"; + echo "Adresse : ".$adresse."
"; + echo 'Type : '.$type.'
'; + echo "
"; + $Appareil[$number-1]['nom'] = $nom; + $Appareil[$number-1]['type'] = $type; + $Appareil[$number-1]['adresse'] = $adresse; + } + }else{ + /* Si par erreur on arrive sur cette page : redirection vers la page principale */ + echo "Pas de sélection réalisée, vous allez être redirigé"; + echo ""; + } + if(isset($_GET['tab'])){ + $tab=$_GET['tab']; + }else{ + $tab="Global"; + } + + /* TODO : Noms des variables plus clair */ + for($i=0;$i +
+
+ '; + include($new_form); + echo ''; + } + } + } + for($i=0;$i + + diff --git a/html/type_appareil.php b/html/type_appareil.php new file mode 100644 index 0000000..8955253 --- /dev/null +++ b/html/type_appareil.php @@ -0,0 +1,14 @@ + alert('Appareil non reconnu') "; + echo ""; + } +?> -- libgit2 0.21.2