09-30-2015 12:50 PM
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?
09-30-2015 02:04 PM - edited 09-30-2015 02:06 PM
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.
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)
10-20-2015 02:42 PM
Frank,
Your workaround worked perfectly, thanks!