Switch Hardware and Software

cancel
Showing results for 
Search instead for 
Did you mean: 

Schema for NISE switching XML file?

Is there a schema (XSD) for the NISE switching file?

0 Kudos
Message 1 of 4
(6,358 Views)

Hi TucsonDave,

 

There is not a published schema.  If you want to create your own files, I think your best bet would be to generate one and alter it as necessary.

0 Kudos
Message 2 of 4
(6,340 Views)

Thanks Kyle,

 

I am mostly looking to read the switching file.  I wish to read it using .Net or C/C++.

 

After some digging I found the niseCfg DLL that allows me to read the files.  However, I am confused as to what file it is reading.  The starting point seems to be creating a NiseVirtualDevices object.  The object open a file, but I have no idea which one.  There appears to be no way to provide a file to the NiseVirtualDevices constructor or with some sort of Open function.  Also, I could find no documentation other than a handful of pages specific to LabView. 

 

Is there documentation for the DLL?  What file is opened by the NiseVirtualDevices object?

 

 

 

0 Kudos
Message 3 of 4
(6,333 Views)

Dave,

 

When you say you want to "read" the file do you meant that you want to examine its contents & find connections / routes / devices? There are many methods to read this without looking through the XML data.

 

  1. Open NI Measurement & Automation Explorer and look at the virtual device under Devices and Interfaces >> NI Switch Executive Virtual Devices. Then analyze the device.
  2. Export the NI SE Virtual Device to excel and look through the virtual device.
  3. Programmatically use the NI SE Configuration Functions. An example for C can be found at C:\Users\Public\Documents\National Instruments\CVI\samples\SwitchExecutive [on Windows 8 Machine] and the Switch Executive Help also has information on using these functions.
Frank,
National Instruments
Software Group Manager
0 Kudos
Message 4 of 4
(6,328 Views)