LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Labview Application Web Service

This link is what I was trying to do. Not sure why there is no examples that actually relates to the manual. There is a YouTube video from 10 years ago that has an expired example which does not seem to be available anymore. If anyone can provide example code that would correlate to the link above I would greatly appreciate it.

0 Kudos
Message 11 of 20
(363 Views)

That is about a Web Server, not a Web Service!

 

The Web Publishing tool is still available in LV24 (AFAIK the link is from the current manual), so all the steps from the fundamentals should still work.

 

There won't be a tutorial, as this is 95% system configuration. So an example would be mostly the fundamentals instructions, not code.

 

So following:

Viewing an Application or Front Panel Remotely Using a Browser - NI

And in step 4 stepping into:

Creating HTML Documents and Embedding Front Panel Images - NI

 

...which step do you get lost? What exact problem do you run into?

 

What version of LabVIEW are you using?

0 Kudos
Message 12 of 20
(340 Views)

Apparently, remote panels don't exist anymore (?), and there's no replacement.

 

G Web is the recommended tool, but it's a lot more work (you need to make a web VI in G Web development software).

 

I'm confused here myself, as the web publishing tool publishes a VI in a browser just fine...

 

Someone else should chip in...

0 Kudos
Message 13 of 20
(331 Views)

I would suggest you have a look at my GDevCon #2 presentation: https://www.studiobods.com/en/gdevcon-2/

You can download the demo code which provides a working basis for your use case (to be adapted and customized to your needs of course).

We've developed and deployed many GWeb applications talking to LabVIEW Web Services for our customers so feel free to ask if you require more assistance.



Matthias Baudot | Software Architect | Founder at STUDIO BODs | DQMH® Consortium Board Member


STUDIO BODs     BLT for LabVIEW     LabVIEW Champion     Certified Professional Instructor     DQMH Trusted Advisor     GCentral Sponsor


 Check out my LabVIEW presentations and videos!

0 Kudos
Message 14 of 20
(325 Views)

If you go into LabVIEW Web Services development, I'd also recommend you check out this way of programming that I mention in my GDevCon #3 presentation: https://code.studiobods.com/open-source/labview/webservices-oop-design



Matthias Baudot | Software Architect | Founder at STUDIO BODs | DQMH® Consortium Board Member


STUDIO BODs     BLT for LabVIEW     LabVIEW Champion     Certified Professional Instructor     DQMH Trusted Advisor     GCentral Sponsor


 Check out my LabVIEW presentations and videos!

0 Kudos
Message 15 of 20
(323 Views)

Yeah once I could not find an option to have controls on the Web Service (Embedded panel rather than snapshot) I looked into a Web Server and got lost pretty quickly. I looked at both of those resources and I can create a web service that is just a snapshot, but for connectivity purposes we will need to be able to use the controls on the front panel. The other option I am considering is having a separate application that can access the remote panel so that not everyone has to have LabVIEW installed but can access the panel with the IP address of the host computer. I appreciate your responsiveness!

0 Kudos
Message 16 of 20
(306 Views)

Thank you for the reply! I looked into G-Web, but I am trying to avoid any additional licenses needed to do this, so if there is a solution in LabVIEW without having to spend more on licenses I am open to scouring for it.

0 Kudos
Message 17 of 20
(305 Views)

If I create a new VI (e.g. a loop with wait and "i" showing, no need to save it), and then go to Tools>Web Publishing Tool, Select Untitled 1, Start Web Server and\or Preview, I see the VI's Front Panel in my browser...

 

If it stopped working, it didn't stop completely. However, I can only view the VI, I can't control it.

 

No idea if that should work, used to work or if this is an option somewhere (like in the VI access list?).

0 Kudos
Message 18 of 20
(289 Views)

Some details here, if you want to control the vi in Edge, some additional steps are needed.

https://knowledge.ni.com/KnowledgeArticleDetails?id=kA00Z0000019LCKSA2&l=en-US

 

-AK2DM

~~~~~~~~~~~~~~~~~~~~~~~~~~
"It’s the questions that drive us.”
~~~~~~~~~~~~~~~~~~~~~~~~~~
0 Kudos
Message 19 of 20
(280 Views)

@AnalogKid2DigitalMan wrote:

Some details here, if you want to control the vi in Edge, some additional steps are needed.

https://knowledge.ni.com/KnowledgeArticleDetails?id=kA00Z0000019LCKSA2&l=en-US


What part are you referring to?

 

That KB article explicitly mentions:

..as of LabVIEW 2022 Q3, the Embedded option is no longer available.

 

So to me that means (From LV22Q3 on) you can still monitor or take snapshots of, but not control a VI.

0 Kudos
Message 20 of 20
(256 Views)