• Non ci sono risultati.

Control programs listing

N/A
N/A
Protected

Academic year: 2021

Condividi "Control programs listing"

Copied!
5
0
0

Testo completo

(1)

Appendix C

Control programs listing

C1. Deposition tests -

TEST01

Private Sub Command1_Click()

'this sequence commands the linear motor stepper to generate drops MSComm1.CommPort = 1 MSComm1.Settings = "9600,n,8,1" MSComm1.PortOpen = True MSComm1.Output = Chr(Val(passiin.Text)) MSComm1.Output = Chr(Val(vel.Text)) MSComm1.PortOpen = False

PauseTime = Val(pausain.Text) 'routine that makes a pause Start = Timer

Do While Timer < Start + PauseTime Rem DoEvents

Loop

AppActivate "WinPos", True 'activate WinPos to send instructions to the micropositioner PauseTime = 1

Start = Timer

Do While Timer < Start + PauseTime Rem DoEvents

Loop

SendKeys "%c", True 'open move dialogue SendKeys "o", True

SendKeys "%r", True 'set relative shifts

Dim r As Integer

For r = 1 To Val(ripet.Text) 'sequence to repeat starts

AppActivate "Position"

SendKeys "%z", True 'enters the deltaz value SendKeys "-" & deltaz.Text & "{Enter}", True

SendKeys "{BKSP 5}", True 'delete the characters

SendKeys deltaz.Text & "{Enter}", True 'enters the deltaz value to go back SendKeys "{BKSP 5}", True

SendKeys "%y", True 'enters the deltay value SendKeys deltay.Text & "{Enter}", True

SendKeys "{BKSP 5}", True

MSComm1.CommPort = 1

(2)

MSComm1.Output = Chr(Val(passi.Text)) MSComm1.Output = Chr(Val(vel.Text)) MSComm1.PortOpen = False

PauseTime = Val(pausa.Text) Start = Timer

Do While Timer < Start + PauseTime Rem DoEvents

Loop

Next r

MsgBox "finito!", vbInformation, "FINE" Beep

End Sub

Private Sub Command2_Click() End

End Sub

C2. Picking and releasing tests -

TEST03

Private Sub Command1_Click()

AppActivate "WinPos", True 'activate WinPos to send instructions to the micropositioner

PauseTime = 1 'pause

Start = Timer

Do While Timer < Start + PauseTime Rem DoEvents

Loop

SendKeys "%c", True 'open move dialogue SendKeys "o", True

SendKeys "%r", True 'set relative shifts

Dim r As Integer

For r = 1 To Val(ripet.Text) 'sequence to repeat starts

AppActivate "Position"

SendKeys "%z", True '-deltaz

SendKeys "-" & deltaz.Text & "{Enter}", True SendKeys "{BKSP 6}", True

SendKeys deltaz.Text & "{Enter}", True '+deltaz SendKeys "{BKSP 6}", True

SendKeys "%y", True '-deltay

SendKeys "-" & deltay.Text & "{Enter}", True SendKeys "{BKSP 6}", True

(3)

SendKeys "-" & deltax.Text & "{Enter}", True SendKeys "{BKSP 6}", True

SendKeys "%z", True '-deltaz

SendKeys "-" & deltaz.Text & "{Enter}", True SendKeys "{BKSP 6}", True

SendKeys deltaz.Text & "{Enter}", True '+deltaz SendKeys "{BKSP 6}", True

SendKeys "%y", True '+deltay

SendKeys deltay.Text & "{Enter}", True SendKeys "{BKSP 6}", True

SendKeys "%z", True '-deltaz

SendKeys "-" & deltaz.Text & "{Enter}", True SendKeys "{BKSP 6}", True

SendKeys deltaz.Text & "{Enter}", True '+deltaz SendKeys "{BKSP 6}", True

SendKeys "%x", True '+deltax

SendKeys deltax.Text & "{Enter}", True SendKeys "{BKSP 6}", True

