06-03-2024 11:26 AM
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.
06-04-2024 02:54 AM - edited 06-04-2024 02:56 AM
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?
06-04-2024 03:27 AM
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...
06-04-2024 03:31 AM
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
06-04-2024 03:33 AM
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
06-04-2024 07:47 AM
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!
06-04-2024 07:48 AM
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.
06-04-2024 09:19 AM
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?).
06-04-2024 09:52 AM
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
06-05-2024 02:26 AM
@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.