LabVIEW-based dynamic link library calling method

A dynamic link library and function call technology, applied in the direction of multi-programming devices, etc., can solve problems such as not being good at it, and the underlying operation ability is not strong, so as to achieve the effect of increasing functions and improving efficiency

Active Publication Date: 2015-04-22
BEIJING INST OF RADIO METROLOGY & MEASUREMENT
View PDF3 Cites 6 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, LabVIEW also has deficiencies, such as not being good at completing a large amount

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
  • LabVIEW-based dynamic link library calling method
  • LabVIEW-based dynamic link library calling method
  • LabVIEW-based dynamic link library calling method

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0055] Embodiment 1: An example of calling a dynamic link library of a programmable multi-axis controller card selection device

[0056] The function of the programmable multi-axis controller card to select the device is PmacSelect(), and its prototype function is long PmacSelect(HWND hwnd); the configuration method of calling the dynamic link library of Pcomm32.dll through LabVIEW is as follows image 3 shown. After the G language code design of LabVIEW is completed, the PmacSelect function that can be used by LabVIEW will be generated, and its sub-function is PS. The specific function content is as follows Figure 4 shown.

Embodiment 2

[0057] Embodiment 2: An example of calling the dynamic link library of the programmable multi-axis controller card to open the device

[0058] The function of the programmable multi-axis controller card to open the device is OpenPmacDevice(), and its prototype function is BOOL OpenPmacDevice(DWORD dwDevice); the configuration method of calling the dynamic link library of Pcomm32.dll through LabVIEW is as follows Figure 5 shown. After the G language code design of LabVIEW is completed, the OpenPmacDevice function that can be used by LabVIEW will be generated, and its sub-function is OPD. The specific function content is as follows: Figure 6 shown.

Embodiment 3

[0059] Embodiment 3: An example of calling a dynamic link library of a programmable multi-axis controller card control device

[0060] The function of the programmable multi-axis controller card to control the device is PmacGetControlResponseA(), and its prototype function is long PmacGetControlResponseA(DWORD dwDevice, PCHAR response, UINT maxchar, CHAR ctl_char); it calls the configuration method of the dynamic link library of Pcomm32.dll through LabVIEW Such as Figure 7 shown. After the G language code design of LabVIEW is completed, the PmacGetControlResponseA function that can be used by LabVIEW is generated, and its sub-function is OPD. The specific function content is as follows Figure 8 shown.

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 LabVIEW-based dynamic link library calling method. The method comprises the steps of determining the position and function prototype of a dynamic link library (DLL) file and function parameters and types; selecting a function calling mode; utilizing call library function (CLF) node in a LabVIEW for extracting a function in the DLL file; configuring the function in the DLL file based on standards of the LabVIEW; inputting a called function name, and obtaining a formal parameter type and a returned value type of the functions configured based on the LabVIEW; connecting the CLF node with an attribute node corresponding to the data type node, and completing the code design utilizing the LabVIEW. According to the technical scheme, a CLF is used for calling dynamic link library functions generated by other languages in the LabVIEW, so that the work which the LabVIEW cannot complete is completed, and the program development efficiency is improved.

Description

technical field [0001] The invention relates to a dynamic link calling method. More specifically, it relates to a calling method of a dynamic link library based on the graphical programming language LabVIEW. Background technique [0002] A dynamic link library is an executable code and data module connected at runtime. It is an important part of the Microsoft Windows system operating system. It is a special and widely used function library. Although the dynamic link library DLL is not an exe file, it is a Windows executable file. A DLL consists of executable modules that provide data, code, and resources to a process. Unlike statically linked libraries that are used at compile time, dynamic linked libraries are independent of the executable that activates them, and address translations for calls are resolved at load time. Compared with the static link library, no matter how many programs are designed by the dynamic link library, there is only one copy of the DLL in the me...

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/46
Inventor 杨金涛马永光
Owner BEIJING INST OF RADIO METROLOGY & MEASUREMENT
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