Example Code

IR Sharp sensor GP2D120XJ00F distance

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.

    Hardware

  • Instrument Control

    Driver

  • NI VISA

Code and Documents

Attachment

 Overview

The VI allows the user to use the ir sharp sensor to measure distances witn ni 6008.

 

Requirement

Requirement:
Software:
    Labview 2012 (or compatible)
    NI-Daqmx
Hardware:
    IR Sharp sensor GP2D120XJ00F
    USB-6008

 

Steps to Implement or Execute Code

  1. Connect a 330 uF condenser between signal out and ground
  2. Run the VI

 

Additional Information or References

NI Snippet

66.png

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