Controlling a web page from Labview

Hello,
I am trying to acquire image from an Encoder's IP address, but I'm facing some problems:
1. Once the Ip address is loaded, the web page asks for authentication (user and password), so I don't know how I can send this information to IE through Labview.
2. Once one has logged in, the web page shows a window with ActiveX controls in which the image from a camera is acquired and can be zoomed in and out, or saved. I need to saved the image, so I would need to send an instruction to the page as if I had clicked in the "Save" icon. I wonder if I can send some sort of instructions telling "buttonX=ON" or using the coordinates in the window to simulate a click or sth.
I tried the "AutoIT Example.vi" and changed it to call internet explorer and then sending the URL, and I also tried the "open_browser_send_URL.vi" but as I said, I'm stuck in the authentication part.
I would greatly appreciate any suggestions you may have to deal with this problem.
Thanks
Solved!
Go to Solution.
Attachments:
open_browser_send_url.vi ‏25 KB

When you attempt to log in to the web page, does it use a form on the web page, or does it pop up a separate authentication dialog?  If it's a form within the web page, you may be able to do this using Internet Explorer and LabVIEW.  The details will depend on your web page - if it uses a form submit then it should work, if it relies on Javascript then it may be more trouble.  You'll have to look at the web page source to identify the correct form elements.  I'm attaching a VI that demonstrates how I handled this in one previous project.  The VI expects that you'll pass in a reference to a WebBrowser object.
To save the image, you may again be able to dig into the HTML source of the web page to find out what method of the ActiveX object is being called.  You can then obtain a reference to that ActiveX object, cast it to the appropriate type, and call that same method from your VI.  I've done this before for a web-based label-printing application, as shown in the attached image.  In this case the ActiveX component is called TidAx1 (which I found from looking at the source of the web page).  After obtaining a reference to the ActiveX component within the web page, the LabVIEW programmer has access to all its properties and methods.
Mauro Vera wrote:
I attach some links below, guidelines that can be made. Any questions please contact us.
Sometimes it's really hard to know if you NI people (so I'm assuming, from the blue username) actually read the questions before you attempt to answer them... why would you attach links about sending email when the poster asked about reading data from a web page?
Attachments:
web login.vi ‏26 KB
go to URL.vi ‏12 KB
set html form element value.vi ‏11 KB

