ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

NI LabVIEW Run-Time Engine + TCP/IP

Hello, Anybody knows how to activate TCP/IP service on PC with standard NI LabView Run-Time Engine installed. If I trying communicate with server from my PC (LVRTE) its works correctly.   However, when I am trying interchange client and server applications it appears with error 1.  Probably I need to add some settings to *.ini files on PC with LVRTE? --- Alex

 

0 Kudos
Message 1 of 9
(4,429 Views)

Are you referring to using the VI Server, or are you doing raw TCP/IP communication? If you're talking about using the VI Server, then I think you need to have these lines in your .ini file:

server.tcp.enabled=True
server.tcp.access="+localhost"
server.tcp.port=3362

Modify above as needed (e.g., for the access).

0 Kudos
Message 2 of 9
(4,408 Views)

Client/Server applications are communicate via standard TCP/IP VIs. I have tried to add 3 line as you wrote to server.ini, but it's didn't help :mansad:

 

--Alex

0 Kudos
Message 3 of 9
(4,394 Views)

In LabVIEW select options>>VI Server: configuration>>Check the TCP/IP option.

 

This has worked for me!!!Smiley Happy

With regards,
JK
(Certified LabVIEW Developer)
Give Kudos for Good Answers, and Mark it a solution if your problem is solved.
0 Kudos
Message 4 of 9
(4,390 Views)

JK1, I have LabVIEW Run-Time Engine installed on PC with Server application. Smiley Wink 

 

-- Alex

0 Kudos
Message 5 of 9
(4,388 Views)

sorry dint notice that 'application' wordSmiley Tongue

 

But small suggestion: In LabVIEW environment >>Options>> VI:machine access>> add>*   to allow access to all machines.

 

Now create the exe.  Because when you create the exe the LabVIEW.ini file with current environment settings is added by default and the above command will add a line to ini file.

 

Just give a try if you havent triedSmiley Wink

With regards,
JK
(Certified LabVIEW Developer)
Give Kudos for Good Answers, and Mark it a solution if your problem is solved.
0 Kudos
Message 6 of 9
(4,370 Views)
If you're using the TCP/IP functions (TCP Read, TCP Write, etc) then none of these options in the .ini will fix your problem.  The options in the .ini file are only useful for enabling access to VI server, remote front panels, and the LabVIEW web server.  There's probably a mistake in your code that is causing this error.  What is the actual text of the error?  At which function does it occur?
0 Kudos
Message 7 of 9
(4,362 Views)

<Alex> wrote:

Client/Server applications are communicate via standard TCP/IP VIs. I have tried to add 3 line as you wrote to server.ini, but it's didn't help :mansad:


As I indicated, the lines are only applicable to using the VI Server. You had not indicated whether you were using the VI Server or just the TCP/IP VIs. At this point we need a better explanation of what you're doing. Specifically:

 

  • What does this: "If I trying communicate with server from my PC (LVRTE) its works correctly." mean? What is the "server"? What's it running? What do you mean by your "PC (LVRTE)"?
  • What does this: "However, when I am trying interchange client and server applications it appears with error 1" mean? What is the "interchange client" and the "server applications". Reading this implies you have more than one application running on the "server", whatever that is.

 

Seeing some code wouldn't hurt either.

 

0 Kudos
Message 8 of 9
(4,352 Views)

Hi Alex,

 

There is a KnowledgeBase article that talks about changing the port number so the different applications can communicate.  Does that help?

 

 

Bryan H.
0 Kudos
Message 9 of 9
(4,323 Views)