LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Labview Application Web Service

I am new to web service development and am reaching out to see if anyone can provide some insight for web browser configuration of an application. I have a .exe that I am going to deploy and run on a master computer that will not have Labview, but the RTE. I also need to be able to access the app from a web browser and am curious how to be able to do this? I went into the web service section of the build spec and it asked for a server. I created this server but I do not understand how to configure the web browser itself. Any help would be greatly appreciated.

0 Kudos
Message 1 of 20
(916 Views)

See Archived: Publish a LabVIEW VI to a Web Page With the Web Publishing Tool if you are using LabVIEW prior to 2022.

 

Alternatively, see Tutorial: Creating and Publishing a LabVIEW Web Service to the Application Web Server (Real-Time, Wi...

-------------------------------------------------------
Applications Engineer | TME Systems
https://tmesystems.net/
0 Kudos
Message 2 of 20
(877 Views)

Thanks for the reply! However, I followed the tutorial previously and did not find it useful for my application. This tutorial is more of what I would need to do, but it does not provide any instructions on how to run the application in a browser window

0 Kudos
Message 3 of 20
(833 Views)

@kyleozinga wrote:

Thanks for the reply! However, I followed the tutorial previously and did not find it useful for my application. This tutorial is more of what I would need to do, but it does not provide any instructions on how to run the application in a browser window


If your (running) application has a web service interface, you should be able to type the URL in a browser, and it the application should reply.

 

The browser sends a HTTP GET to the application's web service, and it replies (if the URL is correct).

 

Nothing needs to be running in the browser.

 

You could do the same from CURL (command line) or any application that talks webservice.

 

You can of course make something that runs in the browser (e.g. with G Web Development software). This could communicate with your application's web service.

 

It's not clear to me what you want. A WebService is just a means of communication, not something that runs in a browser.

0 Kudos
Message 4 of 20
(824 Views)

Thank you for the quick response. As for the application web service, what needs to be created in the web service itself? I created the web service, do I just need to create an HTTP (GET) in the web resources folder?

0 Kudos
Message 5 of 20
(815 Views)

@kyleozinga wrote:

Thank you for the quick response. As for the application web service, what needs to be created in the web service itself? I created the web service, do I just need to create an HTTP (GET) in the web resources folder?


Yes.

 

Have you seen the Web Service examples? From the menu, select Find Examples.... and type "webservice".

 

The address book example has a read me explaining how to communicate with a WebService from a browser.

 

The weather station example has both a client and server in LabVIEW.

0 Kudos
Message 6 of 20
(809 Views)

I have but I don't understand how it will relate to wanted to show and control the front panel of my application. My application has multiple controls and all reference a Microsoft SQL server to provide data, and I want it to run exactly as it does on the application. Like I mentioned previously, I am brand new to Web Services and don't understand how to create the web services VI to interface with my application.

0 Kudos
Message 7 of 20
(798 Views)

@kyleozinga wrote:

I have but I don't understand how it will relate to wanted to show and control the front panel of my application.


If you 'simply' want to show the front panel in a browser, I doubt a WebService is the solution.

 

LabVIEW has web hosting features (both Windows and RT), remote panel technology, and there might be other tricks. See for instance the link in the 1st reply.

 


@kyleozinga wrote:

My application has multiple controls and all reference a Microsoft SQL server to provide data, and I want it to run exactly as it does on the application. Like I mentioned previously, I am brand new to Web Services and don't understand how to create the web services VI to interface with my application.


The WebService command should set data (by reference), send events, or do things like that to make it do what you want.

 

There's no way I know of that automatically makes WS commands do what your user interface does. You'd have to make it.

 

It seems to me once you get the WebService communication working (which isn't hard), the problem is shifted to architecture and 'normal' LabVIEW: how to make a asynchronous process control your front panel.

 

But that only takes case of the LabVIEW side. You'd need a similar or completely different solution for the client side...

 

 

0 Kudos
Message 8 of 20
(770 Views)

I want the front panel to be shown, the client computer being able to select one of the active samples running, be able to change the sample time, and have it displayed on the XY graph. So you're saying this is not worthwhile? The samples don't need changed, and all the subVI will be untouched in the browser, but the higher ups want to be able to view the sample data in real time when traveling. 

0 Kudos
Message 9 of 20
(760 Views)

@kyleozinga wrote:

I want the front panel to be shown, the client computer being able to select one of the active samples running, be able to change the sample time, and have it displayed on the XY graph. So you're saying this is not worthwhile? The samples don't need changed, and all the subVI will be untouched in the browser, but the higher ups want to be able to view the sample data in real time when traveling. 


I'm saying a WebService might not be the solution.

 

A WebService could be part of the solution, but a WebService is just a communication protocol.

 

Web service - Wikipedia

 

There probably are replacements for the suggested (obsolete?) webpublishing tool, but I'd have to dig for that too.

0 Kudos
Message 10 of 20
(753 Views)