KMS-310/400 Supervisor's Manual
6-13
Now we assume that we are at a measurement site and the script executes the
measurement routine. The MATRIXWRITE: command is optional, but it allows the
script to be stopped without losing accumulated data. If it is not done after the
MATRIXSET: command, you must do it after the loops are finished and before the
MATRIXCLOSE: command. The MATRIXWRITE: command sends the data to the
DOS location called out in the MATRIXOPEN: command. In the following example,
the result is stored in the measure register #0.
//:PUT MEASUREMENT INTO LINE MATRIX
RESULT:0 V61
MATRIXSET:V60 V90 V50 V61
MATRIXWRITE:V60 "C:\300LC\LINE.MTX"
The other measurements (space and pitch) are coded exactly as the previous code set,
with different matrix handles and filenames.
You can also change the value of a matrix location by using the MATRIXSET:
command. This command is similar to the MATRIXVALUE: command, except it
outputs the variable into the matrix location instead of reading it into a variable. (Keep
in mind that, at this point, it is not saved to the disk yet).
To save a matrix file created or modified with MATRIXSET:, execute the
MATRIXWRITE command. This writes the matrix in memory to the file indicated with
the MATRIXOPEN: command.
The following example code block illustrates the LOOP: structure, as well as the final
MATRIXCLOSE: block that releases the “handle” variables and the memory back to the
pool.
//:SMALL LOOP COUNTER
MATH:V51=V50<10
Do 10 small loops for each
iteration
LOOP:V51 Y_REPEAT
of the large loop
//:LARGE LOOP COUNTER
MATH:V91=V90<10
Repeat the LARGE loop 10 times
LOOP:V91 X_REPEAT
MATRIXCLOSE:V60
Close and release the memory
allocated
MATRIXCLOSE:V70
to the three matrix files used
for output.
MATRIXCLOSE:V80
EXIT:
Once this sample script is finished, there will be three matrix files in the C:\300LC
directory. Each of these files will be a 10x10 CSV format file with data series in
columns and ready for export.
Содержание KMS-310
Страница 10: ...Contents viii...
Страница 11: ...About This Manual Intended Audience Manual Organization Conventions Contacting Technical Support 1...
Страница 33: ...System Overview Product Overview Subsystem Overview Functional Overview 3...
Страница 51: ...User Interface Overview Software Controls Software Organization 4...
Страница 53: ...KMS 310 400 Supervisor s Manual 4 3 Figure 4 1 Key Software Elements 1 2 3 4 5 6 7 1 2 3 4 5 6 7...
Страница 119: ...Creating Automated Scripts Overview Script Creation Script Locator Script Commands 6...
Страница 219: ...Operation Overview Access and Exit the Supervisor s Menu Set up a Program Measure Manage Measurement Data 7...
Страница 266: ...7 48 Chapter 7 Operation...
Страница 267: ...Maintenance Overview Lamp Replacement and Alignment Stage Maintenance Electronics Cabinet Maintenance System Cleaning 8...
Страница 292: ...8 26 Chapter 8 Maintenance...
Страница 293: ...Error Messages System Error Messages Script Error Messages 9...
Страница 297: ...Glossary...
Страница 304: ...I 4 Index...