OSDN Git Service

dc6e3b387f2b6b53407bae9e6c5fd9b68c01159c
[vem/vem.git] / doc / vemapi.txt
1 ## vemapi(REST API)の使い方メモ
2
3
4 # 全パラメーターを返す
5 # /:emname/get
6
7 例:
8 http://localhost:9090/fei/get
9
10 返り値
11 {"x":0,"y":1,"z":1,"a":1,"spotSizeIndex":0,"MagIndex":0}
12
13 # ステージ移動(絶対座標指定)
14 # /:emname/set/stagea
15 parameters x, y, z, a
16
17 例:
18 http://localhost:9090/fei/set/stagea?x=1&&y=0&&z=2&&a=0
19
20 返り値:
21 {"x”:"1","y”:"0","z”:"2","a”:"0"}
22
23
24 # ステージ移動(相対座標指定)
25 # /:emname/set/stager
26 parameters x, y, z, a
27
28 例:
29 http://localhost:9090/fei/set/stager?x=1&&y=0&&z=2&&a=0
30
31 返り値:
32 {"x”:"1","y”:"0","z”:"2","a”:"0"}
33
34
35 # スポットサイズ指定(絶対値)
36 # /:emname/set/spotsizea
37 parameters sps
38
39 例:
40 http://localhost:9090/fei/set/spotsizea?sps=3
41
42 返り値:
43 {"spotSizeIndex":"3"}
44
45 # スポットサイズ指定(相対値)
46 # /:emname/set/spotsizer
47 parameters sps
48
49 例:
50 http://localhost:9090/fei/set/spotsizer?sps=3
51
52 返り値:
53 {"spotSizeIndex":"3"}
54
55
56 # 倍率設定(絶対値)
57 # /:emname/set/magnificationa
58 parameters mag
59
60 例:
61 http://localhost:9090/fei/set/magnificationa?mag=1
62
63 返り値:
64 {"magIndex":"1"}
65
66 # 倍率設定(相対値)
67 # /:emname/set/magnificationr
68 parameters mag
69
70 例:
71 http://localhost:9090/fei/set/magnificationr?mag=1
72
73 返り値:
74 {"magIndex":"1"}
75
76
77 # フォーカス設定(相対値)
78 # /:emname/set/defocusr
79 parameters defocus
80
81 例:
82 http://localhost:9090/fei/set/defocusr?defocus=1
83
84 返り値:
85 {"defocus":"1"}
86
87
88 # フォーカスリセット
89 # /:emname/set/reset_defocus
90 parameters なし
91
92 例:
93 http://localhost:9090/fei/set/reset_defocus
94
95 返り値:
96 {"defocus":"1"}
97
98
99 # 撮影条件の設定(ビニング, 露光時間, 画像サイズ)
100 # /:emname/set/acq_init
101 parameters bng, exp, size
102
103 例:
104 http://localhost:9090/fei/set/acq_init?bng=2&&exp=0.25&&size=0
105
106 ビニング  :bng 1, 2, 4
107 露光時間  :exp 1:0.25:0.07(推奨)
108 画像サイズ:size 0, 1, 2 (0:full,1:half,2:quarter)
109
110 # 撮影
111 # /:emname/acq
112
113 例:
114 http://localhost:9090/fei/acq
115
116 返り値:
117 画像の2次元配列