SensorDAQ User's Manual
11
3.
Wire an electronic device, such as an LED with resistor, to the screw terminal.
Connect the positive wire to screw terminal 1 (P0.0) and the negative wire to
screw terminal 5 (ground).
Note: You can control which lines are activated when the threshold is reached by
clicking the LINES boxes. This is handy when you are connecting multiple devices.
4.
Set the
“
Threshold” value in the control above to 25 (as in Celsius).
5.
Run the VI by clicking the start button
.
6.
Hold the temperature probe in your hand. The LED connected to the screw
terminal will light up when the sensor's value rises to 25 ºC.
7.
Data will be collected until you click the STOP button.
Working with Block Diagrams
The example VIs included on your CD are meant to show you the basic functionality
of SensorDAQ, and how to program these functions in LabVIEW. Most users will
eventually need to create their own custom LabVIEW VI. One method for creating
your own custom VI is to build off of an existing example. The following steps show
how to take an existing program and modify it to fit the requirements of an
experiment.
Consider an experiment which requires a user to control SensorDAQ’s output
voltage, while monitoring this voltage with a Voltage Probe connected to Ch. 1. If
this output voltage goes above a certain threshold value, a digital output line is
turned high, lighting an attached LED warning light.
Hardware setup:
1.
Attach wires to AO and GND terminals of the screw terminal.
2.
Connect the V-10V Voltage Probe to Ch. 1
3.
Connect the Voltage Probe leads to AO and GND wires to monitor analog
output.
4.
Wire the LED with resistor to PO.0 and GND.
Create Program:
Note: You can find the completed VI (ControlEx10_Ch1MonitorsAnOut.vi) in your
EXAMPLES\Feedback and Control folder.
Start with a simple VI that can collect data from Ch. 1 and send it to a chart.