From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

tcp ip no responsee

Solved!
Go to solution

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:

 

m2_laser.PNG

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

 

0 Kudos
Message 1 of 3
(2,239 Views)
Solution
Accepted by topic author bikekowal

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.

Message 2 of 3
(2,237 Views)

thats right, this was something I needed. Many thanks for a clue!

 

regards,

Marcin

0 Kudos
Message 3 of 3
(2,230 Views)