<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://dev.simantics.org/index.php?action=history&amp;feed=atom&amp;title=Experiment_Control</id>
	<title>Experiment Control - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://dev.simantics.org/index.php?action=history&amp;feed=atom&amp;title=Experiment_Control"/>
	<link rel="alternate" type="text/html" href="https://dev.simantics.org/index.php?title=Experiment_Control&amp;action=history"/>
	<updated>2026-04-05T22:53:09Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.0</generator>
	<entry>
		<id>https://dev.simantics.org/index.php?title=Experiment_Control&amp;diff=1745&amp;oldid=prev</id>
		<title>Juha Kortelainen at 15:57, 28 January 2011</title>
		<link rel="alternate" type="text/html" href="https://dev.simantics.org/index.php?title=Experiment_Control&amp;diff=1745&amp;oldid=prev"/>
		<updated>2011-01-28T15:57:27Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 15:57, 28 January 2011&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l107&quot;&gt;Line 107:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 107:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;          value : Optional(Variant)&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;          value : Optional(Variant)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;        }&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;        }&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[Category: Data management &amp;amp; Experiment Control]]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Juha Kortelainen</name></author>
	</entry>
	<entry>
		<id>https://dev.simantics.org/index.php?title=Experiment_Control&amp;diff=1598&amp;oldid=prev</id>
		<title>Toni Kalajainen: Created page with &quot;Experiment control is a software component that controls the process of an experiment. It uses a configuration as input.   ===History Collector=== It is experiment control&#039;s resp...&quot;</title>
		<link rel="alternate" type="text/html" href="https://dev.simantics.org/index.php?title=Experiment_Control&amp;diff=1598&amp;oldid=prev"/>
		<updated>2010-12-22T11:03:23Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;Experiment control is a software component that controls the process of an experiment. It uses a configuration as input.   ===History Collector=== It is experiment control&amp;#039;s resp...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Experiment control is a software component that controls the process of an experiment.&lt;br /&gt;
It uses a configuration as input. &lt;br /&gt;
&lt;br /&gt;
===History Collector===&lt;br /&gt;
It is experiment control&amp;#039;s responsibility to collect history data. &lt;br /&gt;
One part of its configuration defines subscription parameters.&lt;br /&gt;
The end user can define variables from which samples are collected during experiment. &lt;br /&gt;
&amp;#039;&amp;#039;Subscription&amp;#039;&amp;#039; is a group, &amp;#039;&amp;#039;subscription item&amp;#039;&amp;#039; is a configuration for a single variable.&lt;br /&gt;
&lt;br /&gt;
  SubscriptionItem = {&lt;br /&gt;
      // Name of the subscription item&lt;br /&gt;
      name: String,&lt;br /&gt;
      // Source data file&lt;br /&gt;
      src: Variant,&lt;br /&gt;
      // Interval in seconds (optional)&lt;br /&gt;
      interval: Optional( Double( unit=&amp;quot;s&amp;quot; )),&lt;br /&gt;
      // Deadband&lt;br /&gt;
      deadband : Optional( Double )&lt;br /&gt;
  }&lt;br /&gt;
