Example Code

Search Google with DataSockets Using LabVIEW

Products and Environment

This section reflects the products and operating system used to create the example.

To download NI software, including the products shown below, visit ni.com/downloads.

    Software

  • LabVIEW

Code and Documents

Attachment

Overview

Search the google and read the datasocket data back.


Description
Use Google URL building to search Google and return the html web page, utilizes Data Sockets for this operation whereas a lot of previous examples use ActiveX.

 
Requirements

  • LabVIEW 2012 (or compatible)


Steps to Implement or Execute Code

  • Select keyword to search.
  • Run the program

 

Additional Information or References
VI Snippet

2-267.png

**This document has been updated to meet the current required format for the NI Code Exchange.**

Applications Engineer

Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.

Comments
stubon
Member
Member
on

Hi, Any chance of a 2009 version?

Thanks

rsw
NI Employee (retired)
on

2009 version uploaded

Applications Engineer
D*
Member
Member
on

Neat!

GoogleSearch.png

You can also wire the string data type directly to the DS read VI to have it return the data in string form, instead of using the Variant to Data function.