{"id":3948,"date":"2019-02-12T16:10:12","date_gmt":"2019-02-12T16:10:12","guid":{"rendered":"https:\/\/cyflexdoc.wpengine.com\/usage-help-manual\/14-statistical-sampling\/snap_stats\/"},"modified":"2025-11-14T13:00:47","modified_gmt":"2025-11-14T18:00:47","slug":"snap_stats","status":"publish","type":"page","link":"https:\/\/cyflex.com\/index.php\/usage-help-manual\/8-statistical-sampling\/snap_stats\/","title":{"rendered":"snap_stats"},"content":{"rendered":"<div>\n<h3>Purpose:<\/h3>\n<\/div>\n<dl>\n<dd>\n<p>Perform statistical computations such as mean, standard deviation, minimum, and maximum for specified variables, synchronized by external events.<\/p>\n<\/dd>\n<\/dl>\n<h3>Enter:<\/h3>\n<dl>\n<dd>\n<p><strong>snap_stats<\/strong> &lt;reg_name&gt; &lt;priority&gt; &lt;interval&gt; [+c] &amp;<\/p>\n<\/dd>\n<\/dl>\n<h3>Where:<\/h3>\n<dl>\n<dd>\n<table style=\"width: 100%;\" cellspacing=\"0\" cellpadding=\"0\">\n<colgroup>\n<col \/>\n<col \/> <\/colgroup>\n<tbody>\n<tr>\n<td style=\"width: 6.26%;\">\n<p>reg_name<\/p>\n<\/td>\n<td style=\"width: 93.57%;\">\n<p>Specify a unique registration name for multiple instances.<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 6.26%;\">\n<p>priority<\/p>\n<\/td>\n<td style=\"width: 93.57%;\">\n<p>Specify the system priority level.<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 6.26%;\">\n<p>interval<\/p>\n<\/td>\n<td style=\"width: 93.57%;\">\n<p>Specify the time interval in milliseconds for scheduler signaling.<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 6.26%;\">\n<p>+c<\/p>\n<\/td>\n<td style=\"width: 93.57%;\">\n<p>Optional. Specify this flag to indicate the process is considered to be a critical task. The watchdog will be triggered if the process abnormally terminates.<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/dd>\n<\/dl>\n<h3>Example:<\/h3>\n<dl>\n<dd>\n<p><b>snap_stats <\/b>SnapStat121000 &amp;<\/p>\n<p>The above spawns the Snap Statistics process, snap_stats at a system priority level of 12 and would signal the master scheduler once every second. The registered name of this instance will be &#8220;SnapStat&#8221;.<\/p>\n<p>Configure the &#8220;snap_stats&#8221; application using the &#8220;snap_specs&#8221; translator application. The default spec file name is \/specs\/ss_specs.NNN (where NNN is the test cell name).\u00a0<\/p>\n<p>Below is an example spec file:<\/p>\n<div>#\u00a0the\u00a0@REG_NAME\u00a0keyword\u00a0is\u00a0optional\u00a0&#8211;\u00a0the\u00a0default\u00a0registered\u00a0name\u00a0is\u00a0SnapStat \u00a0<br \/>\n@REG_NAME \u00a0<br \/>\n\u00a0\u00a0\u00a0SnapStat \u00a0<br \/>\n\u00a0<br \/>\n#################################################################### \u00a0<br \/>\n#\u00a0this\u00a0is\u00a0an\u00a0example\u00a0specification\u00a0file\u00a0for\u00a0the\u00a0snap_stats\u00a0task \u00a0<br \/>\n# \u00a0<br \/>\n#\u00a0There\u00a0can\u00a0be\u00a08\u00a0groups\u00a0of\u00a0specs\u00a0in\u00a0this\u00a0file,\u00a0each\u00a0with\u00a0a\u00a0distinct \u00a0<br \/>\n#\u00a0set\u00a0of\u00a0controlling\u00a0events.\u00a0\u00a0Each\u00a0group\u00a0can\u00a0have\u00a064\u00a0variables. \u00a0<br \/>\n# \u00a0<br \/>\n#\u00a0Separate\u00a0each\u00a0group\u00a0with\u00a0a\u00a0$\u00a0symbol \u00a0<br \/>\n# \u00a0<br \/>\n####################################################################### \u00a0<br \/>\n#sample_event\u00a0\u00a0\u00a0compute_event\u00a0\u00a0\u00a0\u00a0\u00a0compute_done_event\u00a0\u00a0\u00a0clear_event \u00a0<br \/>\ntake_sample\u00a0\u00a0\u00a0\u00a0\u00a0compute_result\u00a0\u00a0\u00a0\u00a0compute_done\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0clear_buffers \u00a0<br \/>\n\u00a0<br \/>\n#list\u00a0of\u00a0variables\u00a0(\u00a0100\u00a0max\u00a0) \u00a0<br \/>\n#in_variable\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0stat_variable(output) \u00a0<br \/>\nmy_x\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0my_x. \u00a0<br \/>\nmy_x2\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0my_x2. \u00a0<br \/>\nmy_x3\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0my_stat. \u00a0<br \/>\n#ldots \u00a0<br \/>\n# \u00a0<br \/>\n$ \u00a0<br \/>\n\u00a0<br \/>\n#sample_event\u00a0\u00a0\u00a0compute_event\u00a0\u00a0\u00a0\u00a0\u00a0compute_done_event\u00a0\u00a0\u00a0clear_event \u00a0<br \/>\nsample\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0compute_result\u00a0\u00a0\u00a0\u00a0&#8211;\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0clear_buffers \u00a0<br \/>\n\u00a0<br \/>\n#list\u00a0of\u00a0variables\u00a0(\u00a0100\u00a0max\u00a0) \u00a0<br \/>\n#variable\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0stat_variable(output) \u00a0<br \/>\nan_x\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0an_x. \u00a0<br \/>\n#ldots \u00a0<br \/>\n\u00a0<br \/>\n$<\/div>\n<\/dd>\n<\/dl>\n<h3>Notes:<\/h3>\n<dl>\n<dd>\n<p>Ensure the program is configured via appropriate tools for optimal operation.<\/p>\n<\/dd>\n<\/dl>\n<h3>See Also:<\/h3>\n<dl>\n<dd>\n<p><a href=\"\/index.php\/usage-help-manual\/8-statistical-sampling\/snap_specs\/\">snap_specs<\/a>, <a href=\"\/wp-content\/uploads\/Statistical-Variables-and-Sampling.pdf\">Statistical Variables and Sampling<\/a><\/p>\n<\/dd>\n<\/dl>\n","protected":false},"excerpt":{"rendered":"<p>Purpose: Perform statistical computations such as mean, standard deviation, minimum, and maximum for specified variables, synchronized by external events. Enter: snap_stats &lt;reg_name&gt; &lt;priority&gt; &lt;interval&gt; [+c] &amp; Where: reg_name Specify a unique registration name for multiple instances. priority Specify the system priority level. interval Specify the time interval in milliseconds for scheduler signaling. +c Optional. Specify [&hellip;]<\/p>\n","protected":false},"author":47,"featured_media":0,"parent":1961,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-3948","page","type-page","status-publish","hentry"],"post_mailing_queue_ids":[],"_links":{"self":[{"href":"https:\/\/cyflex.com\/index.php\/wp-json\/wp\/v2\/pages\/3948","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/cyflex.com\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/cyflex.com\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/cyflex.com\/index.php\/wp-json\/wp\/v2\/users\/47"}],"replies":[{"embeddable":true,"href":"https:\/\/cyflex.com\/index.php\/wp-json\/wp\/v2\/comments?post=3948"}],"version-history":[{"count":0,"href":"https:\/\/cyflex.com\/index.php\/wp-json\/wp\/v2\/pages\/3948\/revisions"}],"up":[{"embeddable":true,"href":"https:\/\/cyflex.com\/index.php\/wp-json\/wp\/v2\/pages\/1961"}],"wp:attachment":[{"href":"https:\/\/cyflex.com\/index.php\/wp-json\/wp\/v2\/media?parent=3948"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}