Similar Messages

  • How can i update an html web page from Labview?

    I intend to publish the "status" of an experiment online through an web page. I mean, if my vi is running i would like to have a phrase or indicator set on at my web page. If my Vi is not running i would like this indicator set off. This page is hosted in a server and I would like to know if its possible to update the html file from labview through an ftp connection.
    Thanks in advance...
    MSc. Alexandre Michel Maul
    Parana Federal Univeristy - Brasil

    The system exec function is on the Communication palette. Its for executing system commands. On my Win2K system, the help for FTP is:
    "Ftp
    Transfers files to and from a computer running an FTP server service (sometimes called a daemon). Ftp can be used interactively. Click ftp commands in the Related Topics list for a description of available ftp subcommands. This command is available only if the TCP/IP protocol has been installed. Ftp is a service, that, once started, creates a sub-environment in which you can use ftp commands, and from which you can return to the Windows 2000 command prompt by typing the quit subcommand. When the ftp sub-environment is running, it is indicated by the ftp command prompt.
    ftp [-v] [-n] [-i] [-d] [-g]
    [-s:filename] [-a] [-w:windowsize] [computer]
    Parameters
    -v
    Suppresses display of remote server responses.
    -n
    Suppresses autologin upon initial connection.
    -i
    Turns off interactive prompting during multiple file transfers.
    -d
    Enables debugging, displaying all ftp commands passed between the client and server.
    -g
    Disables file name globbing, which permits the use of wildcard characters (* and ?) in local file and path names. (See the glob command in the online Command Reference.)
    -s:filename
    Specifies a text file containing ftp commands; the commands automatically run after ftp starts. No spaces are allowed in this parameter. Use this switch instead of redirection (>).
    -a
    Use any local interface when binding data connection.
    -w:windowsize
    Overrides the default transfer buffer size of 4096.
    computer
    Specifies the computer name or IP address of the remote computer to connect to. The computer, if specified, must be the last paramete
    r on the line."
    I use tftp all of the time to transfer files in a similar manner. Test the transfer from the Windows command line and copy it into a VI. Pass the command line to system exec and wait until it's done.

  • I want to make a web page using labview.

    I want to make a web page using labview. I have the internet tool kit. Where do I start. Till now all I have used labview is for industrial I/O and mmi. I have used various TCP UDP comms for network purposes, but I haven't ever done anything with Web page design.

    The internet toolkit has some functions for generating and manipulating HTML, but it isn't really intended as a Web page authoring tool. I personally wouldn't use it for such a purpose, and I've done a good bit of Web programming in various different environments, including LabVIEW.
    The true power of the internet toolkit lies in its ability to create LabVIEW VIs to handle CGI requests, the way that perl or PHP might be used in more traditional Web development. In the old days, this was really the only way to provide Web interactivity with LabVIEW on the back end. Here is a document that outlines how to start up the toolkit's Web server and check out the CGI examples that ship with LabVIEW. This is the best jumping-off point for creating your own pages, if you are planning to use the CGI functionality in the internet toolkit. Just examine how the HTML pages and the CGI VIs in the examples work together and begin to try out your own VIs.
    Since LabVIEW 6i, LabVIEW has shipped with Remote Panel functionality that allows you to publish any LabVIEW VI in a Web browser without the burden of creating special CGI functionality. Furthermore, users can fully interact with the VI--buttons, graphs, string controls, etc. That's really a better solution if you want to make VIs available via the Web and aren't so much interested in CGI/transactional behavior. Check this out by choosing Tools >> Web Publishing Tool from LabVIEW.
    I hope this info gives you some ideas about starting points for Web functionality in LabVIEW. Please follow up if you have more specific questions.
    Best Regards,
    John

  • Invoke a web page from form 6i

    How can I invoke a web page from Oracle Forms 6i. The web built in has show_document but it only works with a form run from the web. Our forms are not deployed on web. Can anyone help???

    The command works except there's one problem. Once explorer is launched, it grey's out my form application screen and I can't use the application parallel with web. Once I close the browser then the control is returned back to form.
    Does any one know is it is possible to launch the web as well as not leave control from forms application. At this point I'm working with a work around to open another instance of application which is kinda not neat.
    Pleaseeeeeeee help.

  • Can I print web pages from firefox using adobe pro 9 (Not using PDF download) and if so how

    Can I print web pages from Firefox 3.6.12 using adobe pro 9 (not using PDF Download) and if so how.

    {Ctrl + P} - do you have a PDF Printer listed in the Printer - Name drop-down?

  • Can display Web pages from servlet but not applet?

    I have been able to display real-world Web pages from a simple servlet using JDeveloper 3.0, but can't figure out how to do the same from an applet. Any hints?

    My previous post had the detail...Probably a simple question from a relative novice. I'm having a problem just viewing web pages by calling them from a "list" of URLs in an applet. I built an applet with a split pane that has a JTree on one side and an "HTML viewing pane" on the other. I can click JTree nodes to display local html files, but I don't understand how to display web pages from the Internet. Do I need something like HyperlinkListener to make the jump to "hyper-world"???

  • TS3276 i am unable to open web pages from email links on my ipad

    I am unable to open web pages from email links on my ipad

    A few more details might help, if nobody else recognizes this.   
    What happens when you try to open the links?
    Can you post an example of a link that doesn't work?
    Is there any particular source for the mail with the (bad) links, or is mail from all sources failing?
    If you happen to know it, what's the format of the mail message?  (Maybe the message is an image?)
    Do the embedded links work as expected from an OS X system running Mail.app, or some system and some other other mail client?
    To view the link in iOS: if you press on and hold your finger on an embedded link in most contexts, iOS will show a pop-up with the link contents, and will offer to copy it.  You can use that to acquire and post the link.  If pressing and holding on the link doesn't offer the pop-up, the format of the link itself may not be valid, or it might not really be a link.

  • How to open web pages from japplet??

    Hi
    Does anybody know how to open web pages from java japplet??
    Any help is apreciated!
    zick

    the getAppletContext() method of the Applet class will get you an AppletContext, with which you can call the ShowDocument(URL url) or ShowDocument(URL url, String target) method...
    check it out at http://java.sun.com/j2se/1.4/docs/api/java/applet/AppletContext.html
    have a good one :)
    Jay

  • Why can't I print a web page from my Android 4.1 phone to my 8500a printer? e-print is working.

    Why can't I print a web page from my Samsung Android 4.1 to my Officejet Pro 8500A. eprint is working, so I can send e-mails to my e-print address, but when I try to print a web page, it says that I don't have a printer. Can someone help me with this? 
    This question was solved.
    View Solution.

    Just received an update to the Android version of HP ePrint.
    It now has the ability to print web pages!  Thanks HP!  
    WyreNut
    I am a Volunteer here, not employed by HP.
    You too can become an HP Expert! Details HERE!
    If my post has helped you, click the Kudos Thumbs up!
    If it solved your issue, Click the "Accept as Solution" button so others can benefit from the question you asked!

  • Opening a WEB page from FORMS CS & WebForms

    Hi,
    We would like to open a Web Page from a forms running in
    client/server as well as from a form runningover the web.
    Over the web, we plan to use SHOW_DOWUMENT (Even tough it seems
    broken, on forms 6.0, the only way we have got it working was by
    using the parameter that overwrites the current page (the form),
    we cannot have it open an URL in another window)
    In C/S mode, the SHOW DOCUMENT does not work. What is the proper
    way to lauch an URL in a browser in C/S mode ?
    Is there a way to determine if we're running in CS mode or Web
    Mode ? We would like to use the same code both on the web and in
    C/S
    Example pseudo code:
    if (Running in CS Mode) then
    open the URL using C/S method
    else
    open the URL with show dowument
    fi
    Thanks
    null

    use '_blank' as parameter, not '_self'.
    Guy Dallaire (guest) wrote:
    : Hi,
    : We would like to open a Web Page from a forms running in
    : client/server as well as from a form runningover the web.
    : Over the web, we plan to use SHOW_DOWUMENT (Even tough it
    seems
    : broken, on forms 6.0, the only way we have got it working was
    by
    : using the parameter that overwrites the current page (the
    form),
    : we cannot have it open an URL in another window)
    : In C/S mode, the SHOW DOCUMENT does not work. What is the
    proper
    : way to lauch an URL in a browser in C/S mode ?
    : Is there a way to determine if we're running in CS mode or Web
    : Mode ? We would like to use the same code both on the web and
    in
    : C/S
    : Example pseudo code:
    : if (Running in CS Mode) then
    : open the URL using C/S method
    : else
    : open the URL with show dowument
    : fi
    : Thanks
    null

  • Opening a secure web page from oracle forms for credit card validation

    Hi All,
    I searched for the topic in the forms forum but couldn't find a solution.
    Requirement: As per some compliance, our application cannot do a credit card validation from our forms application, instead we need to use a java code which a third party will provide ,it's an iframe (they say, i am layman when it comes to Java, don't know what is it), but they say that, within your forms application you call our iframe do the credit card validation over there get a token of response back from us and use this token as a confirmation in your application.
    Problem: I could not find a solution anywhere wherein i can call a web page from forms. Now, this web page should be modal, i.e. unless i close this page i cannot access my forms application. Please guide me if anyone has done that.
    Secondly if i could make it work, how will i communicate with this external web page, like getting back some token value and use it back in my forms application. I am completely clueless.
    As we are using Oracle designer for generating forms, we cannot use a bean type thing as designer does not have the bean-item type defined!
    Appreciate if anyone could provide me pointers for a solution to this problem statement.
    We are on forms 9i -- Version 9.0.2.11.0
    Edited by: the_wing_rider on Jul 8, 2011 5:10 AM

    The simple way to do it is to use a PJC (java bean) + apache httpclient library..
    If you have a webservice than you can use Axis library and wsdl2java to create java classes from wsdl.
    also you can use httpclient library to simulate http protocol (request/response actions)..
    (for example.. you have a credit card number.. you post this number to specified URL and then you parse the response from credit card validation server)..
    Post here some documentation (specification) on how to call the credit card validation .. (maybe it's a secure webservice?)
    Here you have a httpclient library documentation:
    http://hc.apache.org/httpcomponents-client-ga/tutorial/html/index.html
    Also you can implement bean area in designer.. If you need help I can post here how we do it in our project..
    also look here: Call webservice from PJC over https protocol
    regards
    Peter
    Edited by: Peterv6i on Jul 8, 2011 3:35 PM

  • How do i Hyperlink to a web page from a java application?

    How do i Hyperlink to a web page from a java application using internet explorer as my default web browser?

    It's very simple.You can start any Application with the class Runtime. The command is an array consisting of the path of .exe and the file to be open.
    String [] cmd={path of IE+Filename.exe,"URL of your website"}
    try
    Runtime.getRuntime().exec(cmd);
    catch (Exception e)
    System.err.println(e.toString());
    }

  • Captivate 6: Can I hyperink to a web page from an image?

    In Captivate 6, can I hyperlink to a web page from an image?

    You can fill a smart shape with the image using the Texture button, but beware: choose a shape with the same size as the image. Maybe Sreekanth is telling the same, but I didn't get his 'assign custom image to it'? And if you want to have a pause for a shape button, you have to check it in the Timing accordion.
    Another approach is to put a click box on top of the image. You can open the URL in another window using the small triangle drop down list, and be sure to uncheck Continue Project to avoid that the playhead will continue.
    Lilybiri

  • I trying to publish a web page from iweb, but it doesn't recognize my MobileMe account

    I trying to publish a web page from iweb, but it doesn't recognize my MobileMe accouI trying to publish a web page from iweb, but it doesn't recognize my MobileMe account, what can I do?

    MobileMe has been discontinued for over 2 years now.  You'll need to find a new hosting server for your website.
    This may be of help to you: Life After MobileMe.

  • I just upgraded to Lion and switched my web page from MobileMe to Godaddy. But since upgrading to Lion a video I placed on my web page no longer shows up. instead I get "plug-in failure". That didn't happen until the Lion Upgrade what do I do?

    I just upgraded to Lion and switched my web page from MobileMe to Godaddy. But since upgrading to Lion a video I placed on my web page no longer shows up. instead I get "plug-in failure". That didn't happen until the Lion Upgrade what do I do?

    What's the format of your video? That will give you a hint as to what plugin is failing (or missing).
    If you don't know, what's the URL of your site - it shouldn't take long for someone to work out the specifics.

