<?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 CanConnect From .NET Wrapper Never True? in Switch Hardware and Software</title>
    <link>https://ni.lithium.com/t5/Switch-Hardware-and-Software/CanConnect-From-NET-Wrapper-Never-True/m-p/3228258#M2811</link>
    <description>&lt;P&gt;I am using he .NET wrapper for niSwitch. In it is a function called "CanConnect", which should verify if a path is possible and/or exists between two channels. However, when I use it to test if a path is indeed available, I get a "0" returned no matter what. My understanding is that I should call it, and send three arguments: the first channel, the second channel, and the condition I'd like to check (integer values 1-6 correspond to the 6 possible conditions).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But when I call it like so:&lt;/P&gt;
&lt;P&gt;Const PATH_DOES_EXIST = 1&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;result = niSwitch.CanConnect(CH2, COM2, PATH_DOES_EXIST)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="line-height: 15px;"&gt;I get a zero returned whether channel 2 is actually closed or not, as verified by the Soft Panel.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="line-height: 15px;"&gt;What am I doing wrong?&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 11 Dec 2015 14:48:00 GMT</pubDate>
    <dc:creator>jvavra</dc:creator>
    <dc:date>2015-12-11T14:48:00Z</dc:date>
    <item>
      <title>CanConnect From .NET Wrapper Never True?</title>
      <link>https://ni.lithium.com/t5/Switch-Hardware-and-Software/CanConnect-From-NET-Wrapper-Never-True/m-p/3228258#M2811</link>
      <description>&lt;P&gt;I am using he .NET wrapper for niSwitch. In it is a function called "CanConnect", which should verify if a path is possible and/or exists between two channels. However, when I use it to test if a path is indeed available, I get a "0" returned no matter what. My understanding is that I should call it, and send three arguments: the first channel, the second channel, and the condition I'd like to check (integer values 1-6 correspond to the 6 possible conditions).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But when I call it like so:&lt;/P&gt;
&lt;P&gt;Const PATH_DOES_EXIST = 1&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;result = niSwitch.CanConnect(CH2, COM2, PATH_DOES_EXIST)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="line-height: 15px;"&gt;I get a zero returned whether channel 2 is actually closed or not, as verified by the Soft Panel.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="line-height: 15px;"&gt;What am I doing wrong?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Dec 2015 14:48:00 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/Switch-Hardware-and-Software/CanConnect-From-NET-Wrapper-Never-True/m-p/3228258#M2811</guid>
      <dc:creator>jvavra</dc:creator>
      <dc:date>2015-12-11T14:48:00Z</dc:date>
    </item>
    <item>
      <title>Re: CanConnect From .NET Wrapper Never True?</title>
      <link>https://ni.lithium.com/t5/Switch-Hardware-and-Software/CanConnect-From-NET-Wrapper-Never-True/m-p/3228363#M2812</link>
      <description>&lt;P&gt;jvavra,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;niSwitch.CanConnect will return an error code. An error code of 0 means that no errors occurred&amp;nbsp;:).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would reference the C API Help if you are looking for info on using the .NET API (it should be nearly the same).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://zone.ni.com/reference/en-XX/help/375472C-01/switchcref/c_nisw_canconnect/" target="_blank"&gt;http://zone.ni.com/reference/en-XX/help/375472C-01/switchcref/c_nisw_canconnect/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The third argument should actually be a variable. Calling that function will update the variable's value with&amp;nbsp;the current status of that path between the two channels. You can later check if the Variable's value == PATH_DOES_EXIST.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cheers!&lt;/P&gt;</description>
      <pubDate>Fri, 11 Dec 2015 18:12:11 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/Switch-Hardware-and-Software/CanConnect-From-NET-Wrapper-Never-True/m-p/3228363#M2812</guid>
      <dc:creator>Frank-L</dc:creator>
      <dc:date>2015-12-11T18:12:11Z</dc:date>
    </item>
    <item>
      <title>Re: CanConnect From .NET Wrapper Never True?</title>
      <link>https://ni.lithium.com/t5/Switch-Hardware-and-Software/CanConnect-From-NET-Wrapper-Never-True/m-p/3228400#M2813</link>
      <description>&lt;P&gt;Frank,&lt;/P&gt;
&lt;P&gt;Thanks, that did it. Just needed to pass in a "Status" variable which I then read after.&lt;/P&gt;</description>
      <pubDate>Fri, 11 Dec 2015 19:19:56 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/Switch-Hardware-and-Software/CanConnect-From-NET-Wrapper-Never-True/m-p/3228400#M2813</guid>
      <dc:creator>jvavra</dc:creator>
      <dc:date>2015-12-11T19:19:56Z</dc:date>
    </item>
  </channel>
</rss>

