<?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: Dynamically setting the Station process Model in NI TestStand</title>
    <link>https://ni.lithium.com/t5/NI-TestStand/Dynamically-setting-the-Station-process-Model/m-p/942060#M25035</link>
    <description>&lt;P&gt;Hi Guys.&amp;nbsp; Thanks for your attention.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please allow me to outline why I need to change the process model within the sequence file.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Basically I don't want to have the operator do it. &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've got multipurpose test stations in manufacturing that test several different products.&amp;nbsp; They're all tested using TestStand sequences which use the Sequence Process Model.&amp;nbsp; I am introducing a sequence for only one of the products that uses a customized version of the parallel process model. &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When the operator switches between products I don't want to make changing the process model something they need to do.&amp;nbsp; They will not have privileges to do so anyway.&amp;nbsp; I am hoping that I can change all the existing sequences to set the process model.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So for this situation where's the best place in the test sequence to set the process model? &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 09 Jul 2009 15:53:37 GMT</pubDate>
    <dc:creator>mike_22</dc:creator>
    <dc:date>2009-07-09T15:53:37Z</dc:date>
    <item>
      <title>Dynamically setting the Station process Model</title>
      <link>https://ni.lithium.com/t5/NI-TestStand/Dynamically-setting-the-Station-process-Model/m-p/941437#M25018</link>
      <description>&lt;SPAN class="noindex"&gt;&lt;P&gt;I've noticed in an existing post, that in order to dynamically set the active process model you use the property&amp;nbsp; &lt;SPAN class="noindex"&gt;Engine.StationOptions.StationModelSequenceFilePath. (Search for "&lt;/SPAN&gt;&lt;SPAN class="noindex"&gt;&lt;SPAN class="navbar_text"&gt;How i can dynamically (at Run time) switch the Models?").&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But where do you put the statement that sets it? &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks &lt;/P&gt;&lt;/SPAN&gt;</description>
      <pubDate>Wed, 08 Jul 2009 21:55:13 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/NI-TestStand/Dynamically-setting-the-Station-process-Model/m-p/941437#M25018</guid>
      <dc:creator>mike_22</dc:creator>
      <dc:date>2009-07-08T21:55:13Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamically setting the Station process Model</title>
      <link>https://ni.lithium.com/t5/NI-TestStand/Dynamically-setting-the-Station-process-Model/m-p/941854#M25026</link>
      <description>&lt;P&gt;That might depend on why you need to change process models. When do you need to switch between process models?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-Jack&lt;/P&gt;&lt;DIV class="message-edit-history"&gt;&lt;SPAN class="edit-author"&gt;Message Edited by Capt. Jack on &lt;/SPAN&gt;&lt;SPAN class="local-date"&gt; 07-09-2009&lt;/SPAN&gt;&lt;SPAN class="local-time"&gt; 08:54 AM&lt;/SPAN&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 09 Jul 2009 12:54:51 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/NI-TestStand/Dynamically-setting-the-Station-process-Model/m-p/941854#M25026</guid>
      <dc:creator>Captain_Jack</dc:creator>
      <dc:date>2009-07-09T12:54:51Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamically setting the Station process Model</title>
      <link>https://ni.lithium.com/t5/NI-TestStand/Dynamically-setting-the-Station-process-Model/m-p/941980#M25029</link>
      <description>&lt;P&gt;Hey Mike,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You will not want to change the process model when running a different process model.&amp;nbsp; But if you are creating a tool or something then this would be ok to do.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can place it in anything that accepts an expression.&amp;nbsp; So like a Status Expression, Expression Statement, Post Expression, etc...&amp;nbsp; Notice that you have to have an instance of the Engine.&amp;nbsp; So if you are chaning it outside of TS (like in LV or CVI or .NET) then you will have to create an instance of the Engine.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;Just set that equal to the path like this: &lt;FONT size="1"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;FONT size="1"&gt;&lt;P&gt;&lt;FONT size="2"&gt;RunState&lt;FONT color="#0000ff"&gt;&lt;FONT color="#0000ff"&gt;.&lt;/FONT&gt;&lt;/FONT&gt;Engine&lt;FONT color="#0000ff"&gt;&lt;FONT color="#0000ff"&gt;.&lt;/FONT&gt;&lt;/FONT&gt;StationOptions&lt;FONT color="#0000ff"&gt;&lt;FONT color="#0000ff"&gt;.&lt;/FONT&gt;&lt;/FONT&gt;StationModelSequenceFilePath &lt;FONT color="#0000ff"&gt;&lt;FONT color="#0000ff"&gt;=&lt;/FONT&gt;&lt;/FONT&gt; &lt;FONT color="#7b7bc0"&gt;&lt;FONT color="#7b7bc0"&gt;"C:\\Program Files\\National Instruments\\TestStand 4.1.1\\Components\Models\\TestStandModels\\ParallelModel.seq"&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;/FONT&gt;&lt;P&gt;&lt;FONT size="2"&gt;&lt;FONT color="#7b7bc0"&gt;&lt;FONT color="#7b7bc0"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;&lt;FONT color="#7b7bc0"&gt;&lt;FONT color="#7b7bc0"&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Jul 2009 14:36:47 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/NI-TestStand/Dynamically-setting-the-Station-process-Model/m-p/941980#M25029</guid>
      <dc:creator>~jiggawax~</dc:creator>
      <dc:date>2009-07-09T14:36:47Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamically setting the Station process Model</title>
      <link>https://ni.lithium.com/t5/NI-TestStand/Dynamically-setting-the-Station-process-Model/m-p/942060#M25035</link>
      <description>&lt;P&gt;Hi Guys.&amp;nbsp; Thanks for your attention.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please allow me to outline why I need to change the process model within the sequence file.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Basically I don't want to have the operator do it. &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've got multipurpose test stations in manufacturing that test several different products.&amp;nbsp; They're all tested using TestStand sequences which use the Sequence Process Model.&amp;nbsp; I am introducing a sequence for only one of the products that uses a customized version of the parallel process model. &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When the operator switches between products I don't want to make changing the process model something they need to do.&amp;nbsp; They will not have privileges to do so anyway.&amp;nbsp; I am hoping that I can change all the existing sequences to set the process model.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So for this situation where's the best place in the test sequence to set the process model? &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Jul 2009 15:53:37 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/NI-TestStand/Dynamically-setting-the-Station-process-Model/m-p/942060#M25035</guid>
      <dc:creator>mike_22</dc:creator>
      <dc:date>2009-07-09T15:53:37Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamically setting the Station process Model</title>
      <link>https://ni.lithium.com/t5/NI-TestStand/Dynamically-setting-the-Station-process-Model/m-p/942178#M25041</link>
      <description>&lt;P&gt;Oh yeah forgot to tell you in my last post-&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can make a sequence file require a specific process model.&amp;nbsp; So that no matter what the station model is set to the sequence file will always use the designated model you provide.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;With the sequence file that requires the new process model open go to Edit&amp;gt;&amp;gt;Sequence File Properties.&amp;nbsp; On the Advanced tab&amp;nbsp;under Model Options select Require Specific Model.&amp;nbsp; You will then see a Model File box.&amp;nbsp; Browse to your&amp;nbsp;new model and select it.&amp;nbsp; Click OK to exit.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now&amp;nbsp;every time that sequence file is opened it will use that process model regardless of what&amp;nbsp;the station model is.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope this helps,&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Jul 2009 17:57:02 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/NI-TestStand/Dynamically-setting-the-Station-process-Model/m-p/942178#M25041</guid>
      <dc:creator>~jiggawax~</dc:creator>
      <dc:date>2009-07-09T17:57:02Z</dc:date>
    </item>
  </channel>
</rss>

