Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and beauty - How to convert labview single-byte array into single-byte string
How to convert labview single-byte array into single-byte string
Since it is an array, the first thing I think of is an indexed array. I index each item in the array and then connect each item with a string connector, which becomes a long string.

The upper computer software is developed by LabVIEW, the data sent by the third-party simulation software is displayed on the software flow chart, and the switch data before PLC collected by the lower computer is sent to the third-party simulation software. The communication between the host computer and the third-party simulation software is based on UDP protocol.

Anyone who has used LabVIEW for UDP communication knows that the UDP transceiver module of LabVIEW can only send and receive strings, and cannot send arrays or other types of data. If you want to send them, you must convert these types of data into strings. Generally, our data are stored in arrays, so let's take a look at how string arrays are converted into strings in labview. Since it is an array, the first thing I think of is an indexed array. I index each item in the array and then connect each item with a string connector, which becomes a long string.