<?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: Using control limit values later in script in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Using-control-limit-values-later-in-script/m-p/416990#M66611</link>
    <description>&lt;P&gt;Thank you for the help, I really appreciate it. I think I need a few changes earlier in my script!&lt;/P&gt;</description>
    <pubDate>Thu, 09 Sep 2021 20:32:11 GMT</pubDate>
    <dc:creator>J-Leonard</dc:creator>
    <dc:date>2021-09-09T20:32:11Z</dc:date>
    <item>
      <title>Using control limit values later in script</title>
      <link>https://community.jmp.com/t5/Discussions/Using-control-limit-values-later-in-script/m-p/416815#M66593</link>
      <description>&lt;P&gt;I am working on writing a script with an end goal of generating a control chart with additional reference lines based on the JMP-calculated control limits added to it. What I believe I need to do is find the numeric values for&amp;nbsp;&lt;SPAN&gt;&amp;nbsp;_KSigma, _Std Dev, _Mean, _LCL, and _UCL. From there, I need to use these values to calculate another reference line that needs to be added back to the original control chart.&amp;nbsp;One of the biggest hurdles I have is that there are two control charts generated from the one data table since I am looking at two different parameters. I have tried quite a few different things, but either they don't work as intended or I don't know how to execute them properly.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;Some of the things I have done so far that were met with minimal success are:&lt;/DIV&gt;&lt;DIV&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN&gt;Saving the limits from the control chart into a new data table. This works, but I don't know how to save the untitled tables or access the variables that are in the untitled tables.&amp;nbsp;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;Have my new reference line be a formula in my chart script. This only halfway works since it'll calculate correctly for the second data table but is not initialized for the first data table.&amp;nbsp;&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;DIV&gt;&lt;SPAN&gt;Other ideas I had that I am not sure how to execute:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN&gt;Save the desired values from the control chart as variables to use in calculations. That way I could close the first control chart and create a new one.&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;Save the desired values from the control chart to a matrix or list and do calculations from there.&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;Calculate the control limits from the control chart "manually" in JMP, but I don't know the formula.&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;If anyone has any scripting suggestions or other ideas on how to do this, please let me know.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I am using JMP 10 to create IR charts that generate the control limits.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 09 Jun 2023 19:56:23 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Using-control-limit-values-later-in-script/m-p/416815#M66593</guid>
      <dc:creator>J-Leonard</dc:creator>
      <dc:date>2023-06-09T19:56:23Z</dc:date>
    </item>
    <item>
      <title>Re: Using control limit values later in script</title>
      <link>https://community.jmp.com/t5/Discussions/Using-control-limit-values-later-in-script/m-p/416920#M66598</link>
      <description>&lt;P&gt;I think it will help others to make good suggestions if you are able to share which JMP Platform you will be using to generate the control limits, please.&lt;/P&gt;</description>
      <pubDate>Thu, 09 Sep 2021 15:47:33 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Using-control-limit-values-later-in-script/m-p/416920#M66598</guid>
      <dc:creator>ian_jmp</dc:creator>
      <dc:date>2021-09-09T15:47:33Z</dc:date>
    </item>
    <item>
      <title>Re: Using control limit values later in script</title>
      <link>https://community.jmp.com/t5/Discussions/Using-control-limit-values-later-in-script/m-p/416951#M66602</link>
      <description>&lt;P&gt;I am using JMP 10 to create IR charts that generate the control limits.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Sep 2021 17:26:56 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Using-control-limit-values-later-in-script/m-p/416951#M66602</guid>
      <dc:creator>J-Leonard</dc:creator>
      <dc:date>2021-09-09T17:26:56Z</dc:date>
    </item>
    <item>
      <title>Re: Using control limit values later in script</title>
      <link>https://community.jmp.com/t5/Discussions/Using-control-limit-values-later-in-script/m-p/416960#M66604</link>
      <description>&lt;P&gt;I believe this will give you a leg up on how to reference the data tables.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;names default to here(1);
dt=open("$SAMPLE_DATA\big class.jmp");

cc = Control Chart(
	Group Size(1),
	KSigma(3),
	Chart Col(:height, Individual Measurement, Moving Range),
	Chart Col(:weight, Individual Measurement, Moving Range),
	SendToReport(
		Dispatch(
			{"Individual Measurement of height"},
			"IR Chart of IM",
			FrameBox(2),
			{Frame Size(68, 208)}
		),
		Dispatch(
			{"Moving Range of height"},
			"IR Chart of MR",
			FrameBox(2),
			{Frame Size(68, 208)}
		)
	)
);

dtLimits = cc &amp;lt;&amp;lt; in new table;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 09 Sep 2021 18:59:45 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Using-control-limit-values-later-in-script/m-p/416960#M66604</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2021-09-09T18:59:45Z</dc:date>
    </item>
    <item>
      <title>Re: Using control limit values later in script</title>
      <link>https://community.jmp.com/t5/Discussions/Using-control-limit-values-later-in-script/m-p/416978#M66608</link>
      <description>&lt;P&gt;Yes, that lets me create two new data tables with the control limits in them. However, I can't (or don't know how to) reference those data tables since they are untitled and unsaved. I need to be able to either save those data tables with a line of script or reference data in the unsaved tables with a line of script.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Sep 2021 19:41:41 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Using-control-limit-values-later-in-script/m-p/416978#M66608</guid>
      <dc:creator>J-Leonard</dc:creator>
      <dc:date>2021-09-09T19:41:41Z</dc:date>
    </item>
    <item>
      <title>Re: Using control limit values later in script</title>
      <link>https://community.jmp.com/t5/Discussions/Using-control-limit-values-later-in-script/m-p/416983#M66610</link>
      <description>&lt;P&gt;The references to the data tables are "dt" and "dtLimits".&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;close( dt, nosave );&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;will close the data table called Big Class&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Or if you need to add a new column to that data table it would be&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt &amp;lt;&amp;lt; new column("my column", formula(:height*:weight);;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;and if you want to reference the limits table, such as to get the _std Dev value for the :height column, you can get it with&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;height_Std_Dev = dtLimits;height[4];&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;where the _Std Dev value in in the 4th row of the height column in the dtLimits data table.&lt;/P&gt;
&lt;P&gt;or getting fancier&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;height_Std_dev = :height[(dtLimits &amp;lt;&amp;lt; get rows where(:_LimitsKey == "_Std Dev"))[1]];&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Scoping and data table referencing are documented in the Scripting Guide.&amp;nbsp; For JMP 10 it is found under&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Help=&amp;gt;Books=&amp;gt;Scripting Guide&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Sep 2021 20:03:45 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Using-control-limit-values-later-in-script/m-p/416983#M66610</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2021-09-09T20:03:45Z</dc:date>
    </item>
    <item>
      <title>Re: Using control limit values later in script</title>
      <link>https://community.jmp.com/t5/Discussions/Using-control-limit-values-later-in-script/m-p/416990#M66611</link>
      <description>&lt;P&gt;Thank you for the help, I really appreciate it. I think I need a few changes earlier in my script!&lt;/P&gt;</description>
      <pubDate>Thu, 09 Sep 2021 20:32:11 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Using-control-limit-values-later-in-script/m-p/416990#M66611</guid>
      <dc:creator>J-Leonard</dc:creator>
      <dc:date>2021-09-09T20:32:11Z</dc:date>
    </item>
  </channel>
</rss>

