12-25-2019 02:20 AM
using LabView2015, string data can be sent by TCP/Socket, How to send HEX data ?
12-25-2019 04:25 AM
There is typically some kind of message protocol you have to follow to talk to your device. Please share that protocol so we know exactly it is you need. I have seen too many versions of "Hex" data to feel comfortable giving an answer with that exact protocol.
12-25-2019 05:46 AM
Right click on the "data in" constant or control wired to the TCP Write function and select Visible Items -> Display Style and then select Hex Display. You can also wire an array of bytes to the data in input.
12-25-2019 08:25 PM
Thanks.
but I can't find the way to use in LabView2015.
do you have such a vi file ? would u like to attach a copy.
12-26-2019 05:58 AM
@huaew wrote:
Thanks.
but I can't find the way to use in LabView2015.
do you have such a vi file ? would u like to attach a copy.
You were given steps to produce the code. Did you try it?
12-30-2019 11:35 AM
@huaew wrote:
using LabView2015, string data can be sent by TCP/Socket, How to send HEX data ?
A string can contain all types of numbers, even hexdecimal numbers.
Example:
Do you need help for how to format a integer to a hexadecimal string or do you need to send a byte or byte array.
Since a byte just contain a value between 0 and 255 (decimal) your question is a little misleading if you ask for how to send hexadecimal data.
I would like to ask the same question as crossrulz, could you share information about your message protocol.
12-31-2019 06:29 AM
I want to send byte array. such as send 0x08 0xa0 0xe0.
12-31-2019 07:41 AM - edited 12-31-2019 07:43 AM
Hi huaew,
you still don't attach your VI…
@huaew wrote:
I want to send byte array. such as send 0x08 0xa0 0xe0.
This is pretty basic LabVIEW knowledge: did you take note of those "Training resources" offered here?
07-29-2025 04:10 PM
Excuse me if I am opening an old forum, I need to send the frame string "Trama_Elip.T_Definitiva_ELIP" in hexadecimal format (I am attaching an example of the frame:
4C410000203030303229317CAA05A09900000000000000000000000000000000000000000000000 000000000000000000000000000000000000000000000000000000000000000030000000000000 ).
I tried this way "Right click on the "data in" constant or control wired to the TCP Write function and select Visible Items -> Display Style and then select Hex Display.", but this only works when applied to a constant, in indicators it does not give me the Hex Display option, please help me by explaining how I can send that frame in hexadecimal.
I've attached some images so you can see the code.
07-29-2025 05:26 PM
@JavierDavid2006 wrote:
I tried this way "Right click on the "data in" constant or control wired to the TCP Write function and select Visible Items -> Display Style and then select Hex Display.", but this only works when applied to a constant, in indicators it does not give me the Hex Display option, please help me by explaining how I can send that frame in hexadecimal.
The pictures don't show an indicator, they show an unbundle by name node.
An indicator looks like this on the block diagram:
And would look like this on the front panel:
On the front panel, you can set "Display style":
I suspect what you really need to do is to convert ASCII text currently showing hexadecimal bytes into a byte array. Can you confirm?