User manual
150
7.3 Rules of Protocol Building
There are a few rules on how the scripts operate.
1) If the large check box on the left is checked, the Run, Loop, AvgLoop, Delay and Sweep will be run;
otherwise they wont.
a) By unclicking the large check box on the Loop or AvgLoop, the Loop will run to the bottom and
exit.
b) Unclicking the large check box for the Run, Delay and Sweep will not cause them to be
prematurely terminated but they will not be run next time through.
2) The edit field on the right is for NumberOfLoops for Loop and AvgLoop, and for Seconds for Sweep
and Delay.
3) Changes to the Run/Loop/Sweep/Delay large check box, the NumberOfLoops edit field or the
Sweeps/Delay Seconds edit field must be made at least 5 seconds before the action is to take
place for the Digidata 132x boards, and at least 0.5 seconds before with the National Instruments
M or X-Series boards. This is because of the large 5 second output buffer in the Digidata 132x (3
seconds) and in WinLTP itself (2 seconds), and a 0.5 sec output buffer in the NI M or X-Series
boards. For the Digidata boards, you have to plan ahead a bit.
4) Changing the NumberOfLoops edit field causes an immediate change in the number of loops that
will be run. If the new number of loops is greater than the number of loops already run, the loops
will continue up to the new number of loops. If the new number of loops is less than the number of
loops already run, the loop structure will be exited after the last line in the loop has been run.
5) Changing the Seconds edit field for Sweeps and Delay while in the Sweeps/Delay period will not
cause an immediate change in the Sweep or Delay period, but the change will occur when the
next Sweep or Delay period is entered. If you want to immediately change the Sweep or Delay
period, put a Delay Period in a Loop (see Fig. 7.4.2.1).
7.4 Examples of Circular Scripting
The figures in this section show some protocol building ideas.
In most examples AD0 records S0 output and AD1 records S1 output. (This is because S0 is
DigitalOut0 and is plugged into AnalogIn0, S1 is DigitalOut1 and is plugged into AnalogIn1. P0sweep
usually has S0 single pulse stimulation, P1sweep usually has S1 single pulse stimulation, T0sweep
usually as S0 train stimulation, and T1sweep usually as S1 train stimulation.)