Data interaction method of data acquisition card based on M-file system function
A data acquisition card and system function technology, applied in general control systems, control/adjustment systems, instruments, etc., can solve the problem that the data acquisition card does not support SIMULINK mode to collect signals, etc., to achieve a clear structure and process, and a wide range of applications Effect
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
specific Embodiment approach 1
[0022] The data acquisition method of the data acquisition card based on the M file system function of the present embodiment, when utilizing the data acquisition card hardware to obtain analog or digital data, the simulation control method is realized by the following steps:
[0023] Step 1, the main function calls the initialization sub-function (Flag=0) of the module itself, and enters the system function initialization stage; and increases the verification matching sub-function to verify whether the acquisition card hardware parameters match the software description;
[0024] Step 2. The main function calls the calculation output sub-function (Flag=3) to carry out continuous and real-time collection of data in the external actual environment, and calls the bottom verification matching sub-function of the acquisition card to determine the correct data in the data collected in step 1, and outputs To the Simulink environment, carry out the signal acquisition cycle stage;
[0...
specific Embodiment approach 2
[0026] Different from the specific embodiment 1, the data acquisition method of the data acquisition card based on the M file system function of the present embodiment, the process of the system function initialization stage described in step 1 is,
[0027] Step 11. The main function calls the initialization sub-function of the module itself to initialize the system function parameters, and determine the initial conditions of the system function: the type of the system function is continuous type or discrete type or one of the two mixed types, and the number of input and output of the system function , and whether the system function is through;
[0028] Straight-through means: the system function has an input u, and the output of the system function is a function of the input. For example, if the output is sys and the input is u, then sys=f(u).
[0029] Depend on Figure 4 It is known that there is no input u in the data collection process, so the system function of data co...
specific Embodiment approach 3
[0032] The difference from specific embodiment 1 or 2 is that, in the data acquisition method of the data acquisition card based on the M file system function of the present embodiment, the process of the signal acquisition cycle stage described in step 2 is,
[0033] Step 21, the main function calls the calculation output sub-function (Flag=3) to carry out continuous and real-time acquisition of signals, and adopts the method of calling the bottom layer of the acquisition card to verify the matching sub-function to judge whether the collected data is correct; if not, remove The read signal, if so, use the read signal for the next step;
[0034] Step 22, confirm step 21 as the correct read signal, and output it to the Simulink environment;
[0035] Step two and three, the main function calls the state update sub-function (Flag=2), updates the acquisition signal in real time, and updates the discrete state quantities of the system main function.
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 