Download vtexswitch driver programmer`s manual
Transcript
VTI Instruments Corp. PROGRAMMING EXAMPLES Connecting to slots 1, 2, and 3 using dash separation.................................................................................................. 12 Connecting to slots 1, 2, and 3 using comma separation ............................................................................................. 12 Connect to slots and verify model type ....................................................................................................................... 12 Simulate a system with two switch modules ............................................................................................................... 13 Implicitly request all containing switch cards ............................................................................................................. 13 Connect to three slots with the same model type ......................................................................................................... 13 Connect to multiple cards on multiple mainframes ..................................................................................................... 13 Invalid – First slot number is greater than the second slot number ............................................................................. 13 Invalid – Module not specified in simulation mode .................................................................................................... 14 Invalid – Slot numbers not specified with module ID in simulation mode.................................................................. 14 Control slots 1, 2, and 3 using Individual Relay Mode................................................................................................ 15 Using IndividualRelayMode during a simulation ........................................................................................................ 15 Invalid – True or False not indicated for Individual Relay Mode................................................................................ 15 ListOfChannels Usage ................................................................................................................................................. 16 SerialNumber Usage .................................................................................................................................................... 16 Setting Usage ............................................................................................................................................................... 17 ExternalConnection Usage .......................................................................................................................................... 17 Odometers Usage......................................................................................................................................................... 18 Defining a path-level exclude list ................................................................................................................................ 18 Deleting a path-level exclude list ................................................................................................................................ 19 CloseRelays Usage ...................................................................................................................................................... 19 OpenRelays Usage....................................................................................................................................................... 19 GetRelayState Usage ................................................................................................................................................... 19 VerifyRelayState Usage .............................................................................................................................................. 20 OpenLogFile Usage ..................................................................................................................................................... 21 CloseLogFile Usage .................................................................................................................................................... 21 ParallelIOs reference pointer initialization .................................................................................................................. 22 OutputEnableMask & Data Usage............................................................................................................................... 23 ListofParallelIOs Usage ............................................................................................................................................... 23 Attenuator Initialization ............................................................................................................................................... 24 Setting Usage ............................................................................................................................................................... 24 ListOfAttenuators Usage ............................................................................................................................................. 25 IVI-C Example ............................................................................................................................................................ 26 IVI-Com Example ....................................................................................................................................................... 29 C++ Linux Example .................................................................................................................................................... 31 4 VTEX Switch Driver Programmer’s Manual