Method for calling structure body function in dynamic link library based on LabVIEW

A technology of dynamic link library and structure, applied in the direction of inter-program communication, multi-program device, etc., can solve the problem of function execution error, interaction and so on

Active Publication Date: 2020-04-28
HUIZHOU DESAY SV AUTOMOTIVE
View PDF8 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] The present invention provides a kind of method based on LabVIEW calling the structure body function in the dynamic link library, the technical problem solved is, the dynamic link library of the function that the parameter that LabVIEW language can'...

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
  • Method for calling structure body function in dynamic link library based on LabVIEW
  • Method for calling structure body function in dynamic link library based on LabVIEW
  • Method for calling structure body function in dynamic link library based on LabVIEW

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0028] The embodiment of the present invention will be explained in detail below in conjunction with the accompanying drawings. The examples given are only for the purpose of illustration, and cannot be interpreted as limiting the present invention. The accompanying drawings are only for reference and description, and do not constitute the scope of patent protection of the present invention. limitations, since many changes may be made in the invention without departing from the spirit and scope of the invention.

[0029] The embodiment of the present invention provides a method for calling the structure function in the dynamic link library based on LabVIEW, such as figure 1 The flow chart of the steps shown and figure 2 The workflow diagram, in the present embodiment, described method comprises steps:

[0030] S1. Judging that the function variable contains a structure or a pointer to a structure, enter the next step;

[0031] S2. Determine whether the structure variable co...

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 relates to the technical field of LabVIEW function calling. The invention particularly discloses a method for calling a structure body function in a dynamic link library based on LabVIEW. The method includes the steps: when the LabVIEW calls the function with the structural body or a structural body pointer in the dynamic link library, further judging whether an array exists in a corresponding structural body variable or not, if yes, defining data types except the array according to a function prototype, decomposing the array meeting a decomposition condition, converting the decomposed array into a corresponding cluster, and directly converting other arrays into clusters; and further binding the defined data types into a cluster variable according to a sequence, finally setting the parameter type of the cluster variable to be matched to type, setting the data format to be value-based processing, and ending calling.

Description

technical field [0001] The invention relates to the technical field of LabVIEW function calling, in particular to a method for calling a structure function in a dynamic link library based on LabVIEW. Background technique [0002] LabVIEW (Laboratory Virtual instrument Engineering Workbench) is a graphical programming language development environment, which is widely accepted by industry, academia and research laboratories as a standard data acquisition and instrument control software. [0003] In order to facilitate the combination of external codes, LabVIEW integrates controls for dynamic link library (. scalability and ease of use. [0004] When using the dynamic link library generated by the C language, because the functions in the C language will frequently use concepts such as pointers and structures, and the corresponding LabVIEW language does not involve the function of creating pointers and structures, so how to Interacting with C-generated dlls that take functions...

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
IPC IPC(8): G06F9/54
CPCG06F9/54Y02P90/02
Inventor 黄伟杰
Owner HUIZHOU DESAY SV AUTOMOTIVE
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products