Maybe you are looking for

  • I can not share file from Jabber for Iphone and Android

    Hi guys. I have: CUCM9.1/Publisher y Subscriber System version: 9.1.1.41900-1 Presence/Publisher System version: 9.1.1.41900-1 Expressway x8.1.1 Cisco Cisco Expressway-E Expressway x8.1.1 Cisco Expressway-C Jabber for Android and Iphone 10.6 I do not

  • Excel_reference

    report ZUPLOADEXCELSHEETS. INCLUDE ole2incl . tables : vbap, vbak. data: begin of itab occurs 0,       posnr like vbap-posnr,       vbeln like vbak-vbeln,       end of itab. select vbeln        posnr        from vbap        up to 20 rows        into

  • Mac OS X 10.8. Login to iCloud via System Preferences invokes "You can't sign in at this time. Try signing it again."

    Mac OS X 10.8 "You can't sign in at this time. Try signing it again." after the attempt to login to iCloud via System Preferences. Console log is following: com.apple.iCloudHelper[530]: AOSKit ERROR: (System Preferences[497]) AOSKC (myApplyID): Faile

  • Corecenter doesn't show voltage correctly

    Hi everybody, I have one 875P (MS-6758)and i'm using the latest Corecenter version, BIOS version is 1.6. In the BIOS I have the CPU voltage at 1.550v as well in Corecenter for one P4 3ghz and I was wondering why in hell Corecenter was giving me readi

  • ComboBox hell

    I am trying to write code that will check whether the date entered by the user is valid. The following code works but only with the first month chosen e.g. if the user selects 31 Feburary the correct Dialog box will be displayed. I would like it so t