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?