Difference between revisions of "DAQ1400 User Guide"

From Phidgets Support
Jump to: navigation, search
(Connection Modes)
(Fixed links)
Line 63: Line 63:
 
{{hiddenh4|Digital Input}}
 
{{hiddenh4|Digital Input}}
  
Some industrial sensor have a simple true-or-false value which can be read by a digital input. Many proximity  or movement sensors have this kind of output. Again, it is common that these sensors will require a 12V or 24V power supply, so ordinary [[Digital Input Primer|digital input Phidgets] are not a complete solution in this case. A digital sensor will either be '''PNP''' or '''NPN''':  
+
Some industrial sensor have a simple true-or-false value which can be read by a digital input. Many proximity  or movement sensors have this kind of output. Again, it is common that these sensors will require a 12V or 24V power supply, so ordinary [[Digital Input Primer|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.  
 
* 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.
Line 76: Line 76:
 
{{hiddenh4|Frequency Input}}
 
{{hiddenh4|Frequency Input}}
  
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 [[Digital Input Primer|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 FrequencyInput 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 [[Digital Input Primer|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 FrequencyInput Mode.
  
 
To connect your sensor to the DAQ1400,
 
To connect your sensor to the DAQ1400,

Revision as of 18:57, 1 June 2017

DAQ1400 Functional.jpeg

Required Hardware

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

Connecting the Pieces

  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 DAQ1400's appropriate inputs. For details, see the technical section.


Testing Using Windows

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 {{{2}}} in order to run the example: [[Image:{{{1}}}_VoltageInput_Example.jpg|center|link=]]


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.

Current Input

Double-click on the Current Input object {{{2}}} in order to run the example: [[Image:{{{1}}}_CurrentInput_Example.jpg|center|link=]]


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.

Digital Input

[[Image:{{{1}}}_DigitalInput_Example.jpg|right|link=]]

When you double click on an Digital Input object, a window like the one pictured will open.

  • At the top of the window, information about your device and the properties of this particular channel will be listed.
  • In the middle, there is a box that will display "true" or "false" depending on the state of the digital input. Be sure you select the proper mode (NPN / PNP) for your particular sensor. If you have a switch, you can test this input by connecting the digital input terminal of the sensor to one of the switch's terminals, and the sensor's ground terminal to another. Pressing the switch should cause the input to read "true".
  • At the bottom of the window, there is a selection for the power supply. The power supply setting must be set to the voltage expected by the sensor connected to the adapter.


Frequency Counter

Double-click on the Frequency Counter object in order to run the example: [[Image:{{{1}}}_FrequencyCounter_Example.jpg|center|link=]]


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 {{{1}}} will ignore frequencies below the specified value.

Testing Using Mac OS X

  1. Go to the Quick Downloads section on the Mac OS X page.
  2. Download and run the Phidget OS X Installer
  3. Click on System Preferences >> Phidgets (under Other) to activate the Preference Pane
  4. Make sure your device is properly attached
  5. Double click on your device's objects in the listing to open them. The Preference Pane and examples will function very similarly to the ones described above in the Windows section.

Testing Using Linux

For a general step-by-step guide on getting Phidgets running on Linux, see the Linux page.

Using a Remote OS

We recommend testing your Phidget on a desktop OS before moving on to remote OS. Once you've tested your Phidget, you can go to the PhidgetSBC, or iOS pages to learn how to proceed.

Technical Details

Connection Modes

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:

Voltage Input (0-5V)

This mode reads a DC voltage between 0 and 5 volts, similar to the analog input on a Phidget InterfaceKit or DAQ1000. However, many industrial sensors require 12V or 24V power supplies, which InterfaceKits and similar devices are unable to provide. The DAQ1400 Versatile Input Phidget fills this niche by providing 12 or 24V, which you can select in software by setting the PowerSupply property.

To connect your 0-5V sensor to the DAQ1400,

  • Connect the ground wire to the Gnd terminal on the DAQ1400
  • Connect the power wire to the 12V/24V terminal on the DAQ1400
  • Connect the 0-5V signal wire to the Analog terminal on the DAQ1400

You may need to refer to the datasheet for your sensor to determine which wire is which.

Current Input

This mode is designed to interface a 4-20mA sensor, which is a common industrial standard. 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.5 and 20mA (The sensor can technically measure all the way down to 0 amps, but is unreliable for values below 0.5mA).

To connect your 4-20mA sensor to the DAQ1400,

  • Connect the ground wire of your 4-20mA sensor to the 4-20mA terminal on the DAQ1400
  • Connect the power wire of your 4-20mA sensor to the 12V/24V terminal on the DAQ1400


You can set the PowerSupply property in order to choose between 12V and 24V supply. See the datasheet for your sensor to determine how much voltage it requires.

Digital Input

Some industrial sensor have a simple true-or-false value which can be read by a digital input. Many proximity or movement sensors have this kind of output. Again, it is common that these sensors will require a 12V or 24V power supply, so ordinary 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 InputMode property to the correct type. You can set the PowerSupply property in order to choose between 12V and 24V supply. See the datasheet for your sensor to determine how much voltage it requires.

To connect your digital sensor to the DAQ1400,

  • Connect the ground wire of your digital sensor to the Gnd terminal on the DAQ1400
  • Connect the data wire of your digital sensor to the Digital terminal on the DAQ1400
  • Connect the power wire of your digital sensor to the 12V/24V terminal on the DAQ1400
Frequency Input

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 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 FrequencyInput Mode.

To connect your sensor to the DAQ1400,

  • Connect the ground wire of your sensor to the Gnd terminal on the DAQ1400
  • Connect the data wire of your sensor to the Digital terminal on the DAQ1400
  • Connect the power wire of your sensor to the 12V/24V terminal on the DAQ1400

You can set the PowerSupply property in order to choose between 12V and 24V supply. See the datasheet for your sensor to determine how much voltage it requires.

If you're running a sensor that is sending out pulses faster than 600Hz and it seems to be maxing out around there, it may be because the pull-down resistance is too weak to pull the signal down.

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 assuming a power supply of 12 volts. 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.