IOtech LabVIEW VIs
IOtech LabVIEW VIs
TM
A Guide to using Virtual Instruments in LabVIEW for DaqBoard/2000 Series Boards
IOtech, Inc.
25971 Cannon Road
Cleveland, OH 44146-1833
Phone: (440) 439-4091
Fax: (440) 439-4093
E-mail (Product Information): [email protected]
E-mail (Technical Support): [email protected]
Internet: www.iotech.com
Note: IOtech LabVIEW Substitution VIs can be used to replace NI-DAQTM VIs. They
provide a means of using IOtech DaqBoard/2000 Series boards with LabVIEW
programs, while maintaining the NI-DAQ look and feel.
IOtech LabVIEW Substitution VIs are compatible with LabVIEW versions 5.1 and
higher. There are no special system requirements for using the substitution VIs, other
than those specified for the version of LabVIEW used.
LabVIEW support is provided for basic Analog Input, Analog Output, Digital IO, and
Counter Functions. Each includes program examples that can be modified, or used as is.
Contents
1 – Installation …… 5
IOtech LabVIEW Substitution VIs are included on the IOtech Data Acquisition CD,
versions 2.4 and higher. The following steps take into account that you have previously
installed a DaqBoard/2000 Series board and 32-bit DaqBook/DaqBoard Support. If this
is not the case, install your DaqBoard support software and your DaqBoard/2000 Series
board according to one of the following documents. The first two documents are
available on our website, www.iotech.com.
• DaqBoard/2000 Series Installation Guide (1033-0940, rev 3.0 or higher)
• DaqBoard/2000 Series Users Manual (1033-0901, rev. 2.0 or higher)
• DaqBoard/2000 Compact PCI Documentation
Complete the following steps to successfully launch and run the installation program.
1. Place the Data Acquisition Software CD in the host PC’s CD-ROM drive. Wait for
PC to auto-access the CD. This may take a few moments, depending on your PC.
2. After the Data Acquisition Software Master Setup screen appears, select
32-Bit DaqBook/DaqBoard Support.
3. Select LabView Drivers.
5. Refer to the above figure. On the Select VIs to Install screen, select
Low-Level Substitution VIs (DaqBoard/2000 Series Only).
6. Click Next.
The software is now installed to a sub-directory named IOtech Data Acquisition.
This sub-directory is located within the LabVIEW directory. A shortcut, located
under DaqXSoftware, can be reached via the Windows Start Menu.
7. When the install is complete, review the Readme file. This file contains important
information that may not be available elsewhere. After reviewing the Readme file,
exit the program.
In addition to these four VI folders, the sub-directory also contains a Documentation folder. The folders
can be accessed from the Windows Start Menu, under the LabVIEW directory (located under
DaqXSoftware).
IOtech LabVIEW Substitution VIs were designed to emulate National Instruments VIs. The substitutions
can be made in applications where an IOtech DaqBoard/2000 Series board is being used to replace a
NI-DAQ “E” Series device, a PC-LPM-16, or an AT-MIO-16 “H” or “L” Series board; however, for the
AT-MIO-16 L, the x500 gain-setting will not be supported. NI devices can typically be replaced with little
effort. An example follows shortly.
Supported VIs
Easy VIs Intermediate VIs Advanced VIs
AI Sample Channel AI Clear AI Buffer Config
AI Sample Channels AI Config AI Buffer Read
AI Acquire Waveform AI Continuous Scan AI Clock Config
AI Acquire Waveforms AI Read One Scan AI Control
AO Update Channel AI Read AI Group Config
AO Update Channels AI Single Scan AI Hardware Config
AO Generate Waveform AI Start AI Parameter
AO Write AO Parameter
If you intend to use both National InstrumentsTM Hardware and IOtech DaqBoards, we
recommend that you create a new folder in which to keep your converted VIs.
5. Click “Save” and create a new folder in which to keep your IOtech LabVIEW Substitution VIs.
6. Close the National Instruments example.
7. Open the Cont Acq&Chart (buffered).vi version you just saved from the location chosen in step 5.
8. Look at the Virtual Instruments Diagram for Cont Acq&Chart (buffered). See following figure.
In this example there are four hardware-related items that need replaced,
• AI Config
• AI Start
• AI Read
• AI Clear
Two other Virtual Instruments, My Data Proc and the Error handler have no
associated IOtech LabVIEW Substitution VI, as they do not directly pertain to
hardware. My Data Proc and the Error handler, should not be altered.
7. Right-click on AI Read; then repeat steps 2 through 4. At what would be step 5, select AI Read.
8. Right-click on AI Clear; then repeat steps 2 through 4. At what would be step 5, select AI Clear.
Since there are fundamental differences between IOtech and National Instruments board architectures, some
of the features available on DaqBoard/2000 Series boards are not implemented in the IOtech LabVIEW
Substitution VIs. It should also be noted that certain features available in National Instruments boards are
not implemented with the substitution VIs due to hardware issues.
Intended Use - IOtech LabVIEW Substitution VIs are intended for LabVIEW users who are replacing
one of the following devices with an IOtech DaqBoard/2000 Series board.
• National Instruments “E” series board
• PC-LPM-16
• AT-MIO-16 “H” and “L” series boards, with this exception, IOtech LabVIEW Substitution VIs
do not support the x500 gain-setting on the AT-MIO-16 L board.
If you need to access the full functionality of DaqBoard/2000 Series boards, the IOtech
LabVIEW API VIs must be used.
DSP – Some of the Low Level NI-DAQ VIs reference DSP handles to buffers. The DSP handle
functionality is automatic in the DaqBoard/2000 Series and the VI DSP handles are simply ignored.
Any VIs that are dependant on reading from or writing to a buffer [using either a DSP handle or a buffer
offset] will not function properly when replaced.
Trigger Types – Attempting to use a trigger type that is not supported will result in error 10083. Refer to
DaqBoard/2000 Series documentation for a list of valid trigger types.
Analog Input Range Settings – It is often the case that IOtech and National Instruments devices have
different range and gain settings. Gain selection for DaqBoard/2000 Series boards is automatic and is based
on the user-selected voltage limits.
Analog Output – Live update of an output buffer is not supported. If an output buffer needs to be
changed, then the output must be stopped, changed, and restarted.
Counters and Timers – Low-speed frequency measurement and signal timing can be accomplished with
the examples located under the IOtech CTR VI Palette. The support of this section is restricted to event
counting in 16-bit and 32-bit counter lengths. Frequency measurements can be made using event counting
within a known time frame. See the “Measure Frequency.vi” within the IOtech CTR Palette under
examples.
The CTR example VIs are NOT exact replacements for NI-DAQ VIs and will require program
modification if they are to be used. You can run the examples to determine application
suitability.
Pulse and Square Wave Generation – Pulse and square wave generation are limited with the IOtech
DaqBoard/2000 Series boards. Square wave generation can be accomplished with the example square wave
generation VI located under Digital IO.
The square wave generation VI example is NOT an exact replacement for NI-DAQ VIs and
will require program modification if it is to be used. You can run the example to determine
suitability for you application.
Analog Output VIs can provide functionality for applications that make use of one-shot pulse
or square waves with asymmetrical duty cycles.
Q: Who should I contact if I have questions that are not answered by my documentation?
A: If you believe you are having a problem with IOtech LabVIEW Substitution VIs or IOtech Hardware,
contact IOtech. Contact information is provided at the end of this chapter.
Q: What is meant by “IOtech LabVIEW Substitution VI”?
A: IOtech has developed a series of the VIs that emulate the NI-DAQ VIs. These IOtech VIs are referred
to as IOtech LabVIEW Substitution VIs.
Q: How do I install VIs?
A: Refer to chapter 1 of this document for installation instructions.
Q: Where is IOtech LabVIEW Substitution VIs support located, after installation?
A: Substitution VIs can be accessed through the LabVIEW Function Palette. The physical location within
the drive will be: ..C:\…\LabView\IOtech Data Acquisition.
Q: What version(s) of LabVIEW do I need to have?
A: IOtech LabVIEW Substitution VIs are supported by LabVIEW versions 5.1 and higher.
Q: What operating systems are supported?
A: IOtech LabVIEW Substitution VIs are supported by Windows 9x, ME, NT and 2000.
Q: Are there any examples on how to use IOtech LabVIEW Substitution VIs? If so, where are they?
A: Program examples exist for each function. They are located in the sub-palette, or sub-directory, below
the major function. For example: IOtech Data Acquisition\Analog Input\Examples)
Q: Can I use both IOtech and NI devices?
A: You may use IOtech and National Instruments boards in the same machine and even within the same
program as long as (1) the IOtech LabVIEW Substitution VIs are used to control IOtech boards, and (2)
the NI-DAQ VIs are used to control the National Instruments boards. You cannot mix VIs.
Q: Can I use boards other than those manufactured by IOtech and National Instruments, providing these
devices have LabVIEW support?
A: Yes, but you will need to use NI compatible virtual instruments that were developed for those specific
devices, providing those VIs exist.
Q: What do I have to do to my existing LabVIEW application to make it work?
A: If you have an existing National Instruments board-based test system, and you want to convert it for use
with An IOtech DaqBoard/2000 Series board, you must replace all the NI-DAQ Device Specific VIs
with the corresponding IOtech LabVIEW Substitution VIs.
Q: Can I use the IOtech LabVIEW Substitution VIs with National Instruments examples, or with higher
level VIs?
A: Yes, refer to the examples.
Q: How do I determine that a VI substitution operation was successful?
A: Test the modified application using known input and output values.
Q: Will using IOtech LabVIEW Substitution VIs change the performance of my LabVIEW application?
A: Under most circumstances, no. The IOtech LabVIEW Substitution VIs do not introduce any additional
processor overhead. If you must have absolute peak performance consider using the IOtech API
LabVIEW VIs. Note that these are stand-alone VIs that cannot be used with the substitution VIs.
All equipment returned to the manufacturer must have an RMA (Return Material Authorization) number.
You can obtain an RMA number by calling the Customer Service or Applications departments. When
returning the equipment, use the original shipping container (or equivalent) to prevent damage. Put the
RMA number on your shipping label to ensure that your shipment will be handled properly. After receiving
your equipment, we will fax a confirmation form that summarizes the charges (if applicable) and expected
return date.
Internet: http//:www.iotech.com