&lt;br /&gt;
The collected data is stored in experiment&amp;#039;s workarea, each subscription item as a file. &lt;br /&gt;
&amp;#039;&amp;#039;Experiment Workarea&amp;#039;&amp;#039; is a directory that contains experiment result files: timeseries and milestones.&lt;br /&gt;
&lt;br /&gt;
Time series is databoard binary file (.dbb), and its type is&lt;br /&gt;
 TimeSeries = {&lt;br /&gt;
     // Value source, typically a String&lt;br /&gt;
     source : Variant,&lt;br /&gt;
     // All labels&lt;br /&gt;
     labels : LocalizedTexts,&lt;br /&gt;
     // Subscription params&lt;br /&gt;
     params : SubscriptionItem,&lt;br /&gt;
     // Time series&lt;br /&gt;
     data : Map( &amp;lt;time type&amp;gt;, &amp;lt;value type&amp;gt; )&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
File name corresponds to the subscription item name with the following encoding:&lt;br /&gt;
   S&amp;lt;string&amp;gt;.dbb   String types&lt;br /&gt;
                   control characters &amp;quot; : &amp;lt; &amp;gt; | ? * \ / % [0..31] [128..] are escaped with %&amp;lt;hex&amp;gt;&amp;lt;hex&amp;gt;&lt;br /&gt;
   I&amp;lt;integer&amp;gt;.dbb  Integer types&lt;br /&gt;
   L&amp;lt;long&amp;gt;.dbb     Long types&lt;br /&gt;
   B&amp;lt;base64&amp;gt;.dbb    All other cases. The value is binary encoded and presented as single line Base64 string.&lt;br /&gt;
                   Base64 encoding has Url and filename safe encoding flags enabled.&lt;br /&gt;
&lt;br /&gt;
[[image:SampleCollector.png]]&lt;br /&gt;
&lt;br /&gt;
Samples are captured at real-time from data source, eg. simulation or measuring device, and written to a &amp;lt;tt&amp;gt;SampleCollection&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&amp;lt;tt&amp;gt;SamplingConfiguration&amp;lt;/tt&amp;gt; is an input to the SampleCollector. It describes how to do sampling. &lt;br /&gt;
There is a &amp;lt;tt&amp;gt;Record&amp;lt;/tt&amp;gt; for each &amp;#039;&amp;#039;subscribed&amp;#039;&amp;#039; variable. Subscription is a describes how and when samples are recorded from a variable. &lt;br /&gt;
&lt;br /&gt;
Samples may be collected:&lt;br /&gt;
*on every step&lt;br /&gt;
*on change&lt;br /&gt;
*on change that exceeds change tolerance dead band&lt;br /&gt;
*at intervals&lt;br /&gt;
&lt;br /&gt;
  type SamplingConfiguration = {&lt;br /&gt;
         // Capture events, if true events are captured&lt;br /&gt;
         captureEvents : Boolean,&lt;br /&gt;
 &lt;br /&gt;
         // Subscribed Variables&lt;br /&gt;
         subscriptions : SubscriptionParameters[]&lt;br /&gt;
       }&lt;br /&gt;
  &lt;br /&gt;
  type SubscriptionParameters = {&lt;br /&gt;
         variableId : Variant,&lt;br /&gt;
         deadband : Optional( Double ),&lt;br /&gt;
         interval : Optional( Variant ),&lt;br /&gt;
         sampleEveryStep : Boolean&lt;br /&gt;
       }&lt;br /&gt;
&lt;br /&gt;
If interval is omited, the variable is sampled at every step (this applies to step wise data sources).&lt;br /&gt;
&lt;br /&gt;
There can be multiple subscriptions for one variable, though they are both written to one record. If sampling from multiple subscriptions create a sample at the same timecode, only&lt;br /&gt;
one sample is written to the record.&lt;br /&gt;
&lt;br /&gt;
See [[Dataflows]] for Simantics layout of data flow components.&lt;br /&gt;
====Deadband====&lt;br /&gt;
[[image:deadband.png]]&lt;br /&gt;
&lt;br /&gt;
Often values too small are irrelevant and to conserve space they can be omited.&lt;br /&gt;
As the value of variable changes, its values are written to a record. &lt;br /&gt;
If the difference between variable value and the last recorded value does not meet the dead band, the new value is not written to the record.&lt;br /&gt;
The first and the last value of a deadband segment is always recorded.&lt;br /&gt;
When deadband property is enabled, the produced record is in &amp;lt;tt&amp;gt;Sparse&amp;lt;/tt&amp;gt; presentation format.&lt;br /&gt;
&lt;br /&gt;
[[image:deadband2.png]]&lt;br /&gt;
&lt;br /&gt;
The setting &amp;lt;tt&amp;gt;deadband = 0.0&amp;lt;/tt&amp;gt; can be used for not-storing redundant samples in the record.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==History Archive==&lt;br /&gt;
History archive is a data warehouse where experiment results are persistently stored. It is network accesible service and managed by end users.&lt;br /&gt;
&lt;br /&gt;
Its datamodel consists of nodes. There is dual structure, a tree hierarchy, and a map for random access.&lt;br /&gt;
&lt;br /&gt;
The identifier is variant. The root id is the [[#Default_Value|Default Value]] of a Variant type, an empty record :{}.&lt;br /&gt;
Ids are immutable and unique, two nodes cannot have same identifier. If such is case in the back-end system, a circumventing measure must be used in the implementation. It is typically sufficient, if path is included in the format of the id. Another strategy is to use GUIDs. &lt;br /&gt;
There are three identification serialization formats for the references: text, binary, url.&lt;br /&gt;
&lt;br /&gt;
  type DataRepository = {&lt;br /&gt;
         nodes : Map(Variant, Node)&lt;br /&gt;
       }&lt;br /&gt;
  type Node = {&lt;br /&gt;
         id : Variant,&lt;br /&gt;
         labels : LocalizedText,&lt;br /&gt;
         children : Variant[],&lt;br /&gt;
         value : Optional(Variant)&lt;br /&gt;
       }&lt;/div&gt;</summary>
		<author><name>Toni Kalajainen</name></author>
	</entry>
</feed>