Switch Hardware and Software

cancel
Showing results for 
Search instead for 
Did you mean: 

PXI-2521 Topology in .NET Wrapper?

I am using Visual Studio 2008, and downloaded the latest .NET wrapper (2.0.50727.832). However, I am not finding a listing in the niSwitch.vb wraspper file for a switch topology for the PXI-2521, or even one that is listed for a different module that matches (40-DPST). I did find one for the PXI-2570 (40-SPDT), and one for the PXI-2569(100-SPST) but that doesn't really help. What am I missing? 

0 Kudos
Message 1 of 3
(5,344 Views)

jvavra,

 

I opened up the MakingConnectionsOnASwitch example with NI-SWITCH 15.1 and NI-SWITCH .NET Class Libraries 1.1 (C:\Users\Public\Documents\National Instruments\NI-SWITCH\examples\DotNET 4.5\VS2012\MakingConnectionsOnASwitch\vb) and was able to see the topologies for those devices when I ran them.

 

VisualStudioExample.PNG

 

 

The .NET wrappers include all supported hardware for the version of NI-SWITCH driver that the .NET driver was built against. (For example NI-SWITCH 1.1 .NET Class Libraries was built with NI-SWITCH 4.8 (NI-SWITCH 1.1 .NET Class Libraries Readme) and any new hardware that is released after 4.8 would not be listed by default.

 

That being said for any HW that your driver supports, that the class libraries do not support, you can still use constants to use that device. For example the PXIe-2524 is "not supported" in NI-SWITCH 1.1 .NET Class Libraries officially, but is supported in NI-SWITCH 15.1. I am allowed to use the constant with quotes to talk to that device. See below...

 

switchSession = New NISwitch("PXI1Slot3", "2524/1-Wire 128x1 Mux", False, True)

Frank,
National Instruments
Software Group Manager
Message 2 of 3
(5,336 Views)

Frank,

Your workaround worked perfectly, thanks!

0 Kudos
Message 3 of 3
(5,225 Views)