<?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: preventing 2 instances of process model in NI TestStand</title>
    <link>https://forums.ni.com/t5/NI-TestStand/preventing-2-instances-of-process-model/m-p/3259206#M50737</link>
    <description>&lt;P&gt;Or is this the way to go ?&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/370052N-01/tsuiref/reftopics/applicationmgr_setautocloseexecution_m/" target="_blank"&gt;http://zone.ni.com/reference/en-XX/help/370052N-01/tsuiref/reftopics/applicationmgr_setautocloseexecution_m/&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 26 Feb 2016 08:55:49 GMT</pubDate>
    <dc:creator>NikolajEgeskovOstergaard</dc:creator>
    <dc:date>2016-02-26T08:55:49Z</dc:date>
    <item>
      <title>preventing 2 instances of process model</title>
      <link>https://forums.ni.com/t5/NI-TestStand/preventing-2-instances-of-process-model/m-p/3254956#M50677</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;We have several testers in operation. &amp;nbsp;There is a particular test that we run, that has some idle time involved on the UUT, and it appears there is no test running. &amp;nbsp;Then a person may come up and try to execute another instance of a sequence, thus re-executing the process model, trying to initialize hardware that's already in use and causing a cascade of errors, also screwing up the test that was currently under execution.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a property I can check right off the bat in the process model, in which I can program in a prompt to warn the person "there is already another test in progress here, abort?", and cleanly terminate? &amp;nbsp;Or better yet, is there an option somewhere in teststand like "prevent concurrent execution of process model" or such?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;David Jenkinson&lt;/P&gt;</description>
      <pubDate>Wed, 17 Feb 2016 23:32:40 GMT</pubDate>
      <guid>https://forums.ni.com/t5/NI-TestStand/preventing-2-instances-of-process-model/m-p/3254956#M50677</guid>
      <dc:creator>david_jenkinson</dc:creator>
      <dc:date>2016-02-17T23:32:40Z</dc:date>
    </item>
    <item>
      <title>Re: preventing 2 instances of process model</title>
      <link>https://forums.ni.com/t5/NI-TestStand/preventing-2-instances-of-process-model/m-p/3255064#M50679</link>
      <description>&lt;P&gt;It kind of depends on how you want to do it. &amp;nbsp;Do you want to prevent it in the UI? Or would it be something in your sequence file?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here are 3 options:&lt;/P&gt;&lt;P&gt;1- Whenever they start an execution in the UI Message Callback you can disable the execute buttons on the UI so they cannot push them.&lt;/P&gt;&lt;P&gt;2- Use the ApplicationMgr.Executions.Count or NumRunning properties and when they click execut pop up a dialog warning them and then stop the execution from running.&lt;/P&gt;&lt;P&gt;3- This would be done in the sequence file. &amp;nbsp;Most likely in the ProcessSetup callback. &amp;nbsp;I've attached a simple example. &amp;nbsp;You could modify it to see if the executions are aborted or still running, etc... through the API.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;</description>
      <pubDate>Thu, 18 Feb 2016 05:59:42 GMT</pubDate>
      <guid>https://forums.ni.com/t5/NI-TestStand/preventing-2-instances-of-process-model/m-p/3255064#M50679</guid>
      <dc:creator>~jiggawax~</dc:creator>
      <dc:date>2016-02-18T05:59:42Z</dc:date>
    </item>
    <item>
      <title>Re: preventing 2 instances of process model</title>
      <link>https://forums.ni.com/t5/NI-TestStand/preventing-2-instances-of-process-model/m-p/3255450#M50689</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Not using the UI, so it would be something from the sequence file, namely very early in the process model ProcessSetup, because there is some station hardware initialization stuff there that I dont' want to execute again if there's already a sequence launched/running.&lt;/P&gt;&lt;P&gt;I couldn't open your example, I'm running teststand 5.0.1.226 (2013). &amp;nbsp;Any way you can save-as?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;David J&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Feb 2016 18:42:12 GMT</pubDate>
      <guid>https://forums.ni.com/t5/NI-TestStand/preventing-2-instances-of-process-model/m-p/3255450#M50689</guid>
      <dc:creator>david_jenkinson</dc:creator>
      <dc:date>2016-02-18T18:42:12Z</dc:date>
    </item>
    <item>
      <title>Re: preventing 2 instances of process model</title>
      <link>https://forums.ni.com/t5/NI-TestStand/preventing-2-instances-of-process-model/m-p/3255480#M50691</link>
      <description>&lt;P&gt;Try this one.&lt;/P&gt;</description>
      <pubDate>Thu, 18 Feb 2016 19:29:54 GMT</pubDate>
      <guid>https://forums.ni.com/t5/NI-TestStand/preventing-2-instances-of-process-model/m-p/3255480#M50691</guid>
      <dc:creator>~jiggawax~</dc:creator>
      <dc:date>2016-02-18T19:29:54Z</dc:date>
    </item>
    <item>
      <title>Re: preventing 2 instances of process model</title>
      <link>https://forums.ni.com/t5/NI-TestStand/preventing-2-instances-of-process-model/m-p/3258771#M50730</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried the attached example.&lt;/P&gt;&lt;P&gt;It's working perfectly as instended when i use it directly in the development environment.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However if i use the "simple operator interface" provided with Teststand,&amp;nbsp;the executions are not "closed" untill i press "Close Executions".&lt;/P&gt;&lt;P&gt;That means even if the sequence is done, the execution is keept alive, hence i can't start a new one.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How i can (per sequence) make sure that the execution is completely closed imidiately after the "PASSED - FAILED - TERMINATED" sign ?&lt;/P&gt;</description>
      <pubDate>Thu, 25 Feb 2016 16:07:09 GMT</pubDate>
      <guid>https://forums.ni.com/t5/NI-TestStand/preventing-2-instances-of-process-model/m-p/3258771#M50730</guid>
      <dc:creator>NikolajEgeskovOstergaard</dc:creator>
      <dc:date>2016-02-25T16:07:09Z</dc:date>
    </item>
    <item>
      <title>Re: preventing 2 instances of process model</title>
      <link>https://forums.ni.com/t5/NI-TestStand/preventing-2-instances-of-process-model/m-p/3258878#M50731</link>
      <description>&lt;P&gt;Forgot to post back, thanks for this. &amp;nbsp;Works perfectly, I've got it as the first thing that happens in ProcessSetup/setup. &amp;nbsp;Thanks for the prompt response&lt;/P&gt;</description>
      <pubDate>Thu, 25 Feb 2016 18:27:42 GMT</pubDate>
      <guid>https://forums.ni.com/t5/NI-TestStand/preventing-2-instances-of-process-model/m-p/3258878#M50731</guid>
      <dc:creator>david_jenkinson</dc:creator>
      <dc:date>2016-02-25T18:27:42Z</dc:date>
    </item>
    <item>
      <title>Re: preventing 2 instances of process model</title>
      <link>https://forums.ni.com/t5/NI-TestStand/preventing-2-instances-of-process-model/m-p/3258882#M50732</link>
      <description>&lt;P&gt;Nikolaj,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;On the get Num Executions step you&amp;nbsp; can just change the property to NumIncomplete.&amp;nbsp; Here is an example.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;David,&lt;/P&gt;&lt;P&gt;Glad it is working for you.&lt;/P&gt;</description>
      <pubDate>Thu, 25 Feb 2016 18:31:09 GMT</pubDate>
      <guid>https://forums.ni.com/t5/NI-TestStand/preventing-2-instances-of-process-model/m-p/3258882#M50732</guid>
      <dc:creator>~jiggawax~</dc:creator>
      <dc:date>2016-02-25T18:31:09Z</dc:date>
    </item>
    <item>
      <title>Re: preventing 2 instances of process model</title>
      <link>https://forums.ni.com/t5/NI-TestStand/preventing-2-instances-of-process-model/m-p/3259183#M50736</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i'm not sure it's the solution to my problem.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;the part about not starting a new execution when there is already one running is working fine.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My problem is that the "simple operator interface" keeps previous executions alive, untill i press "close execution" in the UI.&lt;/P&gt;&lt;P&gt;Is there a way to make sure that each execution closes it self after the reporting is done ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;that way i would be able to start a new execution without having to press the "close execution" button.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Alternatively: can i remove the&lt;/P&gt;&lt;P&gt;&lt;FONT face="Consolas" size="2" color="#0000ff"&gt;"this&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt;.axExecutionsComboBox" from the "simple operator interface", to remove the "memory of already finished executions ?&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 26 Feb 2016 08:27:00 GMT</pubDate>
      <guid>https://forums.ni.com/t5/NI-TestStand/preventing-2-instances-of-process-model/m-p/3259183#M50736</guid>
      <dc:creator>NikolajEgeskovOstergaard</dc:creator>
      <dc:date>2016-02-26T08:27:00Z</dc:date>
    </item>
    <item>
      <title>Re: preventing 2 instances of process model</title>
      <link>https://forums.ni.com/t5/NI-TestStand/preventing-2-instances-of-process-model/m-p/3259206#M50737</link>
      <description>&lt;P&gt;Or is this the way to go ?&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/370052N-01/tsuiref/reftopics/applicationmgr_setautocloseexecution_m/" target="_blank"&gt;http://zone.ni.com/reference/en-XX/help/370052N-01/tsuiref/reftopics/applicationmgr_setautocloseexecution_m/&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 26 Feb 2016 08:55:49 GMT</pubDate>
      <guid>https://forums.ni.com/t5/NI-TestStand/preventing-2-instances-of-process-model/m-p/3259206#M50737</guid>
      <dc:creator>NikolajEgeskovOstergaard</dc:creator>
      <dc:date>2016-02-26T08:55:49Z</dc:date>
    </item>
    <item>
      <title>Re: preventing 2 instances of process model</title>
      <link>https://forums.ni.com/t5/NI-TestStand/preventing-2-instances-of-process-model/m-p/3295054#M51461</link>
      <description>&lt;P&gt;I have implemented this solution into the processmodel. It works&lt;/P&gt;&lt;P&gt;Looks like it was also suggested above. i just didn't get it !&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://decibel.ni.com/content/docs/DOC-25952" target="_blank"&gt;https://decibel.ni.com/content/docs/DOC-25952&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 13 May 2016 14:16:17 GMT</pubDate>
      <guid>https://forums.ni.com/t5/NI-TestStand/preventing-2-instances-of-process-model/m-p/3295054#M51461</guid>
      <dc:creator>NikolajEgeskovOstergaard</dc:creator>
      <dc:date>2016-05-13T14:16:17Z</dc:date>
    </item>
  </channel>
</rss>

