12 @tcp_port = FEI_TCP_PORT
13 @ip_address = FEI_IP_ADDRESS
14 @port = TCPSocket.new(@ip_address, @tcp_port)
21 :method => "stagesetA",
29 socket = TCPSocket.open("192.168.4.129", 2000)
30 socket.puts send_buf.to_json
31 result = socket.gets.chomp
32 arr = result.split(" ")
42 return current_buf.to_json
50 def magnification(data)
57 :method => "spotsize",
58 :spotsize => data["sp"]
61 socket = TCPSocket.open("192.168.4.129", 2000)
62 socket.puts send_buf.to_json
63 result = socket.gets.chomp
66 :method => "spotsize",
70 return current_buf.to_json
73 def Brightnesset(data)
74 puts "FEI Brightnesset"
91 socket = TCPSocket.open("192.168.4.129", 2000)
92 socket.puts send_buf.to_json
93 result = socket.gets.chomp
96 :method => "spotsize",
100 return current_buf.to_json