取消
显示结果 
搜索替代 
您的意思是: 

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 项奖励
1 条消息(共 9 条)
4,578 次查看

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 项奖励
2 条消息(共 9 条)
4,557 次查看

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 项奖励
3 条消息(共 9 条)
4,543 次查看

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

 

This has worked for me!!!高兴表情

With regards,
JK
(Certified LabVIEW Developer)
Give Kudos for Good Answers, and Mark it a solution if your problem is solved.
0 项奖励
4 条消息(共 9 条)
4,539 次查看

JK1, I have LabVIEW Run-Time Engine installed on PC with Server application. 眨眼表情 

 

-- Alex

0 项奖励
5 条消息(共 9 条)
4,537 次查看

sorry dint notice that 'application' word吐舌表情

 

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 tried眨眼表情

With regards,
JK
(Certified LabVIEW Developer)
Give Kudos for Good Answers, and Mark it a solution if your problem is solved.
0 项奖励
6 条消息(共 9 条)
4,519 次查看
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 项奖励
7 条消息(共 9 条)
4,511 次查看

<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 项奖励
8 条消息(共 9 条)
4,501 次查看

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 项奖励
9 条消息(共 9 条)
4,472 次查看