Getting data from a web site

I have a device that has a built in web server that I need to write a LV program for
I need to read the date the web server is producing and compare it to actcual measured data.
Now the measureing and comparing is easy but I don't know how to make LV read a webpage.
Any thoughts or examples?
Solved!
Go to Solution.

I got it to work, but It seem like the first time I launch it I sometimes I the first time I run it I get this error.
Error 97 occurred at UnknownSystem Error
Possible reason(s)
Labview: Null Refnum was passed as input.
Also it does not always ouput the text the first time and you have to run it twice. 
Worse yet it seems to cache the text so sometimes when you load a new page the text is still the text left over from the previous page yet you can see the new page has loaded in the SHDocVw.IWebBrowser2 indicator.
Attachments:
No Text Output-1.jpg ‏136 KB
Good Text Ouput-2.jpg ‏220 KB
Text Output has not changed.jpg ‏173 KB

Similar Messages

  • How to show data from one web site to other web site having diffrent domain.

    Dear all,
             i want to show the selected data from one web site to other web site.
    the location of the two web site is geographically seprated (and diffrent domain)
    Please tel me in how many ways it can be accomplished.
    If it can be done using jquery then please tel me the function or procedure to do it.
    Note: ( i have seen the above behavior in many web sites .
    like, i was purchasing some thing but finally declined,
    after that i visited some other web sites to gets some other data on other area
    , and i show my selected items of the first web site  on second website as advertisement.)
    i would like to know how these things are accomplished and how it can be done in asp.net.
    yours sincerely

    Hello,
    Thank you for your post.
    I am afraid that the issue is out of support range of VS General Question forum which mainly discusses
    the usage of Visual Studio IDE such as WPF & SL designer, Visual Studio Guidance Automation Toolkit, Developer Documentation and Help System
    and Visual Studio Editor.
    Because your issue is about ASP.NET website programming, I suggest that you can consult your issue on ASP.NET forum:
    http://forums.asp.net/
     for better solution and support.
    Best regards,
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Help: getting data from a web page

    i have a jsp page which generates some strings. i pass these strings in to a login page on some server. the web page displays my login status. is it possible to read or get data from the web page?
    i have captured the header of a web page and modifying the header based on my generated strings.
    or jus say is it possible to read whats in a web page into a jsp page?
    thanks in advance for any help , assistance or redirection to a source where i can find help.

    hi,
    sorry for a poorly framed question.
    this is what i m trying to do.
    i call google with a header generated.
    now i want to read back the content in the google search result page onto my jsp page.
    possible?
    first.jsp calls google. i m using redirect (url)
    the url is modified based on user input
    now i want the links in the google page to be put up in my page itself. so i want to read the links there...
    Message was edited by:
    on_track

  • How do I obtain data from a web site???

    I am trying to use information from a sports stats page to automate scoring on a fantasy football site I am developing. After a game the weeks games have completed, I want to be able to extract the data, passing yards, passing TD's, etc. I can pull in a web site, and get to the point where the QB stats start. My question is there a way to strip all the html tags and just be left with the players name and numbers(stats)? I skip down 366 lines to get to the example below. Was thinking maybe, to tokenize using > as the delimiiter, then tokenizing again to strip away the rest of the tag using < as the delimiter. Any suggestions are much appreciated, thanks.
    CODE
    import java.net.*;
    import java.io.*;
    public class WebRipper
    public static void main(String[] argv)
    int count = 0;
    try {
    // Create a URL for the desired page
    URL url = new URL("http://www.fftoday.com/stats/playerstats.php?Season=2006&GameWeek=1&PosID=10&Le agueID=1");
    // Read all the text returned by the server
    BufferedReader in = new BufferedReader(new InputStreamReader(url.openStream()));
    String str;
    while ((str = in.readLine()) != null)
    if(count > 366)
    System.out.println(str);
    }// end if
    count ++;
    }// end while
    in.close();
    }// end try
    catch (MalformedURLException e) {}
    catch (IOException e) {}
    }// end main
    }// end WebRipper
    OUTPUT(this is just a example of the first few lines of output)
    <TD CLASS="sort1" ALIGN="LEFT" BGCOLOR="#ffffff"> 1. Donovan McNabb</TD>
    <TD CLASS="sort1" ALIGN="center" BGCOLOR="#ffffff">PHI</TD>
    <TD CLASS="sort1" ALIGN="center" BGCOLOR="#ffffff">1</TD>
    <TD CLASS="sort1" ALIGN="center" BGCOLOR="#ffffff">1</TD>
    <TD CLASS="sort1" ALIGN="center" BGCOLOR="#ffffff">24</TD>
    <TD CLASS="sort1" ALIGN="center" BGCOLOR="#ffffff">35</TD>
    <TD CLASS="sort1" ALIGN="center" BGCOLOR="#ffffff">314</TD>
    <TD CLASS="sort1" ALIGN="center" BGCOLOR="#ffffff">3</TD>
    <TD CLASS="sort1" ALIGN="center" BGCOLOR="#ffffff">1</TD>
    <TD CLASS="sort1" ALIGN="center" BGCOLOR="#ffffff">4</TD>
    <TD CLASS="sort1" ALIGN="center" BGCOLOR="#ffffff">7</TD>
    <TD CLASS="sort1" ALIGN="center" BGCOLOR="#ffffff">0</TD>
    <TD CLASS="sort1" ALIGN="center" BGCOLOR="#e0e0e0">28.4</TD>
    <TD CLASS="sort1" ALIGN="center" BGCOLOR="#ffffff">28.4</TD>
    </TR>

    Here is the first string I would want to obtain, can you explain how I would get the player name, then all of his stats. Remember there is ~366 lines of text before you get to this point. Also what or where should I dump the info to?
    Example from the info below I want Donovan McNabb, then all of his stats, excluding all the tags.
    <TD CLASS="sort1" ALIGN="LEFT" BGCOLOR="#ffffff"> 1. Donovan McNabb</TD>
    <TD CLASS="sort1" ALIGN="center" BGCOLOR="#ffffff">PHI</TD>
    <TD CLASS="sort1" ALIGN="center" BGCOLOR="#ffffff">1</TD>
    <TD CLASS="sort1" ALIGN="center" BGCOLOR="#ffffff">1</TD>
    <TD CLASS="sort1" ALIGN="center" BGCOLOR="#ffffff">24</TD>
    <TD CLASS="sort1" ALIGN="center" BGCOLOR="#ffffff">35</TD>
    <TD CLASS="sort1" ALIGN="center" BGCOLOR="#ffffff">314</TD>
    <TD CLASS="sort1" ALIGN="center" BGCOLOR="#ffffff">3</TD>
    <TD CLASS="sort1" ALIGN="center" BGCOLOR="#ffffff">1</TD>
    <TD CLASS="sort1" ALIGN="center" BGCOLOR="#ffffff">4</TD>
    <TD CLASS="sort1" ALIGN="center" BGCOLOR="#ffffff">7</TD>
    <TD CLASS="sort1" ALIGN="center" BGCOLOR="#ffffff">0</TD>
    <TD CLASS="sort1" ALIGN="center" BGCOLOR="#e0e0e0">28.4</TD>
    <TD CLASS="sort1" ALIGN="center" BGCOLOR="#ffffff">28.4</TD>
    </TR>
    Pattern p = Pattern.compile("(?<=\\>)[^<]+");
    Matcher matcher = p.matcher(yourwebinfo);
    while(matcher.find())
    yourinfow/ohtmlcode = matcher.group();
    Thanks.

  • How get data from another web page?

    I have my own interface..after i key In a keyword and click search, method post will post the data to server and server will response.write a HTML page that display the result based on the keyword i Key In. The problem is i want the result display on my own page. So how can i read the search result from the HTML page and display on my own design page? I use JSP to built my page. thanks

    I dont know the following solution would solve ur problem, atleast u will get basic idea.
    1st method
    Create an inline frame (IE-IFrame etc), On pressing submit button, Post the data to required page (it might be some page on another server)and specify post target is ur inline frame.
    if u want filter the result data and want to display in ur own way then send ur POST request to ur own JSP and use Http classes to read resend those data to other page (another server) and capture the results implement ur own logic to get desired data and resend to the requested browser
    I hope it would solve ur problem
    Cheers
    Rajendra Bandi

  • When I copy and paste the data from a web site in to excel, it comes in one big splurge - ie it is not 'delimited' - and I can't see how to delimit the data into cells. In Explorer, the data is delimited. Any clues ? John

    see above

    A couple of options:
    # When pasting the data into Excel use Paste Special, and choose either Text or Unicode Text.
    # Use the Dafizilla Table2Clipboard extension to copy the data - https://addons.mozilla.org/firefox/addon/dafizilla-table2clipboard

  • Re; Getting data from a live web site, based on geo-location.

    re; Getting data from a live web site, based on geo-location.
    Approx 4 minutes 25 seconds into this YouTube Adobe ELearning video for Common JavaScript Interface in Adobe Captivate 8, the topic of extracting data from a live web site http://api.openweathermap.org
    Is there anywhere we can download this Adobe Captivate weather ticker project? or get some more complete tutorial on setting it up?  I tried to copy some of the code shown in the video, but can't get it to work, so I suspect I'm missing something somewhere.
    I would like to try it out.
    Video Here:   https://www.youtube.com/watch?v=u1ZfG47k24k

    Could windows Firewall be stopping this geo-location weather ticker app from working? When I start Captivate 8, I get the message indicating the the firewall is blocking some features of the program. When I check the geo var it seems empty.
    Name: AdobeCaptivateWS
    It then refers to some temp folder such as
    Path: C:\users\{username}\appdata\local\temp\cp3320604394session\cptrustfolder3320604659\adobec aptivatews
    Network Location: Public, private, domain networks
    etc...

  • Get data from Sharepoint site in different farm using webservice, and current site using claims mode authentication.

    Hi , 
    I have a site that runs on   Claims Mode (  NTLM) . That site has a web part that needs to show the data from any  sharepoint farm, SharePoitn  2010 , or 2007 or 2003.
    I am getting 401 unauthorized when I   try to get data from webservice running in sharePoint context.
    But when I run the same code in  Windows Console application  then it is giving no error.
    What I doubt is that this issue is due to the reason that I have  set
    claims mode authentication.
    Because same code is running  in different farm in a site that is configured  using windows authentication.

    So generally speaking, you're talking about a VERY long running topic of authentication methods... and generally speaking, in the world of Windows, the only long running authentication options have been:
    - NTLM (limited to one hop)
    - Kerberos (unlimited hops)
    - Application level authentication (ex: SQL auth, also, no hops)
    Recently, Microsoft has been investing in Claims Based Auth... and I fully expect claims to start working their way into other systems (previously starting to work into Windows via the CardSpace technology, but also in other ways such as Win8's ability to
    log in with a LiveID)... but building a new authentication method into ALL applications is a VERY long process, and the complexity of claims adds a LOT of consideration (claims from the same AD can look VERY different depending on the STS, so lots of questions
    around things like bridging claims).
    So as far your SP auth needs...
    IF both applications are CLAIMS AWARE, then you MAY be able to use claims (which support unlimited hops)... but that's just not very likely yet (and will probably take another 5-10 years to be available across the entire enterprise)... otherwise, KERBEROS
    Outside of the Microsoft world... KERBEROS is open spec, so is supported by other systems (such as authenticating to linux)... claims based auth is also open spec, but again, still new... there are a few other options (LDAP, etc), but none that are native
    to Windows (so you rely on things like third party auth modules for Windows, which Novell has done for DECADES with NDS and eDir)
    And again, SharePoint can convert claims to Kerberos using the C2WTS... which MS uses internally for things Excel Services connecting to a backend SQL server... but it DOES require the Kerb and C2WTS configuration.
    if you're having issues using Kerb auth... then it sounds like Kerb isn't configured correctly... and Kerb is a PAIN to configure (whitepaper for SP Kerb is ~100 pages long)... IIS (and SharePoint) also has the added benefit of failing over to NTLM if Kerb
    fails (and you shouldn't disable this behavior, since it'll break other settings elsewhere)
    Scott Brickey
    MCTS, MCPD, MCITP
    www.sbrickey.com
    Strategic Data Systems - for all your SharePoint needs

  • Fastest way to get data from Multiple lists across multiple site collections

    HI
    I need to get data from multiple lists which spread across 20 site collections and need to show it as list view.
    I have searched on internet about this and got some info like options would be to use search core APIs or BCS . I can't use search because I want real time data. Not sure of any other ways.
    if anybody can provide ideas it would be help.

    Might LINQ be an option for you?  Using
    LINQPad and the
    SharePoint Connector, you should be able to write a query that'll retrieve this data, from which you can tabulate it.  I'm not sure how you'd be able to automate this any further so that it's then imported in as list.
    For something more specific, I used a third party tool called the
    Lightning Tools Lightning Conductor, which is essence a powerful content roll-up tool.  In one of my solutions, I created a calculated column that gave an order / ranking on each item, so that when lists were combined, they'd still have some form of
    order.  The web part is also fairly customisable and has always proven a useful tool.
    Hope that helps.
    Steven Andrews
    SharePoint Business Analyst: LiveNation Entertainment
    Blog: baron72.wordpress.com
    Twitter: Follow @backpackerd00d
    My Wiki Articles:
    CodePlex Corner Series
    Please remember to mark your question as "answered" if this solves (or helps) your problem.

  • Get date from portal in a web dynpro?

    hi all,
    how get date from portal in a web dynpro???
    thanks.

    new Date(System.getTimeInMillis());
    Good luck, Roelof

  • How get data from Web Service with token?

    Can I get data from Web Service made with Java?
    This WS has a Token.
    Any ideas o reference?
    Regards!
    Fran Díaz | twitter: @frandiaz_ | Blog: {geeks.ms/blogs/fdiaz/} | Communities: {onobanet.es} & {secondnug.com}

    We've now added this ability to Web.Contents. You can say something like
    Web.Contents("http://my.web.service/1", [Headers=[#"The-Token"="0a0138ef2d"]])
    and it will pass a header with the key "The-Token" and the value "0a0138ef2d" as part of the HTTP request. For security reasons, this will only work for anonymous web requests.
    The December preview can be downloaded from
    http://www.microsoft.com/en-us/download/details.aspx?id=39933&WT.mc_id=blog_PBI_Update_PowerQuery

  • I am getting browser needs updating from various web sites since getting 10.0 update.sites are taking forever to load.I have to click stop then reload to get them to work.

    I have had web site page loading problems since I started beta Firefox.I took the update from beta 9 to 10.0 and since then I am getting a message from various web sites that my browser needs to be updated for site to work with links to all browser update pages including Firefox.Sony premium services support is one of the pages I got the update needed notice.

    Hi,
    You can try using the [https://addons.mozilla.org/en-US/firefox/addon/user-agent-switcher/ User Agent Switcher] and create a generic entry like '''Mozilla/5.0 (Windows NT 6.1; rv:9.0.1) Gecko/20100101 Firefox/9.0.1''' and switch to this on problem sites.
    Useful links:
    [https://support.mozilla.com/en-US/kb/Options%20window All about Tools > Options]
    [http://kb.mozillazine.org/About:config Going beyond Tools > Options - about:config]
    [http://kb.mozillazine.org/About:config_entries about:config Entries]
    [https://support.mozilla.com/en-US/kb/Page%20Info%20window Page Info] Tools (Alt + T) > Page Info, Right-click > View Page Info
    [https://support.mozilla.com/en-US/kb/Keyboard%20shortcuts Keyboard Shortcuts]
    [https://support.mozilla.com/en-US/kb/Viewing%20video%20in%20Firefox%20without%20a%20plugin Viewing Video without Plugins]
    [http://kb.mozillazine.org/Profile_folder_-_Firefox Firefox Profile Folder & Files]
    [https://developer.mozilla.org/en/Command_Line_Options#Browser Firefox Commands]
    [https://support.mozilla.com/en-US/kb/Basic%20Troubleshooting Basic Troubleshooting]
    [https://support.mozilla.com/en-US/kb/common-questions-after-upgrading-firefox-36 After Upgrading]
    [https://support.mozilla.com/en-US/kb/Safe%20Mode Safe Mode]
    [http://kb.mozillazine.org/Problematic_extensions Problematic Extensions]
    [https://support.mozilla.com/en-US/kb/Troubleshooting%20extensions%20and%20themes Troubleshooting Extensions and Themes]
    [https://support.mozilla.com/en-US/kb/Troubleshooting%20plugins Troubleshooting Plugins]
    [http://kb.mozillazine.org/Testing_plugins Testing Plugins]

  • I get redirected to unwanted web sites during searches from the browser ONLY, never from the toolbar. Is this the same malware problem as discribed for redirects from BOTH the browser and the toolbar?

    I get redirected to unwanted web sites during searches from the browser ONLY, never from the toolbar. Is this the same malware problem as discribed for redirects from BOTH the browser and the toolbar?
    == This happened ==
    Every time Firefox opened
    == was happening with Internet Explorer, continues with Firefox

    Did you do a malware check?
    Do a malware check with a few malware scan programs.
    You need to use all programs because each detects different malware.
    Make sure that you update each program to get the latest version of the database.
    http://www.malwarebytes.org/mbam.php - Malwarebytes' Anti-Malware
    http://www.superantispyware.com/ - SuperAntispyware
    http://www.safer-networking.org/en/index.html - Spybot Search & Destroy
    http://www.lavasoft.com/products/ad_aware_free.php - Ad-Aware Free
    http://www.microsoft.com/windows/products/winfamily/defender/default.mspx - Windows Defender: Home Page
    See also "Spyware on Windows": http://kb.mozillazine.org/Popups_not_blocked and [[Searches are redirected to another site]]
    (the MozillaZine KB is currently down, so you may need to try again later)

  • Why I can't get the cookie from this web site when I can get it from google

    public static void main(String[] args) throws Exception {
    // I can get the cookie from "http://www.baidu.com"
    // String domain1 = "http://www.baidu.com/";
    // String domain2 = "www.baidu.com";
    // I can get the cookie from "http://www.google.com"
    // String domain1 = "http://www.google.com/";
    // String domain2 = "www.google.com";
    // I can not get the cookie from "http://www.csdn.net"
    String domain1 = "http://www.csdn.net/";
    String domain2 = "www.csdn.net";
    URL url = new URL(domain1);
    HttpURLConnection httpConn = (HttpURLConnection) url.openConnection();
    httpConn.setRequestProperty("User-Agent", "Internet Explorer");
    httpConn.setRequestProperty("Host", domain2);
    httpConn.connect();
    String cookie = httpConn.getHeaderField("Set-Cookie");
    System.out.println(cookie);
    My question is: How can I get the cookie from the web site:http://www.csdn.net?

    I found it in my computer , the location is: C:\Documents and Settings\zhijun\Cookies\zhijun@csdn[2].txt
    and there are many characters, they are:
    __utma
    17226283.1339458738.1221633513.1223535733.1223539291.58
    csdn.net/
    1600
    786595712
    30107528
    1029600608
    29960677
    __utmz
    17226283.1223539291.58.57.utmccn=(organic)|utmcsr=baidu|utmctr=VB.NET%B2%BB%C4%DC+%B6%CF%B5%E3|utmcmd=organic
    csdn.net/
    1600
    4189609856
    29997389
    1029910608
    29960677
    LastVisitedForum
    b7e466c6-291a-4072-acee-15d2be78c647*b5f1380c-f04c-4682-861a-54357b14186a*0a4a010e-8694-4139-b91f-a4ee1374981b*caa7532e-956b-4661-a53f-d46e3f1a8187*8b327318-2c42-4a49-8aed-ef8c33697e7f
    csdn.net/
    1536
    2105548800
    29964700
    960690608
    29960677
    userid
    2018946
    csdn.net/
    1536
    1900813440
    29963485
    771368976
    29960669
    __utmb
    17226283
    csdn.net/
    1600
    1849111424
    29960681
    1029760608
    29960677
    ABCDEF
    X1rZPCiZupWekhlTu78xWhr2Oj5GmFwk0J%252b8COfIv7IvVh2PgEPu2V7ooeZuUnene2j%252fDKJsNnZWYBSQxVkTfunvGq%252fDYuzFALM0ugLUmppZAHgfUWgQ%252bziPRLLJyFdzUpHwfG%252fReU8SfFy588HH02NPWPsO8RjgtHym%252bcJdUOnIH5J%252bkPEj%252b%252bZwlSPb5u0M0mPQRU1gOScfY4b981MifF4ksep8sZp1Ro2ofGHIg6l%252bgJ0P0XFASz2cJU8Objo%252f
    csdn.net/
    1536
    1900813440
    29963485
    770898976
    29960669
    QWERTOP
    6695
    csdn.net/
    1536
    1900813440
    29963485
    771058976
    29960669
    activeUserName
    boxiuzhen
    csdn.net/
    1536
    1900813440
    29963485
    771058976
    29960669
    UserName
    boxiuzhen
    csdn.net/
    1536
    1900813440
    29963485
    771058976
    29960669
    PName
    542a00960558bf1690fe08696d1245f407130025d59bd14ad6430f
    csdn.net/
    1536
    1900813440
    29963485
    771368976
    29960669
    Is this prove that the csdn web site which I  can not get the cookie is not using url-rewriting?

  • How to get data from live site using C# on grid view

    hi, how am I able to get data from a website and display it in a grid view ?
    Can anyone show me how I would do this? Thanks

    Hello,
    This post does not fit to this forum, read the
    stickies.
    Regards, Eyal Shilony

Maybe you are looking for

  • How to trace an ApEx page processes(anonymous PL/SQL) submited by any user?

    Dear Friends; can I trace an ApEx page processes (anonymous PL/SQL code step by step) submitted by any user? could you explain in detail, please? regards Siya Edited by: sak on Feb 3, 2012 1:07 AM

  • Type of a field in select query

    i have a query like this: SELECT SINGLE (lwa_mat_attr-zattribute)             FROM mara             INTO lv_value            WHERE matnr = <fs>-matnr. can anyone tell me what would be the type of lv_value. because i have got a dump in the type declar

  • Time Machine won't work with Time Capsule

    HI all I have been using TM to backup to an Iomega portable drive but because the drive is relatively small and because I thought that having less wires around the place would be a good thing, I bought Time Capsule. However when I try to backup to TC

  • 5 laks sales order generation per day is possible from SAP ?

    How many maximum number of invoice can SAP generation per a day (with max hardwar & no limitation in end users may with out automation). what are the alternative solutions fro SAP and is  SAP IS RETAILS can do this

  • IDVD won't give an option for higher capacity DL discs

    Hello, Using iDVD version 7.1.2 (1158) In the 'Project Info' window, under 'DVD Type:' the only options given are Single Layer 4.2GB or Double-Layer 7.7GB. According to the info, my project is 150 min, 8.21 GB. I'd like to burn a DVD using Memorex DV