Vernier SensorDAQ User Manual page 15

Hide thumbs Also See for SensorDAQ:
Table of Contents

Advertisement

Create this starter VI by opening AnalogInEx01_Ch1.vi and removing the code for
setting chart properties, removing the documentation, and altering the code in the
While Loop so that the loop ends only when the Stop button is pressed. Or, start with
a brand new VI and create this simple VI from scratch using the Setup, Start, Read,
and Stop SensorDAQ driver subVIs. You have easy access to the driver subVIs in
the SensorDAQ palette found in the Use Libraries function palette.
This program is already configured for collecting from sensors connected to Ch.1–3.
We must also configure for doing analog output and digital output tasks. The first
subVI, SensorDAQ_Setup.vi, provides input nodes to setup these tasks.
1.
Locate your mouse above the "Config AO Terminal (OFF)" node (located at the
bottom, left corner of the Setup subVI) and right click your mouse. A pop-up list
appears; Select Create>Constant. The default input for this node appears; click
on it and select "ON" to configure the SensorDAQ to perform Analog Output.
2.
Move your mouse to the "Config DIO Terminals" node (bottom right of the
Setup subVI) and right click your mouse. Select Create>Constant. A cluster of
four elements appears. The top element is the control for the PO.0 screw
terminal, the element below that is the control for the PO.1 screw terminal, etc.
Each of these elements has a default setting of "OFF". Click on the top element
and choose "ON-Digital Out". The PO.0 screw terminal is now configured to
perform digital output.
In the overview of the program, turn on an LED if the SensorDAQ's analog output
voltage goes above a certain threshold value. We will now create the threshold
control and compare the threshold value to our analog output voltage (as read by the
SensorDAQ User's Manual
12

Advertisement

Table of Contents
loading

Related Products for Vernier SensorDAQ

Table of Contents