Difference between revisions of "DAQ1400 User Guide"

From Phidgets Support
Jump to: navigation, search
 
(3 intermediate revisions by one other user not shown)
Line 1: Line 1:
 
__NOINDEX__
 
__NOINDEX__
 +
__NOTOC__
 
<metadesc>The Versatile Input Phidget reads one 4-20mA, frequency output, PNP/NPN or 5V sensor, and provides 12 or 24V without an external supply.</metadesc>
 
<metadesc>The Versatile Input Phidget reads one 4-20mA, frequency output, PNP/NPN or 5V sensor, and provides 12 or 24V without an external supply.</metadesc>
 
[[Category:UserGuide]]
 
[[Category:UserGuide]]
==Getting Started==
+
==Part 1: Setup==
 
{{UGIntro|DAQ1400}}
 
{{UGIntro|DAQ1400}}
 
*[{{SERVER}}/products.php?product_id=DAQ1400 DAQ1400 - Versatile Input Phidget]
 
*[{{SERVER}}/products.php?product_id=DAQ1400 DAQ1400 - Versatile Input Phidget]
Line 19: Line 20:
 
<br clear="all">
 
<br clear="all">
 
{{UGIntroDone|DAQ1400}}
 
{{UGIntroDone|DAQ1400}}
 
==Using the DAQ1400==
 
  
 
{{UGcontrolpanel|DAQ1400}}
 
{{UGcontrolpanel|DAQ1400}}
  
{{ugVoltageInput|DAQ1400|}}
+
== Part 2: Using Your Phidget ==
*{{UGPowerSupplyDescription}}
+
  
{{ugCurrentInput|DAQ1400|}}
+
===About===
*{{UGPowerSupplyDescription}}
+
The Versatile Input Phidget is designed to connect to NPN/PNP digital sensors, 4-20mA sensors, 0-5V analog sensors that require 12/24V power supply, and pulse output sensors. The DAQ1400 is a general-purpose adapter to get almost any sensor working with Phidgets.
  
{{ugDigitalInput|DAQ1400|The large textbox in the example will toggle between ''true'' and ''false'' depending on the state of your sensor.}}
+
===Explore Your Phidget Channels Using The Control Panel===
*{{UGPowerSupplyDescription}}
+
*{{UGInputModeDescription}}
+
  
{{ugFrequencyCounter|DAQ1400}}
+
You can use your Control Panel to explore your Phidget's channels.
*{{UGPowerSupplyDescription}}
+
  
{{ugAddressingInformation}}
+
'''1.''' Open your Control Panel, and you will find the following channels:
  
===Using Your Own Program===
+
[[Image:DAQ1400_Panel.jpg|link=|center]]
  
You are now ready to start writing your own code for the device. The best way to do that is to start from our examples:
+
'''2.''' Double click on a channel to open an example program. Each channel belongs to a different channel class:
  
This Phidget is compatible with the {{ExampleLink|FrequencyCounter}}, the {{ExampleLink|VoltageInput}}, the {{ExampleLink|CurrentInput}} and the {{ExampleLink|DigitalInput}}.
+
{{UGC-Start}}
  