SendKeys "%y", True 'shift to pick the following sphere SendKeys passo.Text & "{Enter}", True

SendKeys "{BKSP 6}", True

PauseTime = Val(pausa.Text) ' Imposta la durata. Start = Timer ' Imposta l'ora di inizio.

Do While Timer < Start + PauseTime

Rem DoEvents ' Passa il controllo ad altri processi. Loop MSComm1.CommPort = 1 MSComm1.Settings = "9600,n,8,1" MSComm1.PortOpen = True MSComm1.Output = Chr(Val(passi.Text)) MSComm1.Output = Chr(Val(vel.Text)) MSComm1.PortOpen = False Next r

MsgBox "finito!", vbInformation, "FINE" End Sub

Private Sub Command2_Click() End

(4)

C3. Picking and releasing tests with reduced speed -

TEST05

Private Sub Command1_Click()

AppActivate "WinPos", True PauseTime = 1

Start = Timer

Do While Timer < Start + PauseTime Rem DoEvents

Loop

SendKeys "%c", True SendKeys "o", True SendKeys "%r", True

AppActivate "Position"

SendKeys "%z", True 'water drop deposition SendKeys "-" & deltaz.Text & "{Enter}", True

SendKeys "{BKSP 6}", True

SendKeys deltaz.Text & "{Enter}", True SendKeys "{BKSP 6}", True

SendKeys "%y", True 'to position the syringe S1 over the sphere SendKeys "-" & deltay.Text & "{Enter}", True

SendKeys "{BKSP 6}", True SendKeys "%x", True

SendKeys "-" & deltax.Text & "{Enter}", True SendKeys "{BKSP 6}", True

SendKeys "%z", True 'to pick the sphere SendKeys "-" & deltaz.Text & "{Enter}", True

SendKeys "{BKSP 6}", True

SendKeys deltaz.Text & "{Enter}", True SendKeys "{BKSP 6}", True

SendKeys "%y", True 'to position the sphere over the water drop SendKeys deltay.Text & "{Enter}", True

SendKeys "{BKSP 6}", True

SendKeys "%z", True 'fast movement along z SendKeys "-1" & "{Enter}", True

SendKeys "{BKSP 6}", True

SendKeys "%v", True 'change to low velocity SendKeys "0.1" & "{Enter}", True

sel = Val(deltaz.Text) - 1

SendKeys "%z", True 'slow releasing SendKeys "-" & Str(sel) & "{Enter}", True

SendKeys "{BKSP 6}", True SendKeys "%z", True

(5)

SendKeys "{BKSP 6}", True

SendKeys "%v", True 'change to high velocity SendKeys "3" & "{Enter}", True

SendKeys "{BKSP 6}", True

SendKeys "%z", True 'fast movement along z SendKeys "1" & "{Enter}", True

SendKeys "{BKSP 6}", True MsgBox "finito!", vbInformation, "FINE" End Sub

Private Sub Command2_Click() End

Riferimenti

Documenti correlati

The personalized recommendation of programs is based on the integration of user mod- eling techniques relying on explicit user preferences, stereotypical information about TV

role more central than in the other two procedures. Indeed, in this case, the bank conducts all the steps of the listing and of the share allocation. At the beginning, the

The final rule on Apprenticeship Programs Labor Standards of Registration projected that within the next decade, the total number of IRAPs would increase to 9,063, resulting

The federal government has established two grant programs aimed at supporting state PDMPs: The Harold Rogers PDMP grant, administered by the Department of Justice, and the

We show that reducing the expected fines may induce a pro-collusive reaction: combinations of policy parameters which, without Leniency Programs, would prevent

In this thesis we presented a generic approach to the analysis of multithreaded programs, we applied it to Java programs, we implemented it, and we extended an industrial

Our verification method is an extension to ω-programs of the transformation- based method for proving properties of logic programs on finite terms presented in (Pettorossi and

The development of Sterile Insect Technique (SIT) programs, in combination with both classical and augmentative biological control, is in progress to verify the possibility to