<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Need help calling Switch Executive from VB.NET in Switch Hardware and Software</title>
    <link>https://ni.lithium.com/t5/Switch-Hardware-and-Software/Need-help-calling-Switch-Executive-from-VB-NET/m-p/374277#M682</link>
    <description>&lt;DIV&gt;&lt;/DIV&gt;
&lt;P&gt;Do you have details on the VB.NET you are talking about?&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Alan Howard&lt;/P&gt;
&lt;P&gt;Huntron, Inc.&lt;/P&gt;</description>
    <pubDate>Mon, 05 Jun 2006 13:58:53 GMT</pubDate>
    <dc:creator>TrackerMan</dc:creator>
    <dc:date>2006-06-05T13:58:53Z</dc:date>
    <item>
      <title>Need help calling Switch Executive from VB.NET</title>
      <link>https://ni.lithium.com/t5/Switch-Hardware-and-Software/Need-help-calling-Switch-Executive-from-VB-NET/m-p/373879#M680</link>
      <description>&lt;DIV&gt;I have a VB.NET application and would like to call Switch Executive functions from it. When I add the reference I do not get any functions listed.&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;Thanks,&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;Alan Howard&lt;/DIV&gt;
&lt;DIV&gt;Huntron, Inc.&lt;/DIV&gt;</description>
      <pubDate>Fri, 02 Jun 2006 17:58:28 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/Switch-Hardware-and-Software/Need-help-calling-Switch-Executive-from-VB-NET/m-p/373879#M680</guid>
      <dc:creator>TrackerMan</dc:creator>
      <dc:date>2006-06-02T17:58:28Z</dc:date>
    </item>
    <item>
      <title>Re: Need help calling Switch Executive from VB.NET</title>
      <link>https://ni.lithium.com/t5/Switch-Hardware-and-Software/Need-help-calling-Switch-Executive-from-VB-NET/m-p/374229#M681</link>
      <description>&lt;DIV&gt;&lt;/DIV&gt;
&lt;P&gt;Hi Alan,&lt;/P&gt;
&lt;P&gt;I assume you were attempting to use the Switch Executive calls in the nise.dll (OpenSession, Connect, Disconnect, DisconnectAll, etc.).&amp;nbsp; Unfortunately, as you stated above, the standard typelib won't allow you to make calls in the&amp;nbsp;VB.NET environment.&amp;nbsp; &lt;/P&gt;
&lt;P&gt;However,&amp;nbsp;a COM interface will work in VB.NET, so&amp;nbsp;you will be able to&amp;nbsp;use the Configuration API of Switch Executive.&amp;nbsp; These function calls give you access to the definitions and configurations for all&amp;nbsp;the switches, channels, hardwires, buses, exclusions, routes, and route groups associated with the switching configuration.&amp;nbsp; In other words, if you are attempting to programmatically configure your Switch Executive Virtual Device, you can use the COM interface provided.&lt;/P&gt;
&lt;P&gt;VB.NET is not yet&amp;nbsp;a development&amp;nbsp;environment&amp;nbsp;supported by Switch Executive (we support&amp;nbsp;C, CVI, LabVIEW, and&amp;nbsp;VB6).&amp;nbsp; In reference to the problem of&amp;nbsp;using the Switch Executive function calls found in the nise.dll, one solution is to&amp;nbsp;create a VB.NET wrapper.&amp;nbsp;&amp;nbsp;I&amp;nbsp;have seen&amp;nbsp;a VB.NET wrapper used before, and although it was neither fully developed nor tested, it did work with OpenSession,&amp;nbsp;Connect, Disconnect, and CloseSession&amp;nbsp;function calls.&amp;nbsp; Until&amp;nbsp;.NET is a development environment supported by Switch Executive, creating a VB.NET wrapper may be the way to go!&lt;/P&gt;
&lt;P&gt;Let me know if you have further questions!&lt;/P&gt;
&lt;P&gt;Chad Erickson&lt;BR /&gt;Switch Product Support Engineer&lt;BR /&gt;NI - USA&lt;/P&gt;</description>
      <pubDate>Mon, 05 Jun 2006 12:48:13 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/Switch-Hardware-and-Software/Need-help-calling-Switch-Executive-from-VB-NET/m-p/374229#M681</guid>
      <dc:creator>chericks1</dc:creator>
      <dc:date>2006-06-05T12:48:13Z</dc:date>
    </item>
    <item>
      <title>Re: Need help calling Switch Executive from VB.NET</title>
      <link>https://ni.lithium.com/t5/Switch-Hardware-and-Software/Need-help-calling-Switch-Executive-from-VB-NET/m-p/374277#M682</link>
      <description>&lt;DIV&gt;&lt;/DIV&gt;
