AO SERIES | INSTRUCTIONS MANUAL
30
4.3 TCP Communication
The adaptive lens functions can be integrated directly, without using the AOL0223X libraries (.dll).
The parameters that have to set for starting the communication by TCP can be found in the the
AOL0223X libraries (the .h and the example.cpp files are available on the Opto Engineering website).
In the following table the commands list is shown:
Command
Description
String (request)
Allowed
input values
Response
(return value)
Lens Enable
Turn on the adaptive lens /cgi-bin/enable_ctr
-
If valid:
1
If invalid:
-1
Lens Disabl
e
Turn off the adaptive len
s /cgi-bin/disable_ctr
-
If valid:
0
If invalid:
-1
Set Output Voltage
Actuate the piezoelectric
with the specified
percentage focusing
power value
/cgi-bin/set_output_voltage:
FOCUS
FOCUS (%)
:
- Min: 0
- Max: 100
f valid:
FOCUS (%)
If invalid:
-1
Get Output Voltag
e
Get the actual focusing
power valu
e
/cgi-bin/get_current_voltage
-
If valid:
FOCUS (%)
If invalid:
-1
Set focusing power
value in the test loop
Set percentage focusing
power value in position n
of the test loop
/cgi-bin/load_voltage_
CH: FOCUS
CH:
From A to E
FOCUS (%)
:
- Min: 0
- Max: 100
If valid:
FOCUS (%)
If invalid:
-1
Get focusing power
value from the test
loop
Get the actual percentage
focusing power value
of the position n of the
test loop
/cgi-bin/get_voltage_loop_
CH
CH
:
From A to E
If valid:
FOCUS (%)
If invalid:
-1
Reset the test loop
position n
Reset the percentage
focusing power value
of the position n of the
test loop
/cgi-bin/reset_voltage_
CH
CH
:
From A to E
If valid:
0
Test loop enable
Enable the automatic test
loop procedure with the
specified time interval
period
/cgi-bin/Calibration_Loop_Enable:
TIME
TIME (ms)
:
- Min: 10
- Max: 10000
If valid value:
TIME (ms)
If invalid:
-1
Test loop disable
Disable the automatic
test loop procedure
/cgi-bin/calibration_loop_disable
-
f valid:
0
Get time loop period
Get the time interval
of the test loop
procedure (equal to the
rest time before changing
the focusing power of
the following position of
the loop)
/cgi-bin/get_time_loop
-
If valid:
TIME (ms)
Set output trigger
duration time
Set the duration time
of the trigger out
synchronization signal
/cgi-bin/set_trigger_out:
TIME
TIME (ms)
:
- Min: 1
- Max: 1000
If valid:
TIME (ms)
If invalid:
-1
Get output trigger
duration time
Get the duration time
of the trigger out
synchronization signal
/cgi-bin/get_trigger_out
-
If valid:
TIME (ms)
If invalid:
-1