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

Programmatically Obtaining Switch Executive Configurations in LabVIEW

Primary Software: Switch Executive
Primary Software Version: 1.0
Primary Software Fixed Version: N/A
Secondary Software: LabVIEW Development Systems>>LabVIEW Base Package

Problem:
I am trying to programmatically obtain Switch Executive configuration information such as channel names and route names. How can I use the ActiveX controls provided with Switch Executive?

Solution:
The Switch Executive Configuration palette has ActiveX controls that can access Switch Executive configuration information. The order in which they are used to obtain data is outlined below:
  1. niseCfg Open Configuration.vi opens a reference to the Switch Executive configurations on the system.
  2. niseCfg Get Virtual Devices.vi, a member of the niseCfg Get Objects polymorphic VI, returns an array of Switch Executive virtual devices.
  3. Each of the virtual device references (when indexed) can be passed again to a second niseCfg Get Objects function. You will need to change the polymorphic selector to return the information you desire. In the case of the attached example, niseVirtualDevice Get Channels.vi is used to retrieve the channels for each virtual device.
  4. Finally an ActiveX property node can be used to extract data such as the channel alias name from the channel reference.
The attached VI demonstrates how to wire the above functions in LabVIEW.

Related Links:
Developer Zone Tutorial: ActiveX and LabVIEW
Product Manuals: Switch Executive Getting Started Guide
KnowledgeBase 4298DBNO: Installing NI Switch Executive for LabVIEW 8.2


Attachments:


Switch Executive Get Channel Names.vi - Switch Executive Get Channel Names.vi


Report Date: 12/21/2006
Last Updated: 01/10/2007
Document ID: 44KA4LLQ

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