Jump to content

longestral

Members
  • Posts

    1
  • Joined

  • Last visited

    Never

longestral's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. Hi all! After some time working on the TCP/IP communication between Java and LabVIEW I have decided to post a question to hopefully get an answer on my issues. The intention is to use LabVIEW to control some basic I/O operation according to instructions given via TCP/IP from Java (Server) to LabVIEW (Client). The connection itself works, but LabVIEW receives not the correct data/ or receives it in a wrong format :-) I have already had a look at National Instruments website: http://zone.ni.com/devzone/devzoneweb.nsf/...6256ED800706823 and I like the described concept. From the Java side the main method looks like: byte[] b = new byte[80]; 80 Bytes, because I would like to send the following information: Byte 0..3 (Packet Size) Byte 4..5 (Data Type) Byte 6..9 (Data -> 32 Bit Integer) Socket client = server.accept(); OutputStream out = client.getOutputStream(); out.write(b); LabVIEW: I am using LabVIEWs TCP Read function with 80 bytes to read preset. My question: How can I make sure to receive the data in a way that I can work with it within LabVIEW? I have already tried to endianize the data within Java but it didn't work out. It would be great to hear from you soon. longestral
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.