5 require './hitachicontrol'
7 require './jeolcontrol'
10 class Vemapi < Sinatra::Base
13 "stagea" => "setStageA",
14 "stager" => "setStager",
15 "spotsize" => "setSpotSize",
16 "magnification" => "setMagnification",
18 "beamtilt" => "setBeamTilt",
27 @@vem = VEM.create("#{params[:emname]}");
28 result = @@vem.__send__("getCondition")
32 get '/:emname/set/:command' do
33 @@vem = VEM.create("#{params[:emname]}");
34 command = "#{params[:command]}"
35 result = @@vem.__send__(@@controls[command], params)
40 Vemapi.run! :host => 'localhost', :port => 9090