LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

web interface with LabVIEW

Solved!
Go to solution

I have cam which generates webserver to capture and display image,

if i'm able to interface the web itself and display through LabVIEW is there anything i can do to get buttons on LabVIEW GUI that clicks the web? such that capture and refresh page?

 

Screenshot_4.png

ESP32-CAM Take Photo and Display in Web Server (microcontrollerslab.com)

0 Kudos
Message 1 of 6
(2,017 Views)

Hi JosephVictorWagieh,

 

Are you able to look at the source of the web page that the camera provides?  It's likely that the buttons call back to a URL on the webserver to perform the action.  Provided you can connect to the webserver from LabVIEW, you should be able to call those same URLs and get the same result as clicking on the button

 

Cheers

Brett

 

Senior Software Development Engineer
Certified LabVIEW Architect and LabVIEW Champion
https://theLonelyAnt.com
https://GDevConANZ.org.au


0 Kudos
Message 2 of 6
(1,986 Views)

Hello Brett

Thanks for your help 

 

Actually I find it abit hard to understand web services provided by LabVIEW 

It would be nice of you if you provided me any tutorial that can help me with what I'm looking for or similar vi 

 

 

 

 

 

 

 

0 Kudos
Message 3 of 6
(1,972 Views)
Solution
Accepted by JosephVictorWagieh

I don't think you need to write a web service in LabVIEW for this, the camera's web server should handle that side of things.

 

The attached is an example of connecting to a URL and sending it a GET request using some of the HTTP Client VIs that come with LabVIEW - these are under the Data Communication -> Protocols pallete

 

This is written in LabVIEW 2018 and should run on anything newer

 

If you really do need to write a web service in LabVIEW, there's a couple of examples in the Example Finder if you type in 'web service'

 

Cheers

Brett

Senior Software Development Engineer
Certified LabVIEW Architect and LabVIEW Champion
https://theLonelyAnt.com
https://GDevConANZ.org.au


0 Kudos
Message 4 of 6
(1,944 Views)

I've just had a look at the link in your original post, and it actually shows the Arduino code for the web server which is convenient. 

 

The capturePhoto method in the javascript shown uses a GET method on /capture.  If you replace the URL string in my example with the address of your camera with /capture on the end, that should trigger it to capture an image

 

Cheers

Brett

Senior Software Development Engineer
Certified LabVIEW Architect and LabVIEW Champion
https://theLonelyAnt.com
https://GDevConANZ.org.au


Message 5 of 6
(1,939 Views)

Hey Brett

Thanks it did work 😄 even tho i faced another problem 

0 Kudos
Message 6 of 6
(1,861 Views)