Once you have your example, you will need to follow the instructions on the page for your programming language to get it running. To find these instructions, select your programming language from the [[Software_Overview#Language_Support|Software Overview]] page.
+
{{UGC-Entry|Voltage Input:| Reads the 5V signal from an analog sensor|
 +
In your Control Panel, double click on "Voltage Input":
  
==Technical Details==
+
[[Image:DAQ1400-VoltageInput.jpg|center|link=]]}}
===Interfacing with sensors===
+
The DAQ1400 is capable of interfacing with a wide variety of sensors. This section will help you understand what the DAQ1400 is capable of, and how to use it.  
+
  
====Using the Voltage Input (0-5V)====
+
{{UGC-Entry|Current Input:| Reads the signal of a 4-20mA sensor|
 +
In your Control Panel, double click on "Current Input":
 +
 
 +
[[Image:DAQ1400-CurrentInput.jpg|center|link=]]}}
 +
 
 +
{{UGC-Entry|Digital Input:| Reads the signal of an NPN or PNP digital sensor|
 +
In your Control Panel, double click on "Digital Input":
 +
 
 +
[[Image:DAQ1400-DigitalInput.jpg|center|link=]]}}
 +
 
 +
{{UGC-Entry|Frequency Counter:| Reads the sensor that has a frequency output|
 +
In your Control Panel, double click on "Frequency Counter":
 +
 
 +
[[Image:DAQ1400-FrequencyCounter.jpg|center|link=]]}}
 +
 
 +
{{UGC-End}}
 +
 
 +
{{UG-Part3}}
 +
 
 +
== Part 4: Advanced Topics and Troubleshooting ==
 +
{{UGC-Start}}
 +
{{UGC-Addressing}}
 +
{{UGC-Entry|Interfacing with a 0-5V Sensor||
 +
[[Image:DAQ1400_VoltageInput_Functional.jpg|link=|850px]]
 
[[Image:DAQ1400_VoltageInput_Diagram.jpg|link=|350px|right]]
 
[[Image:DAQ1400_VoltageInput_Diagram.jpg|link=|350px|right]]
 
This mode measures an input between 0V and 5V. To connect your 0-5V sensor to the DAQ1400, wire the sensor to the terminals as pictured in the diagram. You may need to refer to the datasheet for your sensor to determine which wire is which.
 
This mode measures an input between 0V and 5V. To connect your 0-5V sensor to the DAQ1400, wire the sensor to the terminals as pictured in the diagram. You may need to refer to the datasheet for your sensor to determine which wire is which.
<br clear="all">
+
}}
 
+
{{UGC-Entry|Interfacing with a 4-20mA Sensor||
====Using the Current Input====
+
[[Image:DAQ1400_CurrentInput_Functional.jpg|link=|850px]]
 
[[Image:DAQ1400_CurrentInput_Diagram.jpg|link=|350px|right]]
 
[[Image:DAQ1400_CurrentInput_Diagram.jpg|link=|350px|right]]
This mode is designed to interface a [https://en.wikipedia.org/wiki/Current_loop 4-20mA] sensor, which is a common industrial standard. To connect your 4-20mA sensor to the DAQ1400, wire the sensor to the terminals as pictured in the diagram.
+
This mode is designed to interface a [https://en.wikipedia.org/wiki/Current_loop 4-20mA sensor], which is a common industrial standard. To connect your 4-20mA sensor to the DAQ1400, wire the sensor to the terminals as pictured in the diagram.
  
 
Even though this mode is intended for this specific purpose, you can also use it as a general-purpose current sensor, in which case it can measure current values between 0.5mA and 20mA (Measuring below 0.5mA is not recommended).
 
Even though this mode is intended for this specific purpose, you can also use it as a general-purpose current sensor, in which case it can measure current values between 0.5mA and 20mA (Measuring below 0.5mA is not recommended).
<br clear="all">
+
}}
 +
{{UGC-Entry|Interfacing with a PNP or NPN Sensor||
 +
[[Image:DAQ1400_DigitalInput_Functional.jpg|link=|850px]]
 +
[[Image:DAQ1400_DigitalInput_Diagram.jpg|link=|350px|right]]
 +
Some industrial sensors have a simple true/false value which can be read by a digital input. Many proximity or movement sensors have this kind of output. It is common that these sensors will require a 12V or 24V power supply, so other Digital Input Phidgets are not a complete solution in this case. A digital sensor will either be PNP or NPN:
  
====Using the Digital Input====
+
* An NPN sensor will switch the sensor line to ground whenever the sensor activates.
[[Image:DAQ1400_DigitalInput_Diagram.jpg|link=|350px|right]]
+
Some industrial sensor have a simple true/false value which can be read by a digital input. Many proximity  or movement sensors have this kind of output. It is common that these sensors will require a 12V or 24V power supply, so other Digital Input Phidgets are not a complete solution in this case. A digital sensor will either be PNP or NPN:
+
* An NPN sensor will switch the sensor line to ground whenever the sensor activates.  
+
 
* A PNP sensor will switch the sensor line to power whenever the sensor activates.
 
* A PNP sensor will switch the sensor line to power whenever the sensor activates.
  
Normally, you'd need a different kind of digital input to interface these two types of sensors. Luckily, the DAQ1400 can read either one; all you have to do is set the ''Input Mode'' property to the correct type. To connect your digital sensor to the DAQ1400, wire the sensor to the terminals as pictured in the diagram.
+
Normally, you'd need a different kind of digital input to interface these two types of sensors. Luckily, the DAQ1400 can read either one; all you have to do is set the {{Code|Input Mode}} property to the correct type (see the Phidget22 API for details). To connect your digital sensor to the DAQ1400, wire the sensor to the terminals as pictured in the diagram.
<br clear="all">
+
}}
 
+
{{UGC-Entry|Interfacing with a Pulse Output Sensor||
====Using the Frequency Counter====
+
[[Image:DAQ1400_FrequencyInput_Functional.jpg|link=|850px]]
 
[[Image:DAQ1400_FrequencyInput_Diagram.jpg|link=|350px|right]]
 
[[Image:DAQ1400_FrequencyInput_Diagram.jpg|link=|350px|right]]
Sensors that measure using rotation such as flow meters or anemometers usually have a pulse output. For example, a flow sensor might send a 5V pulse down the line every time the turbine makes a full rotation. Using this information with timestamps, you can calculate the turbine speed. While you could theoretically use a Phidget with a Digital Input to read this kind of signal, most digital input boards are not designed to read pulse signals that change this frequently, so they'll miss pulses and calculate the wrong speed. The DAQ1400 is specially designed to read these high frequency pulse signals when in Frequency Input mode.
+
Sensors that measure using rotation such as flow meters or anemometers usually have a pulse output. For example, a flow sensor might send a 5V pulse down the line every time the turbine makes a full rotation. Using this information with timestamps, you can calculate the turbine speed. While you could theoretically use a Phidget with a Digital Input to read this kind of signal, most digital input boards are not designed to read pulse signals that change this frequently, so they will miss pulses and calculate the wrong speed. The DAQ1400 is specially designed to read these high frequency pulse signals when in Frequency Input mode.
  
 
To connect your sensor to the DAQ1400, wire the sensor to the terminals as pictured in the diagram.
 
To connect your sensor to the DAQ1400, wire the sensor to the terminals as pictured in the diagram.
  
=====Pull-Down Resistor=====
 
 
If your sensor frequency is faster than 600Hz, you may seem to be 'maxing out' the DAQ1400. This is because the pull-down resistance is too weak to pull the signal down. To strengthen the pull-down, put a 10KΩ resistor across the Digital and Gnd terminals.
 
If your sensor frequency is faster than 600Hz, you may seem to be 'maxing out' the DAQ1400. This is because the pull-down resistance is too weak to pull the signal down. To strengthen the pull-down, put a 10KΩ resistor across the Digital and Gnd terminals.
  
<br clear="all">
+
}}
 
+
{{UGC-End}}
===Current Consumption===
+
Current consumption of the DAQ1400 will vary depending on which mode you're using:
+
 
+
{|class = "wikitable" style="text-align: center"
+
| align="center" style="background:#f0f0f0;"|'''Mode '''
+
| align="center" style="background:#f0f0f0;"|'''Unconfigured Current Consumption (mA)'''
+
| align="center" style="background:#f0f0f0;"|'''Configured Current Consumption (mA)'''
+
|-
+
|VoltageInput
+
|0.023
+
|8
+
|-
+
|CurrentInput
+
|0.023
+
|8
+
|-
+
|DigitalInput
+
|0.022
+
|9.5
+
|-
+
|FrequencyInput
+
|0.023
+
|9.7
+
|-
+
|}
+
 
+
These figures are based on the 12V power supply. Increasing the power supply to 24V adds approximately 0.7mA of current consumption.
+
 
+
{{UGnext|}}
+

Latest revision as of 19:09, 31 July 2020


Part 1: Setup

Welcome to the DAQ1400 user guide! In order to get started, make sure you have the following hardware on hand:


Next, you will need to connect the pieces:

DAQ1400 Functional.jpeg
  1. Connect the DAQ1400 to the VINT Hub using the Phidget cable.
  2. Connect the VINT Hub to your computer with a USB cable.
  3. Connect sensor or device to the appropriate input on the DAQ1400. For details, see the technical section.


Now that you have everything together, let's start using the DAQ1400!

Phidget Control Panel

In order to demonstrate the functionality of the DAQ1400, the Phidget Control Panel running on a Windows machine will be used.


The Phidget Control Panel is available for use on both macOS and Windows machines.

Windows

To open the Phidget Control Panel on Windows, find the Ph.jpg icon in the taskbar. If it is not there, open up the start menu and search for Phidget Control Panel

Windows PhidgetTaskbar.PNG

macOS

To open the Phidget Control Panel on macOS, open Finder and navigate to the Phidget Control Panel in the Applications list. Double click on the Ph.jpg icon to bring up the Phidget Control Panel.


For more information, take a look at the getting started guide for your operating system:


Linux users can follow the getting started with Linux guide and continue reading here for more information about the DAQ1400.

First Look

After plugging the DAQ1400 into your computer and opening the Phidget Control Panel, you will see something like this:

DAQ1400 Panel.jpg


The Phidget Control Panel will list all connected Phidgets and associated objects, as well as the following information:

  • Serial number: allows you to differentiate between similar Phidgets.
  • Channel: allows you to differentiate between similar objects on a Phidget.
  • Version number: corresponds to the firmware version your Phidget is running. If your Phidget is listed in red, your firmware is out of date. Update the firmware by double-clicking the entry.


The Phidget Control Panel can also be used to test your device. Double-clicking on an object will open an example.

Part 2: Using Your Phidget

About

The Versatile Input Phidget is designed to connect to NPN/PNP digital sensors, 4-20mA sensors, 0-5V analog sensors that require 12/24V power supply, and pulse output sensors. The DAQ1400 is a general-purpose adapter to get almost any sensor working with Phidgets.

Explore Your Phidget Channels Using The Control Panel

You can use your Control Panel to explore your Phidget's channels.

1. Open your Control Panel, and you will find the following channels:

DAQ1400 Panel.jpg

2. Double click on a channel to open an example program. Each channel belongs to a different channel class:

Voltage Input: Reads the 5V signal from an analog sensor

In your Control Panel, double click on "Voltage Input":

DAQ1400-VoltageInput.jpg
Current Input: Reads the signal of a 4-20mA sensor

In your Control Panel, double click on "Current Input":

DAQ1400-CurrentInput.jpg
Digital Input: Reads the signal of an NPN or PNP digital sensor

In your Control Panel, double click on "Digital Input":

DAQ1400-DigitalInput.jpg
Frequency Counter: Reads the sensor that has a frequency output

In your Control Panel, double click on "Frequency Counter":

DAQ1400-FrequencyCounter.jpg

Part 3: Create your Program

1. Setting up your Programming Environment

2. Phidget Programming Basics

Part 4: Advanced Topics and Troubleshooting

How do I know what channel, serial number, or hub port to use in my program?

Before you open a Phidget channel in your program, you can set these properties to specify which channel to open. You can find this information through the Control Panel.

1. Open the Control Panel and double-click on the red map pin icon:

The locate Phidget button is found in the device information box

2. The Addressing Information window will open. Here you will find all the information you need to address your Phidget in your program.

All the information you need to address your Phidget


See the Phidget22 API for your language to determine exact syntax for each property.

Interfacing with a 0-5V Sensor

DAQ1400 VoltageInput Functional.jpg

DAQ1400 VoltageInput Diagram.jpg

This mode measures an input between 0V and 5V. To connect your 0-5V sensor to the DAQ1400, wire the sensor to the terminals as pictured in the diagram. You may need to refer to the datasheet for your sensor to determine which wire is which.

Interfacing with a 4-20mA Sensor

DAQ1400 CurrentInput Functional.jpg

DAQ1400 CurrentInput Diagram.jpg

This mode is designed to interface a 4-20mA sensor, which is a common industrial standard. To connect your 4-20mA sensor to the DAQ1400, wire the sensor to the terminals as pictured in the diagram.

Even though this mode is intended for this specific purpose, you can also use it as a general-purpose current sensor, in which case it can measure current values between 0.5mA and 20mA (Measuring below 0.5mA is not recommended).

Interfacing with a PNP or NPN Sensor

DAQ1400 DigitalInput Functional.jpg

DAQ1400 DigitalInput Diagram.jpg

Some industrial sensors have a simple true/false value which can be read by a digital input. Many proximity or movement sensors have this kind of output. It is common that these sensors will require a 12V or 24V power supply, so other Digital Input Phidgets are not a complete solution in this case. A digital sensor will either be PNP or NPN:

  • An NPN sensor will switch the sensor line to ground whenever the sensor activates.
  • A PNP sensor will switch the sensor line to power whenever the sensor activates.

Normally, you'd need a different kind of digital input to interface these two types of sensors. Luckily, the DAQ1400 can read either one; all you have to do is set the Input Mode property to the correct type (see the Phidget22 API for details). To connect your digital sensor to the DAQ1400, wire the sensor to the terminals as pictured in the diagram.

Interfacing with a Pulse Output Sensor

DAQ1400 FrequencyInput Functional.jpg

DAQ1400 FrequencyInput Diagram.jpg

Sensors that measure using rotation such as flow meters or anemometers usually have a pulse output. For example, a flow sensor might send a 5V pulse down the line every time the turbine makes a full rotation. Using this information with timestamps, you can calculate the turbine speed. While you could theoretically use a Phidget with a Digital Input to read this kind of signal, most digital input boards are not designed to read pulse signals that change this frequently, so they will miss pulses and calculate the wrong speed. The DAQ1400 is specially designed to read these high frequency pulse signals when in Frequency Input mode.

To connect your sensor to the DAQ1400, wire the sensor to the terminals as pictured in the diagram.

If your sensor frequency is faster than 600Hz, you may seem to be 'maxing out' the DAQ1400. This is because the pull-down resistance is too weak to pull the signal down. To strengthen the pull-down, put a 10KΩ resistor across the Digital and Gnd terminals.