<?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: Cannot call.Net static method to specify parameter in NI TestStand</title>
    <link>https://ni.lithium.com/t5/NI-TestStand/Cannot-call-Net-static-method-to-specify-parameter/m-p/3919614#M59622</link>
    <description>&lt;P&gt;Hi TucsonDave,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I think you might find &lt;A href="https://forums.ni.com/t5/NI-TestStand/access-net-static-functions-from-teststand/td-p/664363?profile.language=en" target="_self"&gt;this forum post&lt;/A&gt; helpful.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 25 Apr 2019 21:26:48 GMT</pubDate>
    <dc:creator>nestorl</dc:creator>
    <dc:date>2019-04-25T21:26:48Z</dc:date>
    <item>
      <title>Cannot call.Net static method to specify parameter</title>
      <link>https://ni.lithium.com/t5/NI-TestStand/Cannot-call-Net-static-method-to-specify-parameter/m-p/3919105#M59617</link>
      <description>&lt;P&gt;I have a Step that calls a .Net method.&amp;nbsp; One of the method's parameters is a System.TimeSpan object.&amp;nbsp;&amp;nbsp;When I try to specify the parameter as "System.TimeSpan.FromSeconds(1.0)", I get the following error: "Error in call to TestStand API member 'PropertyObject.FromSeconds'. Method 'FromSeconds' does not exist in interface 'PropertyObject'."&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Note that FromSeconds is a static method.&amp;nbsp; How do I call the method?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Apr 2019 21:59:59 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/NI-TestStand/Cannot-call-Net-static-method-to-specify-parameter/m-p/3919105#M59617</guid>
      <dc:creator>TucsonDave</dc:creator>
      <dc:date>2019-04-24T21:59:59Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot call.Net static method to specify parameter</title>
      <link>https://ni.lithium.com/t5/NI-TestStand/Cannot-call-Net-static-method-to-specify-parameter/m-p/3919614#M59622</link>
      <description>&lt;P&gt;Hi TucsonDave,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I think you might find &lt;A href="https://forums.ni.com/t5/NI-TestStand/access-net-static-functions-from-teststand/td-p/664363?profile.language=en" target="_self"&gt;this forum post&lt;/A&gt; helpful.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 25 Apr 2019 21:26:48 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/NI-TestStand/Cannot-call-Net-static-method-to-specify-parameter/m-p/3919614#M59622</guid>
      <dc:creator>nestorl</dc:creator>
      <dc:date>2019-04-25T21:26:48Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot call.Net static method to specify parameter</title>
      <link>https://ni.lithium.com/t5/NI-TestStand/Cannot-call-Net-static-method-to-specify-parameter/m-p/3919629#M59623</link>
      <description>&lt;P&gt;The post refers to a "Create Object" checkbox.&amp;nbsp; I do not see that checkbox in the Module tab of the Step Settings.&amp;nbsp; Attached is a screenshot of my Step Settings.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;BTW, TimeSpan is a struct and not a class, if that is relevant.&lt;/P&gt;</description>
      <pubDate>Thu, 25 Apr 2019 22:04:18 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/NI-TestStand/Cannot-call-Net-static-method-to-specify-parameter/m-p/3919629#M59623</guid>
      <dc:creator>TucsonDave</dc:creator>
      <dc:date>2019-04-25T22:04:18Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot call.Net static method to specify parameter</title>
      <link>https://ni.lithium.com/t5/NI-TestStand/Cannot-call-Net-static-method-to-specify-parameter/m-p/3919861#M59628</link>
      <description>&lt;P&gt;in a separate .NET step, select mscorlib from the GAC, select the TimeSpan data type, then, instead of where you have "Use Existing Object" select the static method you wish to call (i.e. FromSeconds). Store the result in a local object reference variable, then in a second step pass that reference in to whatever is taking that as a parameter.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps,&lt;/P&gt;
&lt;P&gt;-Doug&lt;/P&gt;</description>
      <pubDate>Fri, 26 Apr 2019 13:09:21 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/NI-TestStand/Cannot-call-Net-static-method-to-specify-parameter/m-p/3919861#M59628</guid>
      <dc:creator>dug9000</dc:creator>
      <dc:date>2019-04-26T13:09:21Z</dc:date>
    </item>
  </channel>
</rss>

