For a simple example showing the basic commands, see Example1.vb or Example1.cpp
or Example1.vi or Example1.vee. See Help/Examples in the TAMS 18xx Switch Front
Panel.
To learn the complete command set, see the menu Help/Documentation/Direct IO.pdf in
the TAMS 18xx Switch Front Panel.
IVI Device Specific Driver / National Instruments LabWindows
The IVI Device Specific Driver (or VXIplug&play-style driver) provides a slightly
higher level of access to the commands, allowing you to ignore the detailed syntax of
command strings. However, the advanced features of the switch, such as interrupts /
service requests and scanning, are not supported in this driver model.
Note that IVI Device Specific drivers may not be re-usable with other devices, since the
name of the device is “hard-coded” into the function calls. If this is an issue for your
application, see the IVI driver below.
IVI uses a “connect pin to pin” model, and therefore refers to the pin or terminal names
rather than the relay names. IVI calls the product pin or terminals “channels”.
Consider this example for a TAMS 1805A card. This example is written in “C” using
National Instruments LabWindows.
static ViStatus s; // Status returned from calls
static ViSession h; // Instrument handle
s = ts1805a_init (
"USB0::0x142E::0x1805::SN1805-00001::INSTR",
VI_TRUE,
// Query the device
VI_TRUE,
// Reset the device
&h);
ts1805a_Connect (h, "1", "1c"); // Close relay 1
s = ts1805a_close (h);
- 15 -