LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Front Panel doesn't display if VI is called from a Webservice

Hi,

I'm trying to call a VI that would show it's front panel by a labview webservice.

It works on a debug web server, but it doesn't work when I publish the webservice.

Here is an example:

2020-06-09_191912.png

 

When "VI with UI.vi" is running it writes to a log file that it's "Execution:Show Front Panel On Call"  is True and "Front Panel Window:State" is Standard. So, it thinks, that front panel should be shown and that it is shown.

2020-06-09_192259.png

 

Even if I load "VI with UI.vi" dynamically and tell it explicitly to show it's front panel it behaves the same.

2020-06-09_192846.png

 

Is there a way to display a front panel out of webservice?

 

 

 

0 Kudos
Message 1 of 5
(2,549 Views)

Hi,

I'm adding a code sample that demonstrates the problem.

 

0 Kudos
Message 2 of 5
(2,430 Views)

What exactly are you trying to get out of using the Web Service? Are you trying to have it set up to where any computer on network can log on to the web service and open the VI?

Redhawk
Test Engineer at Moog Inc.

Saying "Thanks that fixed it" or "Thanks that answers my question" and not giving a Kudo or Marked Solution, is like telling your waiter they did a great job and not leaving a tip. Please, tip your waiters.

0 Kudos
Message 3 of 5
(2,412 Views)

We have a huge LabView application. We are re-implementing UI so it runs out of a browser using React JS and Java back-end. LabView application becomes a library that is interfaced by api calls to webservices. Eventually the library and webservices interfacing it will run on a server. Meanwhile, some of more complex LabView front panels stay in LabView. So, webservices will run locally and invoke those VIs that have not yet been re-implemented in JS.

0 Kudos
Message 4 of 5
(2,405 Views)

I was unable to get your attached snippet to work to get more information on what you're trying to accomplish. I would strongly recommend checking NI's Examples under WebService; the AddressBook example should help you.

 

Labview's webservice seems to have two separate examples: in one, the Web Service is launched with pre-made html pages for the UI, and Labview vis work only as backend programming.

In another version, called weather monitor, the content of the vi is converted to an image and imported into a web page that way. 

 

You can also enable vi front panel publishing using the following help guide here.

 

 

Using Labview 2022, Windows 10
0 Kudos
Message 5 of 5
(2,364 Views)