&lt;P&gt;Do you have details on the VB.NET you are talking about?&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Alan Howard&lt;/P&gt;
&lt;P&gt;Huntron, Inc.&lt;/P&gt;</description>
      <pubDate>Mon, 05 Jun 2006 13:58:53 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/Switch-Hardware-and-Software/Need-help-calling-Switch-Executive-from-VB-NET/m-p/374277#M682</guid>
      <dc:creator>TrackerMan</dc:creator>
      <dc:date>2006-06-05T13:58:53Z</dc:date>
    </item>
    <item>
      <title>Re: Need help calling Switch Executive from VB.NET</title>
      <link>https://ni.lithium.com/t5/Switch-Hardware-and-Software/Need-help-calling-Switch-Executive-from-VB-NET/m-p/376248#M683</link>
      <description>&lt;DIV&gt;&lt;/DIV&gt;
&lt;P&gt;Hi Alan,&lt;/P&gt;
&lt;P&gt;Visual&amp;nbsp;Basic&amp;nbsp;.NET in&amp;nbsp;Microsoft Visual Studio .NET 2003&amp;nbsp;or&amp;nbsp;Visual Basic&amp;nbsp;2005 Express Edition are the VB .NETs that are known to work with a valid wrapper.&amp;nbsp; Please let me know if you have further questions on this issue!&lt;/P&gt;
&lt;P&gt;Chad Erickson&lt;BR /&gt;Switch Product Support Engineer&lt;BR /&gt;NI - USA&lt;/P&gt;</description>
      <pubDate>Thu, 08 Jun 2006 17:42:42 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/Switch-Hardware-and-Software/Need-help-calling-Switch-Executive-from-VB-NET/m-p/376248#M683</guid>
      <dc:creator>chericks1</dc:creator>
      <dc:date>2006-06-08T17:42:42Z</dc:date>
    </item>
    <item>
      <title>Re: Need help calling Switch Executive from VB.NET</title>
      <link>https://ni.lithium.com/t5/Switch-Hardware-and-Software/Need-help-calling-Switch-Executive-from-VB-NET/m-p/376249#M684</link>
      <description>&lt;DIV&gt;&lt;/DIV&gt;
&lt;P&gt;Sorry I my response not clear. I was looking for more information on the valid wrapper&amp;nbsp;for Switch Executive.&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Alan Howard&lt;/P&gt;</description>
      <pubDate>Thu, 08 Jun 2006 17:45:38 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/Switch-Hardware-and-Software/Need-help-calling-Switch-Executive-from-VB-NET/m-p/376249#M684</guid>
      <dc:creator>TrackerMan</dc:creator>
      <dc:date>2006-06-08T17:45:38Z</dc:date>
    </item>
    <item>
      <title>Re: Need help calling Switch Executive from VB.NET</title>
      <link>https://ni.lithium.com/t5/Switch-Hardware-and-Software/Need-help-calling-Switch-Executive-from-VB-NET/m-p/376860#M689</link>
      <description>&lt;DIV&gt;Hi Alan,&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;I may have a working example for you to reference.&amp;nbsp; I notice you have&amp;nbsp;SR# 7117946&amp;nbsp;open to National Instruments Support.&amp;nbsp; May I contact you through that channel?&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;Thanks!&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;Chad Erickson&lt;/DIV&gt;
&lt;DIV&gt;Switch Product Support Engineer&lt;/DIV&gt;
&lt;DIV&gt;NI - USA&lt;/DIV&gt;</description>
      <pubDate>Fri, 09 Jun 2006 18:40:30 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/Switch-Hardware-and-Software/Need-help-calling-Switch-Executive-from-VB-NET/m-p/376860#M689</guid>
      <dc:creator>chericks1</dc:creator>
      <dc:date>2006-06-09T18:40:30Z</dc:date>
    </item>
    <item>
      <title>Re: Need help calling Switch Executive from VB.NET</title>
      <link>https://ni.lithium.com/t5/Switch-Hardware-and-Software/Need-help-calling-Switch-Executive-from-VB-NET/m-p/377297#M692</link>
      <description>&lt;DIV&gt;&lt;/DIV&gt;Sure</description>
      <pubDate>Mon, 12 Jun 2006 13:47:49 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/Switch-Hardware-and-Software/Need-help-calling-Switch-Executive-from-VB-NET/m-p/377297#M692</guid>
      <dc:creator>TrackerMan</dc:creator>
      <dc:date>2006-06-12T13:47:49Z</dc:date>
    </item>
    <item>
      <title>Re: Need help calling Switch Executive from VB.NET</title>
      <link>https://ni.lithium.com/t5/Switch-Hardware-and-Software/Need-help-calling-Switch-Executive-from-VB-NET/m-p/377402#M695</link>
      <description>&lt;DIV&gt;&lt;/DIV&gt;
