LabVIEW Interface for Arduino Documents

cancel
Showing results for 
Search instead for 
Did you mean: 

Arduino Example: Photocell Read

Before opening this example, make sure to install the LabVIEW Interface for Arduino.

Description:

This example shows how to read a photocell on the Arduino using the LabVIEW Interface for Arduino.

Tutorial:

  1. Make sure you have installed the LabVIEW Interface for Arduino.
  2. Open the Photocell Example VI (search for "Arduino" in the example finder once the toolkit is installed).
  3. On the front panel, select the Arduino analog pin connected to the photocell.
  4. Build the circuit schematic shown on the block diagram.
  5. Connect your Arduino to your PC with a USB cable. Optionally you can specify the COM port associated with your Arduino to the VISA resource terminal of the Init.vi to decrease the time require for LabVIEW to connect to the Arduino.
  6. Click Run.
  7. Vary the amount of light reaching the photocell (cover it with your hand) and watch the gauge and digital display on the front panel update.

SS-2011-05-14_11.45.56.png

SS-2011-05-14_11.46.06.png

Comments
nadavziv
Member
Member
on

Hi,

I get error 5002.

How do I check arduino connectivity with LV?

How do I change baud number?

Does it work with LINX?

Thanks,

Nadav.

MitchA
Member
Member
on

Nothing works with Linx.  What a horrible transition from Lifa.  Seems the Linx library would have a few more VIs before they stop supporting Lifa.

(This was my own issue due to ignorance of Lifa and Linx)

erichayes2
Member
Member
on

How do you modify this code and circuit to add multiple photocells?

I tried duplicating the existing code from the example and adding a second photocell-resistor loop of the same ground and 5V, plus second analog input. This did not work. Why?

Contributors