DAF Loader Internal
DAF/GFAS Loader internal
This information applies to DAFLoader and version 1.16.68.83 and GFASLoader version 1.16.68.7.
This document describes the fundamental code structures used in the table loader/control programs. The structure of the programs are identical at ASTRID (DAFLoader), and MSL (GFASLoader, …).
Class naming: CDAFLoaderDlg óCGFASLoaderDlg, CDAFTable óCGFASTable etc.
Contents:
Other links:
Overview
Class Description
PROGRAM STRUCTURE CLASSES
CDAFLoaderDlg, CGFASLoaderDlg:
Owned classes: CDAFTable, CLoadStatus, CFlattop.
Main responsibilities:
- Maintains the user interface and user interaction.
- Controls the software and hardware timers.
CDAFTable, CGFASTable:
Owned classes: CDAFTableClient, Arrays of function table classes.
Main responsibilities:
- Implements all program logic for loading and executing function tables.
- Store all table data structure
- Read input data from text files
- Methods for calculating download data from input data
- Contains connection to the control system
- Handles download of tables
- Maintains status of the hardware
- Send control signals to the hardware timers-
FUNCTION TABLE DATA CLASSES
These classes store the function table data. The table data are separated into blocks, which each block having the same time axis and pre-processor. This implies that all functions in a block have the same number of vectors in their vector tables.
CHeader
One instance. Store the title of the table, the excel sheet name, and the last modification time.
CBlockData
Contains the common data needed for a block of functions.
Owns: CDafTime class, List of pre-processor classes.
CDAFTime
This class defines the time axis – used by the CVector and CBitEvent classes.
CVector
This class defines the function for a given parameter as a set of vector values. The class has a reference to the CDafTime class that defines the vector time axis. The number of time values in CDafTime must match the number of data values defined in CVector. The vector class also implements the handling of the prepossessing. The preprocessed data is stored in new internal data sets (preprocessed value are and time arrays). When the download data must be downloaded, the actual data to be used for the calculation is obtained by the class methods GetDafTime() and GetDataArray().
CBitEvent
As the CVector class, just for bit events.
OTHER CLASSES
CLoadStatus
Manages the overall table loading status of the DAF loader status (notLoaded, loading , loaded, dataChanged). All download devices/parameter are monitored during download of data.
CFlattop:
Last Modified 19 September 2024