USB DrDAQ User's Guide
29
Copyright © 2013 Pico Technology Ltd. All rights reserved.
usbdrdaq.en r4
2.10.4 Examples of digital output use
PicoScope
The following is a short example of how to activate an LED via a digital output on the
USB DrDAQ using the
Mask
and
Alarm
functions of PicoScope. With USB DrDAQ
connected and PicoScope open:
Connect the LED to the GND connection on the USB DrDAQ and digital connection
2
(refer to Connections).
Note: Any digital connection can be used but we are using
2
in this example).
In PicoScope, activate the
Temp
).
Under the
Tools
menu, select
Masks
>
Add Masks
.
Choose
Mask of Temp
within the
Available Masks
area, or click
Generate
if it
doesn't show in the Library list.
Click
Apply
and select
OK
.
Right click the oscilloscope window and choose
Masks
>
Edit Mask
.
Within the mask dialog, adjust the two low values to 28°C.
Right click the oscilloscope window and choose
Masks
>
Exit Mask Edit
.
Under
Tools
menu, choose
Alarms
.
Under
Event
, choose
Mask(s) Fail
(ensure it is enabled).
Choose
Add
.
Under
Action
menu, choose
Digital Output
.
Set
Chann
to
Digital Output 2
, and
High
.
Choose
OK
.
Click
Apply
and choose
OK
.
Start the trace and place the tip of a finger onto the temperature sensor on the USB
DrDAQ. The trace should rise, and upon overlapping the mask, the LED connected
to digital connection 2 should illuminate.
PicoLog
The following is a short example of how to activate an LED via a digital output on the
USB DrDAQ using the
Alarm
function of PicoLog. With USB DrDAQ connected and
PicoLog open:
Connect the LED to the
GND
connection on the USB DrDAQ and digital connection 2
(refer to Connections).
Note: Any digital connection can be used but we are using
2
in this example).
Choose
File
>
New settings
.
Click
OK
.
Click
OK
.
Choose
Converter type: DrDAQ (USB).
Click
OK
.
Click
Add
.
Next to
Channel
,
choose
Temperature.
Choose
Options
.
Choose
Alarm
.
Select
Enable Alarm
.
Enter the
Upper threshold 28°C.
Select
Digital Output 2
.
Click the next four
OK
buttons
.
Place a finger tip on the
Temp
sensor and an alarm will trigger once the
temperature goes above the upper threshold entered earlier. When this happens
the LED will illuminate, along with the red alarm icon in PicoLog. When you remove
your finger, the LED will extinguish (once the temperature drops back below the
upper threshold value).
6