To download NI software, including the products shown below, visit ni.com/downloads.
Overview
The code within this example represents communications between two separate VIs.
Description
The data types are converted to strings as this is the type of data transmitted by most LabVIEW data communication functions. The method is useful for serial, UDP and TCP communications. In this example, an input string is converted into a byte array. Each byte is XORed together to produce a new byte which is appended to the byte array. The byte array is converted to a string for transmitting. The string is received and converted to a byte array. All of the bytes are XORed together to produce a new XOR sum. If the communication was successful this new XOR sum will equal 00.If we were successful we can strip off the XOR LRC byte and display the original string.
Requirements
Steps to Implement or Execute Code
Additional Information or References
VI Snippet
**This document has been updated to meet the current required format for the NI Code Exchange.**
Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.