I have to do an experiment with 1000 stimuli, which can be stopped and when I reopen it, to restart at the same point where I stopped it.
I have some leads but my problem comes from what is the good syntax for inline scripts in order to do that correctly ?
For the moment, my idea is to create an external file containing the number of trial (N) already done. Then, when I restart it, it reads the external file and go directly to the trial N and so on.
For now, I have some piece of code like that :
# "pointeur" is the N of trials already done
dim pointeur as integer filename = "name of the file containing 'pointeur'" open filename For input As #1 input #1,pointeur close #1 #here we save the 'pointeur' filename = "name of the file containing 'pointeur'" open filename For output Access Write Lock Write As #1 print #1,pointeur close #1 #here is the loop for when you restart the experiment dim j as integer dim filename as string filename = "name of the file containing 'pointeur'"" open filename For input As #1 j=0 Do j=j+1 input #1, Loop Until j = pointeur close #1
I can't make it work since I'm not really sure of where I should put these inline scripts and even if I miss something.
It would be great to have some help here...
Thanks in advance.
Please sign in to leave a comment.