{"id":10023,"date":"2020-08-05T16:41:30","date_gmt":"2020-08-05T16:41:30","guid":{"rendered":"https:\/\/cyflexdoc.wpengine.com\/?page_id=10023"},"modified":"2026-01-26T13:12:22","modified_gmt":"2026-01-26T18:12:22","slug":"medor_set","status":"publish","type":"page","link":"https:\/\/cyflex.com\/index.php\/usage-help-manual\/2-variables-and-computations\/medor_set\/","title":{"rendered":"MEDOR_set"},"content":{"rendered":"<h3>Purpose:<\/h3>\n<dl>\n<dd>\n<p>Update a composition variable based on concentrations from real variables specified in a file, handle event synchronization, and write an output file for database loading.<\/p>\n<\/dd>\n<\/dl>\n<h3>Enter:<\/h3>\n<dl>\n<dd>\n<p><strong>MEDOR_set<\/strong> &lt;priority&gt; &lt;update_event&gt; &lt;filename&gt; [+c]<\/p>\n<\/dd>\n<\/dl>\n<h3>Where:<\/h3>\n<dl>\n<dd>\n<div>\n<table style=\"width: 98.035%; height: 132px;\" cellspacing=\"0\" cellpadding=\"0\">\n<colgroup>\n<col \/>\n<col \/><\/colgroup>\n<tbody>\n<tr style=\"height: 56px;\">\n<td style=\"width: 11.2957%; height: 56px;\">\n<p>priority<\/p>\n<\/td>\n<td style=\"width: 204.119%; height: 56px;\">\n<p>Specify the real-time priority.\u00a0 The recommended value range is 11-12.<\/p>\n<\/td>\n<\/tr>\n<tr style=\"height: 80px;\">\n<td style=\"width: 11.2957%; height: 10px;\">\n<p>update_event<\/p>\n<\/td>\n<td style=\"width: 204.119%; height: 10px;\">\n<p>Specify the event name for synchronizing updates.<\/p>\n<\/td>\n<\/tr>\n<tr style=\"height: 80px;\">\n<td style=\"width: 11.2957%; height: 10px;\">\n<p>filename<\/p>\n<\/td>\n<td style=\"width: 204.119%; height: 10px;\">\n<p>Specify the path to the specification file containing gas component details. See example spec file content below.<\/p>\n<\/td>\n<\/tr>\n<tr style=\"height: 56px;\">\n<td style=\"width: 11.2957%; height: 56px;\">\n<p>+c<\/p>\n<\/td>\n<td style=\"width: 204.119%; height: 56px;\">\n<p>Optional. Specify +c to\u00a0register this app\u00a0as critical to the &#8216;scheduler&#8217; task.\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/dd>\n<\/dl>\n<h3>Example:<\/h3>\n<dl>\n<dd>\n<p><strong>MEDOR_set<\/strong> 11 MEDOR_update \/specs\/set_comp.MEDOR &amp;<\/p>\n<p>The above command spawns MEDOR_set which will use the file \/specs\/set_comp.MEDOR for the initialization.<\/p>\n<\/dd>\n<\/dl>\n<h3>Notes:<\/h3>\n<p style=\"padding-left: 40px;\">This application runs as a background service, processing events in a loop to update compositions.<\/p>\n<p style=\"padding-left: 40px;\"><span style=\"text-decoration: underline;\">Example Specification Files<\/span><\/p>\n<p style=\"padding-left: 40px;\">Example specification file for the &#8220;ODOR1&#8221; stream\/composition variable:<\/p>\n<p style=\"padding-left: 40px;\">######################################################################<br \/>\n#This is the stream identifier<br \/>\nODOR1<br \/>\n# time_t when data was updated (this is not used at this time)<br \/>\n1450213661<\/p>\n<p style=\"padding-left: 40px;\">#variable label\u00a0\u00a0\u00a0\u00a0\u00a0 component_extender<br \/>\nMC_h2s\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 \u00a0 H2S<br \/>\nMC_methyl\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 \u00a0 MTM<br \/>\nMC_ethyl\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 \u00a0ETM<br \/>\nMC_dimethyl\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 DMS<br \/>\nMC_2proply\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 IPM<br \/>\nMC_butyl\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0TBM<br \/>\nMC_methyl_ethyl\u00a0 \u00a0 MES<br \/>\nMC_1proply\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 \u00a0NPM<br \/>\nMC_2butyl\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 \u00a0SBM<br \/>\nMC_diethly\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 \u00a0 DES<br \/>\nMC_tetra\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 \u00a0THT<\/p>\n<p>#Optional variable &#8211; specify if to be included within the MEDOR_set output file<br \/>\nMEDOR_Sens<br \/>\nMEDOR_DMS_STD<\/p>\n<p style=\"padding-left: 40px;\">######################################################################<\/p>\n<p style=\"padding-left: 40px;\">\u00a0\u00a0 Example ev_tcp_specs file:<\/p>\n<p style=\"padding-left: 40px;\">######################################################################\u00a0\u00a0 <br \/>\n#remote_IP\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 source_event_name\u00a0\u00a0\u00a0 destination_event_name<br \/>\n\u00a0 143.222.77.80\u00a0\u00a0\u00a0\u00a0 onga_onga\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 onga_onga<br \/>\n#####################################################################\u00a0\u00a0\u00a0\u00a0\u00a0<\/p>\n<p style=\"padding-left: 40px;\">\u00a0<\/p>\n<dl>\n<dt>\n<h3>See Also:<\/h3>\n<\/dt>\n<\/dl>\n<p><a href=\"\/index.php\/usage-help-manual\/16-smart-instrument-interfaces\/medordata\/\">medordata<\/a>, <a href=\"\/index.php\/usage-help-manual\/20-fluid-composition-and-properties\/update_composition\/\">update_composition<\/a>, <a href=\"\/index.php\/usage-help-manual\/18-internodal-communication\/ev_tcp_send\/\">ev_tcp_send<\/a>, <a href=\"\/index.php\/usage-help-manual\/18-internodal-communication\/ev_tcp_receive\/\">ev_tcp_receive<\/a>, <a href=\"\/index.php\/usage-help-manual\/20-fluid-composition-and-properties\/init_composition\/\">init_composition<\/a>, \u00a0<a href=\"\/wp-content\/uploads\/Composition-and-Property-Variables.pdf\">Composition and Property Variables<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Purpose: Update a composition variable based on concentrations from real variables specified in a file, handle event synchronization, and write an output file for database loading. Enter: MEDOR_set &lt;priority&gt; &lt;update_event&gt; &lt;filename&gt; [+c] Where: priority Specify the real-time priority.\u00a0 The recommended value range is 11-12. update_event Specify the event name for synchronizing updates. filename Specify the [&hellip;]<\/p>\n","protected":false},"author":35,"featured_media":0,"parent":1966,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-10023","page","type-page","status-publish","hentry"],"post_mailing_queue_ids":[],"_links":{"self":[{"href":"https:\/\/cyflex.com\/index.php\/wp-json\/wp\/v2\/pages\/10023","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\/35"}],"replies":[{"embeddable":true,"href":"https:\/\/cyflex.com\/index.php\/wp-json\/wp\/v2\/comments?post=10023"}],"version-history":[{"count":0,"href":"https:\/\/cyflex.com\/index.php\/wp-json\/wp\/v2\/pages\/10023\/revisions"}],"up":[{"embeddable":true,"href":"https:\/\/cyflex.com\/index.php\/wp-json\/wp\/v2\/pages\/1966"}],"wp:attachment":[{"href":"https:\/\/cyflex.com\/index.php\/wp-json\/wp\/v2\/media?parent=10023"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}