LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

opening an exe file remotely

Solved!
Go to solution

I want to make a server and a client using tcp/ip protocol in LabVIEW. I have a vi and want to make it remotely acccesible. So was wondering where to start from.

Any kind of help will be god.

0 Kudos
Message 21 of 32
(1,160 Views)

hi Dave

 

As i have previously mentioned ,currently i am working on  remotelaboratory project .i have looked many articles of remote lab using labview such as here i have attached that document.After read  this document i was confused that which is more suitable for my project because from this i found that TCP/IP is better than another.

 

I have looked webpublishing tools as well to make remote lab and it easier than another but i was confused that , is it more realiable to make remote lab?

 

I have tried webpublishing tool to deploy my vi on webbrowser and it is working perfactly.i have made one website for my project which gives all details of the project to users and i have  hyperlink that URL to my website so from that users cam view and control that vi. but whenever i launch  vi through the website it gives me invalid IP address error.but if i copy and paste that  URL to browser it works.Moreover it gives me same error , if i directly open that URL from WWW folder where we saved our URL.

 

therefore i have question that :

1. what is reason for that error?? because i have spend 2 days to make that website and now it is not hyperlink to that URl.

2.  Is there any IP address problem?? because i think this IP address is not static so i think i need static IP address.

 

 

Because of this problem, i was trying another way to make remote lab (TCP/IP).

 

 

Here i have attached my error.

 

1. error 1  and 2 open URL from the www folder in labview.

2. error 3 hyperlink for URL of saved vi with launh menu so whenever users will press Lanch it will open saved URL in newwindow.

 

 

Any help would be appreciated.

 

 

Best Regards,

Jessica

 

 

Download All
0 Kudos
Message 22 of 32
(1,141 Views)

sorry i fogot to attached my remote lab with labview article.

0 Kudos
Message 23 of 32
(1,140 Views)

Hi Jessica,

 

From the error 3 screenshot you posted, it looks like the second machine needs to have LabVIEW Run Time Engine (RTE) installed.  This RTE version needs to match the version of LabVIEW that the development occurred in.  For example, if you used LabVIEW 8.5 to develop the VI, you'll need RTE 8.5 on the other machine.  This can also be solved if the second machine has a full LabVIEW release on it of the same version or newer.

 

 As far as utilizing TCP/IP, here's a list I found on ni.com.  These should be able to help you get started, especially the first example "Command-based Communication using TCP/IP Messaging." I think this will relate pretty directly to what you're trying to do.

 

Good luck and keep us posted!

 

-Dave C

Applications Engineer
National Instruments
0 Kudos
Message 24 of 32
(1,127 Views)

Hi dave thanks for reply but i have not got Answer of my question for error 1 and 2 ,As you said, i need labview runtime engine for second machine and i understood and it works but my question was that , why it is not directly access from www folder in labview ? because,  if i copy and paste URL to webbowser,it works but cannot open from the www folder where i have saved that html page.

 

if it is possible than it would be  easy to link with by website and i can easily launch that html page by just one click from the website.

 

Moreover ,is it webpublishing tool only work for local area network or global because if i want to access that Vi from the home or any place in world than i dont need to do TCP/IP network.

 

i have attached reasons for error 1 and 2 .

 

Best Regards,

jessica

0 Kudos
Message 25 of 32
(1,119 Views)

Hi Jessica,

 

I'm curious, what is the end use for this application?  Do you need to be able to access this vi from anywhere or from a local area?  And when you access it, do you need to monitor the vi's state or do you need to control it actively?

 

When I created a file and used web publish, I had the same issue.  I believe that the best way to handle this is to save the URL that works as a bookmark, make sure that the VI is loaded to memory on the host, and then I think this will work.

 

Regards,

 

-Dave C

Applications Engineer
National Instruments
0 Kudos
Message 26 of 32
(1,083 Views)
 

Hi Dave,

 

Using this application we need to access this vi from anywhere and when have the access to it, we need to control it actively. That is the reason i thought of using TCP/IP protocol as i read that this can effectively done by this protocol. But for the momment we are trying to work this out thought the web publishing tool. And also on the examples and all there is not a good illustrative example that shows how to apply a tcp/ip protocol on a vi. I mean to say that we have a vi and now we want to apply the tcp/ip protocol to it. So would you have any example saying like how to start on this application? Any kind of help is appriciated.

 

Thanks

 
0 Kudos
Message 27 of 32
(1,074 Views)

Hi,

 

The Web Publishing Tool should work for what you are wanting to do as I understand it.  I think that adding TCP/IP functionality to this will add a layer of complexity, because you'll need to communicate the values of controls and indicators across a network to update the VI's on each end.  If you continue the route with Web Publishing Tool, you'll be able to see and control the front panel from another location as long as it's in memory on the original machine.  

 

Now, knowing this, if you'd like to use the TCP protocol for this application, there are good examples in the NI Example Finder for transferring that data.  A good starting point could be the "Simple Data Client" and "Simple Data Server" that are in the TCP/IP section of the example finder.  But, again, this method will require two VI's that transfer data between each other in order to get the result that it sounds like you want.

 

Regards,

 

-Dave C

Applications Engineer
National Instruments
0 Kudos
Message 28 of 32
(1,058 Views)

I have voltage, current, frequency and powerfactor readings comming from an instrument. Now i want to graph the voltage total harmonic distortion(VTHD) and current total harmonic distortion(ATHD) in labview . How do i do that? Is there any arithmetic function to do that or any function pallet for that?Any help is appriciated.

 

0 Kudos
Message 29 of 32
(1,050 Views)

Hi,

 

Can you try using the "Distortion" Express VI on the Express palette under Signal Analysis? It looks like using one of those for each signal that you'd like to analyze will allow you to output the THD to either a graph, data file, or both and I think that this function will work for your application.

 

Regards,

 

-Dave C

Applications Engineer
National Instruments
0 Kudos
Message 30 of 32
(1,042 Views)