DAQ1400 User Guide: Difference between revisions

From Phidgets Support
(Created page with "Category:UserGuide __NOTOC__ 300px|right|link= ===Required Hardware=== * A DAQ1400 Versatile Input Phidget * A VINT Hub * A 3-wire senso...")
 
No edit summary
(33 intermediate revisions by 3 users not shown)
Line 1: Line 1:
__NOINDEX__
<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]]
__NOTOC__
==Getting Started==
[[Image:DAQ1400_Functional.jpeg|300px|right|link=]]
{{UGIntro|DAQ1400}}
===Required Hardware===
*[{{SERVER}}/products.php?product_id=DAQ1400 DAQ1400 - Versatile Input Phidget]
* {{VINTHub}}
* {{CT|PhidgetCable|Phidget cable}}
* USB cable and computer
* something to use with the DAQ1400 (e.g. 4-20mA sensor, frequency output device, etc.)


* A DAQ1400 Versatile Input Phidget
* A VINT Hub
* A 3-wire sensor cable
* A USB cable
* A computer
* Sensors or devices to test the various inputs of the DAQ1400


===Connecting the Pieces===
Next, you will need to connect the pieces:
 
[[Image:DAQ1400_Functional.jpeg|600px|right|link=]]
# Connect the DAQ1400 to the VINT Hub using the sensor cable.
# Connect the DAQ1400 to the VINT Hub using the Phidget cable.
# Connect the VINT Hub to your computer with a USB cable.
# Connect the VINT Hub to your computer with a USB cable.
# Connect sensor or device to the DAQ1400's appropriate inputs. For details, see the technical section.
# Connect sensor or device to the appropriate input on the DAQ1400. For details, see the [[#Technical Details|technical section]].


<br clear="all">
<br clear="all">
{{UGIntroDone|DAQ1400}}


==Testing Using Windows==
==Using the DAQ1400==


{{UGcontrolpanel|DAQ1400}}
{{UGcontrolpanel|DAQ1400}}


{{ugVoltageInput}}
{{ugVoltageInput|DAQ1400|}}
*{{UGPowerSupplyDescription}}
 
{{ugCurrentInput|DAQ1400|}}
*{{UGPowerSupplyDescription}}


{{ugCurrentInput}}
{{ugDigitalInput|DAQ1400|The large textbox in the example will toggle between ''true'' and ''false'' depending on the state of your sensor.}}
*{{UGPowerSupplyDescription}}
*{{UGInputModeDescription}}


{{ugDigitalInputISA}}
{{ugFrequencyCounter|DAQ1400}}
*{{UGPowerSupplyDescription}}


{{ugFrequencyCounter}}
{{ugAddressingInformation}}


{{UGotheros}}
{{ugUsingYourOwnProgram|DAQ1400}}


