The call to “ts1805a_Connect” connects channel “1” with channel “1c”. In other words,
it closes relay 1. This call opens relay 1:
ts1805a_Connect (h, "1", "1o");
If you are going to use the IVI driver, that driver and some supporting software must be
installed as well. The supporting software is called the “NI IVI Compliance Package
(ICP)”, and it is available for free download from National Instruments at
www.ni.com/ivi/ivi_prod.htm
.
After installing the ICP, install the IVI driver by selecting Start / TAMS 1800 Series
Switch Software / Drivers and selecting your driver from the list.
Note that calls of the form
ts1805a_Connect (h, "1", "1c"); // Close relay 1
dvm_Read (dvm, &reading);
// Read from DVM
are likely to fail, because the
_Connect
call returns before the switches are debounced.
See the functions
ts1805_IsDebounced
and
ts1805_WaitForDebounce
in
example-ivi.c for sample code to synchronize the switching with other instrument
operations.
For a simple example showing the IVI driver, see example-ivi.c. To learn the complete
IVI driver, load the files in the TS1805A subdirectory (usually installed at C:\Program
Files\IVI) into NI LabWindows and explore the detailed help of the “Function Panel”.
IVI Driver / National Instruments LabWindows
The IVI Driver provides the highest level of access to the commands, and provides some
degree of code reuse via device portability. However, the advanced features of the
switch, such as interrupts / service requests and scanning, are not supported in the IVI
driver model.
Please review the previous section on the IVI Device Specific Driver, as the IVI Driver is
built on the IVI Device Specific driver, and therefore uses the same connection model,
installation requirements, and debounce synchronization requirements.
- 16 -
Содержание 1800 Series
Страница 1: ...TAMS 1800 Series USB Controlled Switches Installation Operation 1...
Страница 4: ...Declaration of Conformity 27 4...
Страница 9: ...9...
Страница 28: ...TAMS 1800 Series USB Controlled Switches Printed in USA Revision 1 0 Part 1800 90002 28...