From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
06-02-2006 12:58 PM
06-05-2006 07:48 AM
Hi Alan,
I assume you were attempting to use the Switch Executive calls in the nise.dll (OpenSession, Connect, Disconnect, DisconnectAll, etc.). Unfortunately, as you stated above, the standard typelib won't allow you to make calls in the VB.NET environment.
However, a COM interface will work in VB.NET, so you will be able to use the Configuration API of Switch Executive. These function calls give you access to the definitions and configurations for all the switches, channels, hardwires, buses, exclusions, routes, and route groups associated with the switching configuration. In other words, if you are attempting to programmatically configure your Switch Executive Virtual Device, you can use the COM interface provided.
VB.NET is not yet a development environment supported by Switch Executive (we support C, CVI, LabVIEW, and VB6). In reference to the problem of using the Switch Executive function calls found in the nise.dll, one solution is to create a VB.NET wrapper. I have seen a VB.NET wrapper used before, and although it was neither fully developed nor tested, it did work with OpenSession, Connect, Disconnect, and CloseSession function calls. Until .NET is a development environment supported by Switch Executive, creating a VB.NET wrapper may be the way to go!
Let me know if you have further questions!
Chad Erickson
Switch Product Support Engineer
NI - USA
06-05-2006 08:58 AM
Do you have details on the VB.NET you are talking about?
Thanks,
Alan Howard
Huntron, Inc.
06-08-2006 12:42 PM
Hi Alan,
Visual Basic .NET in Microsoft Visual Studio .NET 2003 or Visual Basic 2005 Express Edition are the VB .NETs that are known to work with a valid wrapper. Please let me know if you have further questions on this issue!
Chad Erickson
Switch Product Support Engineer
NI - USA
06-08-2006 12:45 PM
Sorry I my response not clear. I was looking for more information on the valid wrapper for Switch Executive.
Thanks,
Alan Howard
06-09-2006 01:40 PM
06-12-2006 08:47 AM
06-12-2006 11:22 AM
Thank you.
Chad Erickson
Switch Product Support Engineer
NI - USA
01-03-2013 11:20 PM
I know this is obviously a very old thread but I'm in need of the exact same thing. Has any progress on this come to light in the last 6 years? I'm currently using switch executive through teststand but since we mainly use teststand to call VB.NET functions, it would make our lives much easier to just call switch executive from VB.NET...
01-04-2013 09:27 AM
Search for a file called NISE.vb which makes calls to niswitch_32.dll