macro microfluidic automation

example macro demonstrating automation with XY linear positioner (USB interface)

# Init the table
alias table,/dev/ttyUSB0
setTTY table@57600
#serWrite table !cal
serWrite table !dim 1 1 1
serWrite table !vel 0.6

# Init the pipette
AllOff
SetPON(400)
SetPOFF(20)
SetVSwitch(-110)
SetVRecirc1(-100)
SetVRecirc2(-100)

# Dispense sequence left
Oper
sleep 10
solution 2
sleep 30
solution 3
sleep 30
solution 2
sleep 30
Stby

# Movement right
serWrite table !mor -2000 0 0
sleep 5

# Dispense right
Oper
sleep 10
solution 2
sleep 30
solution 3
sleep 30
solution 2
sleep 30
Stby

# Movement left
serWrite table !mor 2000 0 0
sleep 5

# Dispense sequence left
Oper
sleep 10
solution 2
sleep 30
solution 3
sleep 30
solution 2
sleep 30
AllOff