&lt;P&gt;Thank you.&lt;/P&gt;
&lt;P&gt;Chad Erickson&lt;BR /&gt;Switch Product Support Engineer&lt;BR /&gt;NI - USA&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 12 Jun 2006 16:22:16 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/Switch-Hardware-and-Software/Need-help-calling-Switch-Executive-from-VB-NET/m-p/377402#M695</guid>
      <dc:creator>chericks1</dc:creator>
      <dc:date>2006-06-12T16:22:16Z</dc:date>
    </item>
    <item>
      <title>Re: Need help calling Switch Executive from VB.NET</title>
      <link>https://ni.lithium.com/t5/Switch-Hardware-and-Software/Need-help-calling-Switch-Executive-from-VB-NET/m-p/2269844#M2362</link>
      <description>&lt;P&gt;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...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 04 Jan 2013 05:20:33 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/Switch-Hardware-and-Software/Need-help-calling-Switch-Executive-from-VB-NET/m-p/2269844#M2362</guid>
      <dc:creator>jordan_guffey</dc:creator>
      <dc:date>2013-01-04T05:20:33Z</dc:date>
    </item>
    <item>
      <title>Re: Need help calling Switch Executive from VB.NET</title>
      <link>https://ni.lithium.com/t5/Switch-Hardware-and-Software/Need-help-calling-Switch-Executive-from-VB-NET/m-p/2270306#M2363</link>
      <description>&lt;P&gt;Search for a file called NISE.vb which makes calls to niswitch_32.dll&lt;/P&gt;</description>
      <pubDate>Fri, 04 Jan 2013 15:27:30 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/Switch-Hardware-and-Software/Need-help-calling-Switch-Executive-from-VB-NET/m-p/2270306#M2363</guid>
      <dc:creator>TrackerMan</dc:creator>
      <dc:date>2013-01-04T15:27:30Z</dc:date>
    </item>
    <item>
      <title>Re: Need help calling Switch Executive from VB.NET</title>
      <link>https://ni.lithium.com/t5/Switch-Hardware-and-Software/Need-help-calling-Switch-Executive-from-VB-NET/m-p/2271874#M2364</link>
      <description>&lt;P&gt;Jordan,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There is not an inherent way to use .NET with the Switch Executive API.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There are ways that this could be done by using P/invoke to call the nise.dll ("C:\Windows\SysWOW64 [on my 64bit machine] ) and use these commands. &lt;A href="http://msdn.microsoft.com/en-us/magazine/cc164123.aspx" target="_self"&gt;This article&lt;/A&gt; talks a bit more about the ways to use P/invoke.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There are also 3rd party tools that supposedly can generate the P/invoke code as this can become quite complicated. I tried using &lt;A href="http://blogs.msdn.com/b/bclteam/archive/2008/06/23/p-invoke-interop-assistant-justin-van-patten.aspx" target="_self"&gt;P/Invoke Interop Assistant&lt;/A&gt;&amp;nbsp;but was unsuccessful at getting the code generated properly. I am not a C# developer, and there is a chance that I am doing something wrong to get the code auto generated.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I tried to look for the example code that was sent to the original author but was unsuccessful at finding this code. &lt;SPAN&gt;While this code was originally written for an older version of NISE, I would assume that it should be able to properly call the nise.dll albeit without any of the new functions.&lt;/SPAN&gt;&amp;nbsp;Perhaps Trackerman has the copy still available?&lt;/P&gt;</description>
      <pubDate>Mon, 07 Jan 2013 14:45:25 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/Switch-Hardware-and-Software/Need-help-calling-Switch-Executive-from-VB-NET/m-p/2271874#M2364</guid>
      <dc:creator>Frank-L</dc:creator>
      <dc:date>2013-01-07T14:45:25Z</dc:date>
    </item>
  </channel>
</rss>

