+
+function setSpotSize(){
+ var setSpotSize = $("#SpotSize").val();
+ $.ajax({
+ type:"GET",
+ url:"http://"+UrlElement['sendIpAddress']+
+ ":"+UrlElement['sendPortNumber']+
+ "/"+UrlElement['sendManufacturer']+
+ "/set/spotsizea?sps="+encodeURIComponent(setSpotSize),
+ success: function(data){
+ console.log(data);
+ }
+ });
+}
+
+function setMagnificationA(){
+ var magnificationA = $("#magnificationA").val();
+ $.ajax({
+ type:"GET",
+ url:"http://"+UrlElement['sendIpAddress']+
+ ":"+UrlElement['sendPortNumber']+
+ "/"+UrlElement['sendManufacturer']+
+ "/set/magnificationa?mag="+encodeURIComponent(magnificationA),
+ success: function(data){
+ console.log(data);
+ }
+ });
+}
+function setMagnificationR(){
+ var magnificationR = $("#magnificationR").val();
+ $.ajax({
+ type:"GET",
+ url:"http://"+UrlElement['sendIpAddress']+
+ ":"+UrlElement['sendPortNumber']+
+ "/"+UrlElement['sendManufacturer']+
+ "/set/magnificationr?mag="+encodeURIComponent(magnificationR),
+ success: function(data){
+ console.log(data);
+ }
+ });
+}
+
+function nowCondition(){
+ var movexr = $("#movex").val();
+ var moveyr = $("#movey").val();
+ var movezr = $("#movez").val();
+ var movea = $("#movea").val();
+ var spotSize = $("#spotSize").val();
+ var exptime = $("#exptime").val();
+ var manufacturer = UrlElement['sendElectronMicroscopeName'];
+ document.getElementById("tem").innerHTML = manufacturer;
+ document.getElementById("currentx").innerHTML = parseInt(movexr);
+ document.getElementById("currenty").innerHTML = parseInt(moveyr);
+ document.getElementById("currentz").innerHTML = parseInt(movezr);
+ document.getElementById("currenta").innerHTML = parseInt(movea);
+ document.getElementById("SpotSizeIndex").innerHTML = parseInt(spotSize);
+ document.getElementById("MagIndex").innerHTML = parseInt(magnificationA);
+
+}