Pro I: Digital-I/O- and Counter Modules
Pro-Storage Rev. A
ADwin
150
ADwin-Pro
Hardware, manual version 2.9, June 2006
Use the storage medium
Measurement p
data process
In a measurement process you can use the storage medium in the
ADwin
sys-
tem as provider of data or as data memory. The measurement process should
not, if possible, access the storage medium itself, so that the process can be
processed as usual and as fast as before. Therefore you additionally require
a low-priority data process, which serves as "data messenger" between the
storage medium and the high-priority measurement process.
The additional data process leads you to the following tasks:
– extend the measurement process
Insert into your measurement process (mp) the control of data process
(dp) and the data transfer as additional tasks.
Use 2 global fields for information exchange between mp and dp:
• Field 1 for the data transfer
• Field 2 for the control of the data process
– create the data process
We provide a standard process as dp, which writes data to storage me-
dia. The text below describes how to adapt the standard saving process
to your needs.
Generally, the dp is based on the simple data structure and manage-
ment, which is already installed on the storage medium.
– adjust the timing of processes
The fact that 2 (or more) processes are running synchronously, requires
that you coordinate the timing characteristics of these processes, so that
the tasks of the MP and the data flow can run without any interruption.
Preferably you will adapt the cycle times (globaldelay) of both processes
to one another.
If you want develop an own write or read process, please pay attention to the
rules of importance on
.
Standard saving process (SP)
The standard saving process (SP) gets data via a FIFO array (
DATA_199
) from
a high-priority measurement process (MP) and writes it into a specified file of
the storage medium. The MP controls functions of the SP using an additional
global array (
DATA_198
), and vice versa receives status messages.
To use the saving process, proceed as follows:
Determine basic
parameters
1. Determine the basic parameters:
• Number (1…10) of the destination file.
The SP works only with one of the 10 files. The SP determines the
file information of the destination file only once during the start pro-
cess.
• Write mode "Append" or "New":
Upon restart the SP may either overwrite the destination file or ap-
pend the data to the end of file.
Messprozess
(MP)
Speicher-
prozess (SP)
Speicher-
medium
Daten
Daten
Steuerung
Status
DATA_198
DATA_198
DATA_199
DATA_199
Daten