Serial port communication device and method based on LabVIEW
A serial port communication and serial port technology, applied in the field of serial port communication, can solve the problems of tedious and time-consuming parsing of data frame programs, data loss, etc., to achieve the effect of simple and clear programs, stable operation, and solving the problems of complicated and time-consuming programs.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
specific Embodiment approach 1
[0059] Specific implementation mode one: the following combination figure 1 and figure 2 Illustrate this embodiment, the serial port communication device based on LabVIEW described in this embodiment, described communication device realizes the communication with lower computer as host computer, and it comprises:
[0060] A UI event generating module 1 for sensing the actions of the controls on the human-computer interaction interface, generating events, and sending the generated events to the event message queue in the form of strings as a producer;
[0061] Used as a consumer to receive strings in the event message queue, frame the corresponding events represented by the strings to generate data frames, and then send the generated data frames to the command queue as a producer for UI event processing module 2;
[0062] It is used as a consumer to receive the data frame of the instruction queue, and send the data frame serial port to the lower computer; at the same time, it...
specific Embodiment approach 2
[0065] Specific implementation mode two: the following combination figure 1 and figure 2 Describe this implementation mode, this implementation mode will further describe the first implementation mode, and the UI event generation module 1 specifically includes:
[0066] An application event structure function used to perceive the actions of controls on the human-computer interaction interface, generate events, and identify the events through value changes;
[0067] It is used to use the action of each control as an event branch, and store the event command corresponding to each event branch into the element queue function of the event message queue in the form of a character string.
[0068] In this embodiment, the UI event generation module 1 uses the event structure function to identify the actions of each control on the human-computer interaction interface panel through the value change event. The action of each control is used as an event branch, and each branch generate...
specific Embodiment approach 3
[0069] Specific implementation mode three: the following combination figure 1 and figure 2 Describe this implementation mode, this implementation mode will further explain the implementation mode 1 or 2, and the UI event processing module 2 specifically includes:
[0070] The element dequeue function used to obtain the event message queue;
[0071] It is used to correspond the event branch with the conditional branch, and frame according to the requirements of the protocol frame. After passing the CRC16 check, it becomes the data frame to be sent, and the data frame to be sent is bundled with the command string and sent to the element of the command queue. queue function.
[0072] In this embodiment, the UI event processing module 2 obtains the data of the event message queue through the element dequeuing function in LabVIEW. At this time, the UI event processing module 2 acts as a consumer and uses a conditional structure function to realize that each event corresponds to ...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com