i'm trying to transfer data from a web page to labview and i'm using GET.VI after that i'm using Match Pattern.vi to parse the usefull data out from that long string results
i have a problem in prasing data
any help please
Hi Gred W ,
sorry if i didn't expalin well so i mean the data in the tab in the web page as shown in the capture when i run the VI i have Nothing in my tab.
thanks for the response but as you can notice in my boucle while i stop when the length of my html text is zero in fact i need to prase data for the 12 Ports but i only get results only for X1 ?
i only get results only for X1 ?
Maybe you need to search for X2, X3, and so on?
Are you sure your search criteria is correct all the time?
You are searching for a constant 'id="port label_0"', while this label changes for each item in the HTML table to label_1, label_2m and so on.
Did you even compare your search criterias with the actual HTML text?
Hi GredW ,
Yes exactly that's the problem i was using this other devices to transfer ports informations in which i have the same constant string before port name , any ideas please on how can i extract all ports informations from this html text .
this is my last VI version
any ideas please on how can i extract all ports informations from this html text .
As already said before: you need to search for incrementing port labels!
Searching for a constant "label_0" will always result in just the first entry found!
Quick fix: search for "port_label_"…
Hi Gred W ,
thanks but in the port indicator i need to display only port name " X1" for example but like that it will display :
also the same problem with link parameters when it's UP and Down i don't have the same constant string .
i don't have the same constant string .
As you know what you are looking for you can create your search algorithm accordingly.
(This is much easier than to parse unknown text…)
- You know the generic structure of your HTML text, so you can easily parse single rows of your table.
- In each row you know the number and expected content of each cell.
So create an algorithm to get table rows, then parse each row…