Network Commands

The basics of how to control the microscope over the network have been described here.

Over time, a number of other commands have been added to facilitate the control of Scanbox remotely.  Here is an up-to-date list of network commands.  If there are others you need just let us know.


File storage:

A<string>
Set animal ID to <string>

E<NNN>
Set ROI field to <NNN> (typically a number, but it can be a string too)

U<NNN>
Set the experiment field to <NNN> (typically a number, otherwise do not use autoincrement)

D<string>
Set the base data directory to <string>


Knobby:

Z
Programatically press the Zero button (XYZ) in Knobby

P<ax><val>
Moves the microscope. <ax> is ‘x’, ‘y’ or ‘z’, and determines which axis is moved . <val> is the signed value in micrometers that you want to move by.  Example ‘Px-50’  Use with knobby in super-fine setting.

O
Move the microscope to the origin (0,0,0)


Microscope control

G
Start scanning

S
Stop scanning

m<char>
Set the port camera mirror on or off (‘0’ or ‘1’)

L<char>
If char is ‘0’ it blanks the laser, otherwise it turns it on.  Used to blank laser between trials in long experiments.

T<string>
Sets the optotune slider to the value represented by <string>

M<string>
Appends <string> to the message panel

C
Clear the message panel


SLM stimulation

r<NNN>
Set SLM disk radius to NNN’

p<NNN>
Set SLM stimulation time to NNN msec.

l<NNN>
Set SLM laser power (slider) to NNN (value between 0 and 5).

h
Compute SLM phase

i<N>
Select cell #N to be ready for SLM stimulation

s Stimulate using current SLM parameters


Note: All commands should be terminated by ‘LF’