Unlock instant, AI-driven research and patent intelligence for your innovation.

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

Inactive Publication Date: 2015-06-10
HARBIN INST OF TECH
View PDF4 Cites 3 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] The purpose of the present invention is to solve the problem that some existing data acquisition cards do not support SIMULINK mode acquisition signals, and propose a data interaction method based on the M file system function of the data acquisition card

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Data interaction method of data acquisition card based on M-file system function
  • Data interaction method of data acquisition card based on M-file system function
  • Data interaction method of data acquisition card based on M-file system function

Examples

Experimental program
Comparison scheme
Effect test

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.

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a data interaction method of a data acquisition card based on an M-file system function and belongs to the technical field of information processing and modeling and simulation. Some current data acquisition cards don't support to acquire signals by an SIMULINK manner. A data acquisition method of the data acquisition card based on the M-file system function comprises the following steps of initializing the system function; verifying whether hardware parameters of the acquisition card match with software description; continuously and in real time acquiring data in external actual circumstances, invoking verification matching sub-functions to judge out correct data, and outputting the correct data to the SIMULINK circumstances, thereby circularly acquiring the signals and acquiring real-time data of all signals. A data outputting method of the data acquisition card based on the M-file system function comprises the following steps of initializing the system function; verifying whether the hardware parameters of the acquisition card match with software description; continuously and in real time acquiring virtual signals in SIMULINK circumstance by invoking calculation output sub-functions, and invoking acquisition card bottom verification matching sub-functions to judge out the acquired correct data, thereby circularly outputting the signals and outputting the real-time data of all signals.

Description

technical field [0001] The invention relates to a data interaction method of a data acquisition card based on an M file system function. Background technique [0002] MATLAB implements real-time data acquisition methods for data acquisition cards mainly including the DAQ toolbox method, the method of writing function M files, and the S-function method of SIMULINK. [0003] The DAQ (DataAcquisitionToolbox) toolbox provides module libraries that can directly interact with data acquisition hardware. Using these libraries, you can simply acquire analog or digital data. The disadvantage of this method is that it is not universal, that is, some acquisition cards cannot use this method to realize the data acquisition of Matlab. The acquisition of analog or digital data can be easily realized by writing the function M file. The disadvantage of this method is that the collected data can only be displayed in the CommandWindow, which is not convenient for subsequent processing of the...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): G05B17/02
Inventor 丁明理李贤张永强郭明李永强赵永平赵龙
Owner HARBIN INST OF TECH