A simple variant of this program could readily be used to output results rather than data. Please
refer to one of the supplied ‘page programs’ (sizerep1, zetarep1) that display results. The
functions
sizes
and
intensity
that return size classes and contents could easily be used with
file using
rather than
write
for this purpose.
5.1.3
Transferring data by Macro program via the clipboard
First check out the data to send by loading and examining the program DDELINK under the
program editor. (Control -Edit). An example for sending size data is shown below.
‘ Program to Create Data for
‘ copy link
‘ (this program must be saved as DDELINK.PCM)
‘
‘————————————————————
‘
delete string
for i = 1 to numsizes
print string using “####.#\t###.#\r\n”,sizes(i),intensity(i)
next
end
The program sends two columns of numbers, separated by tabs, the second number being
terminated by carriage return/line feed. The first column is the size class, the second the intensity
fraction at that size. It would be very simple to alter, for example, the program to send a ‘number’
distribution, rather than intensity, (by altering
intensity(i)
to
number(i) .
To send correlator channel
data, rather than size results would simply involve incorporating parts of the PCOEX program
used for File generation above, so this method is very flexible.
Having got the program to send the required data, simply press EDIT COPY LINK in the PCS
program. Go to EXCEL (for example) select a range of cells of suitable extent to contain the data
generated by the program above, ( 24 rows of 2 columns, for the example given), and press
Paste Link. The selected space in the spreadsheet should be filled with the appropriate
information. Whenever another calculation is performed in the PCS program, so that the current
record in the LIVE BUFFER is updated, the DDELINK will rerun automatically and the
spreadsheet will update. It should not be necessary to press Paste Link again: This type of link
is referred to as a HOT LINK, since data is transmitted automatically as it is updated.
5.1.4
Remote control by DDE
It is possible to send commands to the PCS program over the DDE. One must establish what is
known as an Execute link between the client and server, the client in this case being the
controlling application, the PCS program the server. An example written in Microsoft Visual Basic
(©Microsoft Ltd). is shown which sends commands typed in by the user. The command is a
recognisable Macro language string. An example would be
corr clear:corr start
, which would
invoke correlator operation.
5.2
Automatic startup
This process is a conceptually very simple one. A Macro program is written and debugged in the
normal way, using Control Edit. When the program is correct it may be assigned as the autorun
program. When the application starts, the program will automatically execute. A typical startup
program might be used to run a validation on the correlator, then relinquish control to the
Advanced Features
MAN 0179
Page 5.5
Artisan Scientific - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisan-scientific.com
Содержание Zetasizer 1000
Страница 11: ...Artisan Scientific Quality Instrumentation Guaranteed 888 88 SOURCE www artisan scientific com...
Страница 16: ...Artisan Scientific Quality Instrumentation Guaranteed 888 88 SOURCE www artisan scientific com...
Страница 34: ...Artisan Scientific Quality Instrumentation Guaranteed 888 88 SOURCE www artisan scientific com...
Страница 38: ...Artisan Scientific Quality Instrumentation Guaranteed 888 88 SOURCE www artisan scientific com...
Страница 116: ...Artisan Scientific Quality Instrumentation Guaranteed 888 88 SOURCE www artisan scientific com...