05-02-2022 11:38 AM
Hi, I have a little question regarting to the TCP bytes to read in LabView. I'm doing a project which has a client and server. The client side has button and the server side has boolean LED. On the client side, when I turn on a button, the LED on the server side will light up. On the server side, to read all the bytes, I have write my code like this, and I have 18 event structure. But it only works with the events 0-9. How can I make it runs from 0 to 18?
05-02-2022 11:40 AM
05-02-2022 12:00 PM - edited 05-03-2022 09:56 AM
Please attach your actual VI instead of a picture. A picture with wires going in all directions and underneath other structures/wires is just completely useless. Try to adhere to some rudimentary style guidelines: There is no obvious way to even tell what's connected to where!
I don't see any event structure and I don't know what even a "18 event structure" even is. Did you study the shipping examples?
If all you send is a boolean, you know the total size, so it seems redundant to send the message size too and do all that extra song and dance..
05-03-2022 02:10 AM
Post your actual code for both client and server! Wild guess: the client sends the data number as hexadecimal string.