07-18-2016 09:55 PM
Hi,
I was wondering if labview is able to access to a webpage (below) to gather the data from the page and plot it into a graph.
07-18-2016 10:33 PM
07-19-2016 10:19 AM
DataSocket was another method that worked mnay years ago...
Just open a connection and read from the URL.
Ben
07-19-2016 12:49 PM - edited 07-19-2016 12:56 PM
@S.Neo wrote:Hi,
I was wondering if labview is able to access to a webpage (below) to gather the data from the page and plot it into a graph.
Yes but... It is a real pain in the you know what because you end up with a ton of text with HTML, Java Script, and anything else that goes into the webpage course that you have to parse through to get the information you are looking for.
Righ click on that webpage in your browser and pick "View Page Source" and take a look at the raw text you will have to parse your table out of.
It looks like you are attempting to communicate with a power analyzer, why not just talk directly to the power analyzer using SCPI commands like any other instrument?
07-21-2016 12:43 PM
RTSLVU nailed it on the head. If you are talking to an instrument, then using SCPI commands, etc will be the best approach to get data from it directly. A lot of pre-made VIs for talking to instruments can be found on the instrument driver network: http://www.ni.com/downloads/instrument-drivers/
If you cannot find a good library then you may have to parse the page using HTTP Client VIs such as GET and POST as suggested by PalanivelT and RTSLVU. From the screenshot I would guess that page is doing AJAX requests to get information from the device (making small queries via GET to get well-formated data to update the web page). If that is the case then the following post I made for a different website shows an example of using the dev tools to figure out and emulate that request in LabVIEW: http://rajsite.com/2016/06/25/scraping-web-pages-in-labview.html