06-18-2023 04:04 PM
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?
ESP32-CAM Take Photo and Display in Web Server (microcontrollerslab.com)
Solved! Go to Solution.
06-18-2023 06:21 PM
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
06-18-2023 07:56 PM
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
06-18-2023 10:45 PM
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
06-18-2023 10:51 PM
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
06-23-2023 09:25 AM
Hey Brett
Thanks it did work 😄 even tho i faced another problem