12-06-2011 12:09 PM
Hi all,
I want to develop a simple application which will be controlling a M^2 laser. The laser provides TCP server for commands from remote software, and I want to connect to this server from Labview. A code must connect as a TCP client to the server address on specific port. Once connected code should send one of two string based commands to the laser:
"WAVELENGTH xxxx" or "WAVE_STATUS".
The commands are case sensitive, if the command is not recognised by the laser the server will reply "unrecognised command". I've tried to use this simple VI:
but unfortunately I get no reponse from a device. All interface settings are proper because I used the laser with another software.
Does anyone have an idea where did I make a mistake?
regards,
Marcin
Solved! Go to Solution.
12-06-2011 12:29 PM
You need to wire a number of bytes to read into the TCP Read. The default value is 0, so you won't read anything.
12-06-2011 12:58 PM
thats right, this was something I needed. Many thanks for a clue!
regards,
Marcin