@@params[:stage][:a] = @@tem.Stage.Position.A
@@params[:ill][:spotSizeIndex] = @@tem.Illumination.SpotsizeIndex
@@params[:proj][:magIndex] = @@tem.Projection.MagnificationIndex
- # @@params[:ccdCamera][:binning] = ccdCamerasAcqParams.Binning
- # @@params[:ccdCamera][:expTime] = ccdCamerasAcqParams.ExposureTime
- # @@params[:ccdCamera][:imageSize] = ccdCamerasAcqParams.ImageSize
+ # @@params[:ccdCamera][:binning] = ccdCamerasAcqParams.Binning
+ # @@params[:ccdCamera][:expTime] = ccdCamerasAcqParams.ExposureTime
+ # @@params[:ccdCamera][:imageSize] = ccdCamerasAcqParams.ImageSize
return @@params.to_json
end
return @@params[:stage].to_json
end
- def set_spotsize(spsize)
- puts "FEI setSpotSize"
+ def set_spotsizeA(spsize)
+ puts "FEI setSpotSizeA"
+
+ ill = @@tem.Illumination
+ ill.SpotsizeIndex = spsize
+ @@params[:ill][:spotSizeIndex] = ill.SpotsizeIndex
+ return @@params[:ill].to_json
+ end
+
+ def set_spotsizeR(spsize)
+ puts "FEI setSpotSizeR"
ill = @@tem.Illumination
ill.SpotsizeIndex = ill.SpotsizeIndex + spsize
@@params[:ill][:spotSizeIndex] = ill.SpotsizeIndex
- return @@params[:ill][:spotSizeIndex].to_json
+ return @@params[:ill].to_json
+ end
+
+
+ def set_magnificationA(magsize)
+ puts "FEI setMagnificationA"
+
+ proj = @@tem.Projection
+ proj.MagnificationIndex = magsize
+ @@params[:proj][:magIndex] = proj.MagnificationIndex
+ return @@params[:proj].to_json
end
- def set_magnification(magsize)
- puts "FEI setMagnification"
+ def set_magnificationR(magsize)
+ puts "FEI setMagnificationR"
proj = @@tem.Projection
proj.MagnificationIndex = proj.MagnificationIndex + magsize
@@params[:proj][:magIndex] = proj.MagnificationIndex
- return @@params[:proj][:magIndex]
+ return @@params[:proj].to_json
end
def acquisition_init(binning, exp_time, image_size)
@@params[:stage][:y] = @@tem.Stage.Position.Y
@@params[:stage][:z] = @@tem.Stage.Position.Z
@@params[:stage][:a] = @@tem.Stage.Position.A
- @@params[:ill][:spotSizeIndex] = ill.SpotsizeIndex
- @@params[:proj][:magIndex] = proj.MagnificationIndex
- @@params[:ccdCamera][:binning] = ccdCamerasAcqParams.Binning
- @@params[:ccdCamera][:expTime] = ccdCamerasAcqParams.ExposureTime
- @@params[:ccdCamera][:imageSize] = ccdCamerasAcqParams.ImageSize
+ @@params[:ill][:spotSizeIndex] = @@tem.Illumination.SpotsizeIndex
+ @@params[:proj][:magIndex] = @@tem.Projection.MagnificationIndex
+ # @@params[:ccdCamera][:binning] = ccdCamerasAcqParams.Binning
+ # @@params[:ccdCamera][:expTime] = ccdCamerasAcqParams.ExposureTime
+ # @@params[:ccdCamera][:imageSize] = ccdCamerasAcqParams.ImageSize
return @@params.to_json
end
ill = @@tem.Illumination
ill.SpotsizeIndex = ill.SpotsizeIndex + spsize
@@params[:ill][:spotSizeIndex] = ill.SpotsizeIndex
- return @@params[:ill][:spotSizeIndex].to_json
+ return @@params[:ill].to_json
end
def set_magnification(magsize)
proj = @@tem.Projection
proj.MagnificationIndex = proj.MagnificationIndex + magsize
@@params[:proj][:magIndex] = proj.MagnificationIndex
- return @@params[:proj][:magIndex]
+ return @@params[:proj].to_json
end
def acquisition_init(binning, exp_time, image_size)
@@vem.set_stageR(1, 0, 0, 0)
end
- def test_set_spotsize
- @@vem.set_spotsize(1)
+ def test_set_spotsizeA
+ @@vem.set_spotsizeA(10)
+ end
+
+ def test_set_spotsizeR
+ @@vem.set_spotsizeR(1)
end
def test_acq_init
test.test_get_params
test.test_set_stageA
test.test_set_stageR
-test.test_set_spotsize
+test.test_set_spotsizeA
+test.test_set_spotsizeR
test.test_acq_init
test.test_acq
class TEST
def initialize
- @@vem = VEM.create("mock")
+ @@vem = VEM.create("fei")
end
def test_get_params
class VEM
def self.create (inst)
- if inst == "hitachi" then
- HITACHIControl.new()
- elsif inst == "fei" then
- FEIControl.new()
- elsif inst == "jeol" then
- JEOLControl.new()
- elsif inst == "mock" then
- MockControl.instance
- end
- end
+ if inst == "hitachi" then
+ HITACHIControl.new()
+ elsif inst == "fei" then
+ FEIControl.new()
+ elsif inst == "jeol" then
+ JEOLControl.new()
+ elsif inst == "mock" then
+ MockControl.instance
+ end
+ end
- def initialize
- end
+ def initialize
+ end
- def get_params
- end
+ def get_params
+ end
- def set_stageA(x, y, z, a)
- end
+ def set_stageA(x, y, z, a)
+ end
- def set_stageR(x, y, z, a)
- end
+ def set_stageR(x, y, z, a)
+ end
- def set_spotsize(spsize)
- end
+ def set_spotsizeA(spsize)
+ end
- def set_magnification(magsize)
- end
+ def set_spotsizeR(spsize)
+ end
- def acquisition_init
- end
+ def set_magnificationA(magsize)
+ end
- def acquisition
- end
+ def set_magnificationR(magsize)
+ end
- def set_obj(params)
- end
+ def acquisition_init
+ end
- def set_beamtilt(params)
- end
+ def acquisition
+ end
- def set_speed(params)
- end
+ def set_obj(params)
+ end
+
+ def set_beamtilt(params)
+ end
+
+ def set_speed(params)
+ end
end
if inst == "hitachi" then
HITACHIControl.new()
elsif inst == "fei" then
- FEIControl.instance
+ FEIControl.new()
elsif inst == "jeol" then
JEOLControl.new()
elsif inst == "mock" then