Academic Company Events NI Developer Zone Support Solutions Products & Services Contact NI MyNI

Document Type: Tutorial
NI Supported: Yes
Publish Date: Sep 6, 2006


Feedback


Yes No

Related Categories

Related Links - Developer Zone

Related Links - Products and Services

Configuring Class I TEDS Tasks using the BNC-2096

1 ratings | 2.00 out of 5
Print

Overview

This document describes how to use hardware Transducer Electronic Data Sheet (TEDS) smart sensors with National Instruments signal conditioning Data Acquisition (DAQ) systems that are TEDS enabled. This document provides step-by-step instructions for the configuration process that allows you to see your sensor TEDS file and measure from the sensor in LabVIEW.

Configuring TEDS Tasks using the BNC-2096 & TEDS Sensors

1. Launch Measurement & Automation Explorer (MAX) by double-clicking the desktop icon.


The main MAX windows launches, as shown in the following figure.


[+] Enlarge Image


1. Expand Devices and Interfaces by using the icon. Right click on NI-DAQmx Devices >> Create New NI-DAQmx Devices >> NI-DAQmx TEDS Interface >> BNC-2096. The BNC-2096 Configuration window will appear as shown below. Select the device connected to the rear of the BNC-2096 as the Controlling Device. The LED to the right of your module should appear bright green (as pictured below) if your sensor is connected. If the sensor is not connected, then connect it now, and click on “Scan for TEDS” button. Then click “OK”. Also, select the DSA channel that is used for each channel of the BNC-2096 from the dropdown list.



.


2. Expand your Acquisition Device using the icon, then expand the module connected to your TEDS sensor, and highlight the TEDS sensor marked by the TEDS icon by left clicking on it. Once it is highlighted, you should be able to view your TEDS sensor’s data sheet on the right pane of the window:

[+] Enlarge Image




3. After you have verified that your TEDS data has been imported correctly, the next step is to create a NI-DAQmx Global Channel or Task using the channel that has been associated with the TEDS sensor.

Creating a Global Channel or Task


1. In MAX, after having configured your TEDS hardware under NI-DAQmx Devices, right click on Data Neighborhood >> Create New


[+] Enlarge Image


This will bring up the Create New window shown below:








2. Select NI-DAQmx Task or global channel and click Next. Select Analog Input, and then the appropriate measurement type for your sensor. For example, for an Accelerometer select Acceleration.

[+] Enlarge Image






3. Click on the TEDS tab then highlight the configured TEDS channel that you would like to use to take the measurement. Then click Next.


[+] Enlarge Image





4. Give the task a name of your choice and click Finish


[+] Enlarge Image



5. If you have created a task, you should ensure that you have all the appropriate settings configured in your task. Specifically, check the Task Timing (you probably want to set it to Continuous).




6. You can start taking measurements right away in MAX test panels by clicking on the Test button in the task toolbar:

Using LabVIEW to Auto-Generate Code

Now that you have configured your measurement hardware, TEDS channels, and NI-DAQmx measurement task, you are now ready to write your measurement application using LabVIEW 7.1 and the NI-DAQmx 7.2 Application Programming Interface. This can be done by auto-generating code.

1. Open LabVIEW 7.1. Select New >> Blank VI


[+] Enlarge Image


2. In the Block Diagram, right click to bring up the functions palette. Go to All Functions >> NI Measurements >> NI-DAQmx Data Acquisition palette.






3. Drag the NI-DAQmx Task Name Constant or and drop it on the block diagram. Move your cursor over the drop down arrow and single left click. Choose your TEDS task from the dropdown list:

[+] Enlarge Image



4. Right click on the NI-DAQmx Task Name Constant, go to Generate Code >> Configuration and Example.


[+] Enlarge Image


5. Double click the configuration icon to view the configuration settings.


1 ratings | 2.00 out of 5
Print

Reader Comments | Submit a comment »

 

Legal
This tutorial (this "tutorial") was developed by National Instruments ("NI"). Although technical support of this tutorial may be made available by National Instruments, the content in this tutorial may not be completely tested and verified, and NI does not guarantee its quality in any way or that NI will continue to support this content with each new revision of related products and drivers. THIS TUTORIAL IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND AND SUBJECT TO CERTAIN RESTRICTIONS AS MORE SPECIFICALLY SET FORTH IN NI.COM'S TERMS OF USE (http://ni.com/legal/termsofuse/unitedstates/us/).