==Technical Details==
==Technical Details==
===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)====
[[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.
<br clear="all">
====Using the Current Input====
[[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.


===Connection Modes===
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">


The DAQ1400 is designed to connect to a wide variety of sensors (but only one sensor at a time!). This section will explain how to hook up each type:
====Using the Digital Input====
[[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.


==== Voltage Input (0-5V) ====
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.
<br clear="all">


* 12/24v power supply
====Using the Frequency Counter====
[[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.


==== Current Input (0.5 - 20mA) ====
To connect your sensor to the DAQ1400, wire the sensor to the terminals as pictured in the diagram.


* intended for 4-20mA sensors, but can be used for anything 0.5 - 20mA
=====Pull-Down Resistor=====
* the sensor can measure below 0.5mA, but is unreliable in this range
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.


==== Digital Input ====
<br clear="all">


* PNP / NPN
===Current Consumption===
Current consumption of the DAQ1400 will vary depending on which mode you're using:


==== Frequency/Counter Input ====
{|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
|-
|}


*With typical industrial sensors, I was only able to achieve about 600Hz max due to the device not pulling down the voltage fast enough. (we use a 10k pulldown) Customers can attach external resistors to create a stronger pull down if higher frequencies are desired.
These figures are based on the 12V power supply. Increasing the power supply to 24V adds approximately 0.7mA of current consumption.


{{UGnext|}}
{{UGnext|}}

Revision as of 16:28, 17 October 2019


Getting Started

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!

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.

Voltage Input

Double-click on the Voltage Input object in order to run the example:

DAQ1400 VoltageInput Example.jpg


General information about the selected object will be displayed at the top of the window. You can also experiment with the following functionality:

  • Modify the change trigger and/or data interval value by dragging the sliders. For more information on these settings, see the data interval/change trigger page.
  • Use the Power Supply drop-down menu to select an appropriate power supply for the sensor you are powering.

Current Input

Double-click on the Current Input object in order to run the example:

DAQ1400 CurrentInput Example.jpg


General information about the selected object will be displayed at the top of the window. You can also experiment with the following functionality:

  • Modify the change trigger and/or data interval value by dragging the sliders. For more information on these settings, see the data interval/change trigger page.
  • Use the Power Supply drop-down menu to select an appropriate power supply for the sensor you are powering.

Digital Input

Double-click on a Digital Input object in order to run the example:

DAQ1400 DigitalInput Example.jpg

General information about the selected object will be displayed at the top of the window. You can also experiment with the following functionality:

  • The large textbox in the example will toggle between true and false depending on the state of your sensor.

For more information about Digital Inputs, take a look at the Digital Input Primer

  • Use the Power Supply drop-down menu to select an appropriate power supply for the sensor you are powering.
  • Use the Input Mode drop-down menu to select an appropriate input mode for the sensor you are using.

Frequency Counter

Double-click on the Frequency Counter object in order to run the example:

DAQ1400 FrequencyCounter Example.jpg


General information about the selected object will be displayed at the top of the window. You can also experiment with the following functionality:

  • Frequency: the average frequency calculated from the pulses in the event so far.
  • Total Count: the total number of pulses since opening the example.
  • Total Time: the total time in milliseconds that has elapsed since opening this example.
  • Enter a cutoff frequency in the Frequency Cutoff(Hz) textbox and the DAQ1400 will ignore frequencies below the specified value.
  • Use the Power Supply drop-down menu to select an appropriate power supply for the sensor you are powering.

Finding The Addressing Information

Before you can access the device in your own code, and from our examples, you'll need to take note of the addressing parameters for your Phidget. These will indicate how the Phidget is physically connected to your application. For simplicity, these parameters can be found by clicking the button at the top of the Control Panel example for that Phidget.

The locate Phidget button is found in the device information box

In the Addressing Information window, the section above the line displays information you will need to connect to your Phidget from any application. In particular, note the Channel Class field as this will be the API you will need to use with your Phidget, and the type of example you should use to get started with it. The section below the line provides information about the network the Phidget is connected on if it is attached remotely. Keep track of these parameters moving forward, as you will need them once you start running our examples or your own code.

All the information you need to address your Phidget

Using Your Own Program

You are now ready to start writing your own code for the device. The best way to do that is to start from our Code Samples.

Select your programming language of choice from the drop-down list to get an example for your device. You can use the options provided to further customize the example to best suit your needs.

Code Sample Choose Language.png


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 Programming Languages page.

Technical Details

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)

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.

Using the Current Input

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).

Using the Digital Input

DAQ1400 DigitalInput Diagram.jpg

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.

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.

Using the Frequency Counter

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'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.

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.


Current Consumption

Current consumption of the DAQ1400 will vary depending on which mode you're using:

Mode Unconfigured Current Consumption (mA) 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.

What to do Next

  • Programming Languages - Find your preferred programming language here and learn how to write your own code with Phidgets!
  • Phidget Programming Basics - Once you have set up Phidgets to work with your programming environment, we recommend you read our page on to learn the fundamentals of programming with Phidgets.