background image

 
Consider this example code.  This was developed in National Instruments LabWindows, 
using the IVISwtch driver. 
 

static ViStatus s;  // Status returned from calls 

static ViSession h; // Instrument handle 
 
s = IviSwtch_init ( 

“SwitchLogicalName”,  

 

// Set the Logical_name using NI’s MAX –  

// Measurement and Automation Explorer 

VI_TRUE,   

// Query the device 

 

VI_TRUE,   

// Reset the device 

&h); 

 

 

IviSwtch_Connect (h, "1", "1c");  // Close relay 1 

s = IviSwtch_close (h); 

 

 
For a simple example showing the IVI driver, see example-ivi.c.  To learn the complete 
IVI Swtch driver, load the files in the IviSwtch subdirectory (usually installed at 
C:\Program Files\IVI) into NI LabWindows and explore the detailed help of the 
“Function Panel”. 
 
 

National Instruments LabVIEW 

 
There are two methods to program the TAMS Switches in LabVIEW.  The first is to use 
Direct IO commands sent directly to the device.  See the Direct IO section above for 
more information on this method. 
 
The second method is to convert the supplied IVI driver to a LabVIEW driver and 
program calls to this converted driver.  For this method, follow these steps: 
 

1.  Install the IVI driver as described above in section “IVI Device Specific Driver”. 

 

2.  Create a LabVIEW driver from the IVI driver. 

 

- 17 - 

Содержание 1800 Series

Страница 1: ...TAMS 1800 Series USB Controlled Switches Installation Operation 1...

Страница 2: ...rolled Switches Installation Operation Test Measurement Systems Inc 750 14th Street SW Loveland Colorado 80537 USA Telephone 970 669 6553 Fax 970 669 3090 Web Site www tamsinc com Copyright Test Measu...

Страница 3: ...and Options 11 USB Power Considerations 12 Connecting switches to other switches 12 Connecting switches to your Product Under Test 12 Connecting switches to instruments 13 Grounding and Signal Integr...

Страница 4: ...Declaration of Conformity 27 4...

Страница 5: ...d a VXIplug play driver and an IVI Switch Class driver The switches are USBTMC Universal Serial Bus Test and Measurement Class devices so they can be directly controlled with SPCI Standard Commands fo...

Страница 6: ...ccur we apologize Any defective unit will be repaired or replaced immediately Please follow the instructions below for service response In the US please return it to TAMS Please call or Fax for return...

Страница 7: ...t automatically then click Start Run and then type D setup exe where D is the CD ROM drive This will install the Microsoft NET Framework on the PC if needed and then install the TAMS 1800 Series softw...

Страница 8: ...he USBTMC driver since that was installed above 2 The activity light on the front of the TAMS 18xx will flicker You are now ready to verify operation with the TAMS 18xx Switch Front Panel For more det...

Страница 9: ...9...

Страница 10: ...scriptors Resource Names or Resource Descriptors are used to identify the switch device when writing your test program Selecting Tools Resource Name shows the Resource Name for the currently active de...

Страница 11: ...two different sides The screws may protrude a maximum 0 25 inside of the product The bottom surface provides two mounting holes 1 75 or one Rack Unit apart for mounting to the side rack rails of a 19...

Страница 12: ...he switches will be mounted inside of a chassis or rack which could provide the necessary screw access for the second level of insulation With most signal switches there would be a concern about conne...

Страница 13: ...variety of ways to make these connections including building them up from crimped pins or adapting molded cables Trigger in trigger out connections are made via the Analog bus The Trigger Out is pull...

Страница 14: ...of the switch Direct IO requires using an IO library such as VISA or SICL available from NI or Agilent Applications like NI LabVIEW and Agilent VEE also support Direct IO The SCPI Standard Commands fo...

Страница 15: ...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...

Страница 16: ...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 e...

Страница 17: ...e IVI Swtch driver load the files in the IviSwtch subdirectory usually installed at C Program Files IVI into NI LabWindows and explore the detailed help of the Function Panel National Instruments LabV...

Страница 18: ...IEW block diagram that calls this converted driver a From the Functions Palette choose Input Instr drivers and then choose your device b Place Initialize Connect Close and other functions in your prog...

Страница 19: ...play directory is C Program Files IVI Table 1 File Location Description TAMS18xx exe install_dir Graphical User Interface Installation and Operation pdf install_dir This manual TAMS18xx pdf install_di...

Страница 20: ...clude IVI VXIplug play driver include file TS18xx lib IVI_dir lib msc IVI VXIplug play driver library TS18xx c IVI_dir Drivers ts18xxa Driver source code TS18xx fp IVI_dir Drivers ts18xxa NI LabWindow...

Страница 21: ...211 Trigger ignored A TRG or TRIG IMM command was sent but the device is not scanning or the TRIG SOURCE is not BUS MIX or HOLD 213 Init ignored The device received an INIT command while it was alrea...

Страница 22: ...eir rights and only if Customer obtains the prior agreement of the third party to be bound buy the terms of this License Agreement Upon such transfer Customer agrees that their rights in the software...

Страница 23: ...y warranty claim within the warranty period LIMITATION OF WARRANTY TAMS makes no other express warranty whether written or oral with respect to this product Any implied warranty of merchantability or...

Страница 24: ...ves you specific legal rights and you may also have other rights which vary from state to state and from country to country This Warranty is in Lieu of all other express warranties which now or hereaf...

Страница 25: ...th the requirements of the Low Voltage Directive and the EMC Directive and carries the CE Mark accordingly This symbol indicates a potentially hazardous voltage Use caution This symbol indicates Earth...

Страница 26: ...her via the Analog Bus terminals If the product is not mounted inside of a screw access enclosure then double insulation cables must be used to interconnect one product to another via the Analog Bus t...

Страница 27: ...Declaration of Conformity The Declaration of Conformity is on file at TAMS Inc TAMS Inc 850 SW 14th St Loveland CO 80537 USA 970 669 6553 27...

Страница 28: ...TAMS 1800 Series USB Controlled Switches Printed in USA Revision 1 0 Part 1800 90002 28...

Отзывы: