Academic Company Events NI Developer Zone Support Solutions Products & Services Contact NI MyNI
This Document is not yet Rated  Rate this Document

Indexes Corresponding to the TestStand Module Adapters

Primary Software: TestStand
Primary Software Version: 3.0
Primary Software Fixed Version: N/A
Secondary Software: N/A

Problem: In order to get an Adapter object, I need to call the Engine.GetAdapter method and pass a zero-based index to specify the Adapter object for which I want to obtain a reference. However, the TestStand Help does not have a list of the indexes corresponding to the TestStand module adapters. How can I get this list?

Solution: The index corresponding to a particular adapter depends on the available module adapters. The list of available module adapters may differ from one version of TestStand to another. The following is a list of indexes corresponding to the available module adapters in TestStand 3.0 and TestStand 2.x:
  • In TestStand 3.0:
    0 = G Flexible VI Adapter
    1 = C/CVI Flexible Prototype Adapter
    2 = DLL Flexible Prototype Adapter
    3 = DotNet Adapter
    4 = Automation Adapter
    5 = HTBasic Adapter
    6 = Sequence Adapter
    7 = None Adapter


  • In TestStand 2.x:
    0 = Automation Adapter
    1 = C/CVI Std Prototype Adapter
    2 = DLL Flexible Prototype Adapter
    3 = G Std Prototype Adapter
    4 = HTBasic Adapter
    5 = None Adapter
    6 = Sequence Adapter
You can get the correct list for your version of TestStand by invoking the following TestStand API methods/properties:
Engine.NumAdapters
Engine.GetAdapter
Adapter.KeyName

The attached sequence files show how to use the above properties/methods and display a message popup dialog box showing a list of the available adapters with their corresponding index. Download the sequence file corresponding to the version of TestStand that you have and run the MainSequence.

Related Links:

Attachments:


TS 3 - Get List of Adapters.seqTS 2 - Get List of Adapters.seq


Report Date: 03/08/2004
Last Updated: 09/14/2004
Document ID: 377EOHMT

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
  1 2 3 4 5
Please Contact NI for all product and support inquiries.submit