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

A c# and c++ data interaction method based on numerical control system

A data interaction and numerical control system technology, applied in the direction of electrical digital data processing, program control design, multi-program device, etc., can solve the problem of interface freezing and suspended animation, C# cannot send a large amount of connectivity data, and message function parameters cannot be transmitted for many Various information and other issues to achieve the effect of optimizing resources, increasing fluency, and avoiding control occupation

Active Publication Date: 2022-02-18
GUANGZHOU CORESING ROBOT TECH CO LTD
View PDF2 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0014] The present invention overcomes the deficiencies of the prior art, and provides a data interaction method between C# and C++ based on the numerical control system, which can solve the problem that C# cannot send a large amount of connectivity data to C++, and the problem of interface freezing and suspended animation caused by multiple message queues waiting for execution And solve the problem that the parameters of the message function cannot pass a variety of information

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
  • A c# and c++ data interaction method based on numerical control system
  • A c# and c++ data interaction method based on numerical control system
  • A c# and c++ data interaction method based on numerical control system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0043] The present invention is further described below with reference to the accompanying drawings and specific embodiments:

[0044] refer to figure 2 The C ++ data interaction method based on the CNC system disclosed in this embodiment, its steps include:

[0045]S1 is based on the C ++ language environment, create multiple different class LIST, complete the plurality of the class List to form a linked list by assigning a plurality of the class LIST to the connection connection.

[0046] S2. The linked list completed by step S1 has functions that can increase, delete, insert, and copy the chain table to the non-hosting pointer, using a non-hosting pointer and C ++ for a large amount of information interaction;

[0047] S3. Based on a Windows system, create a UI thread for refreshing and displaying interfaces;

[0048] S4. Create a message queue through the C # language, handle information by operating the message queue, the message queue does not occupy the UI thread, allowing ...

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 C# and C++ data interaction method based on a numerical control system. A directional class List is formed by assigning a value to the class List, and a plurality of directional List classes are connected into a linked list. The linked list can be increased, Functions such as deletion and insertion make the linked list flexible and effectively solve the problem that C# cannot send a large amount of connectivity data to C++; the use of message queues does not occupy the UI thread, freeing the UI thread and allowing the UI thread to only refresh the interface work, increase the fluency of software operation, and effectively wait for the execution of multiple message queues to cause the interface to freeze and freeze; use the parameter wParam or lParam for unmanaged pointers, and then write it into the internal managed memory and read it after receiving the message data, which can effectively solve the problem that the parameters of the message function cannot transmit a variety of information.

Description

Technical field [0001] The present invention relates to the field of data interaction with CNC system, and more particularly to a C # and C ++ data interaction method based on a numerical control system. Background technique [0002] Traditional CNC systems are embedded-based applications, but with the expansion of the development and application of the CNC industry, it is obvious that the embedded system is difficult to meet the growing demand. In order to solve this existing problem introduction and PC-NC mode numerical control system, PC-NC mode has great advantages in graphical programming, concise operation, and has strong scalability, and therefore the numerical control system has developed toward PC-NC mode. It is a big trend. [0003] The software programming of the PC-NC mode has many languages. Currently mainstream programming languages ​​C ++, C #, VB, LabVIEW, etc. can be satisfied and advantageous, and the LabVIEW language is advantageous for the instrument, the cont...

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 Patents(China)
IPC IPC(8): G06F8/30G06F9/54
CPCG06F8/312G06F9/546
Inventor 莫海杰万军杨甘玉轩邱民
Owner GUANGZHOU CORESING ROBOT TECH CO LTD