User manual

Product information34
Copyright © 2011 Pico Technology Ltd. All rights reserved.usbdrdaq.en
3.7.4
Examples of digital out 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).
Within PicoScope, activate the
Temp
channel only (refer to displaying channels).
Under the
Tools
menu, choose
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 choose
OK
.
Right click the oscilloscope window and choose
Masks>Edit Mask
.
Within the mask dialogue, 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
Temp
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, 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).