MEDOR_set
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 <priority> <update_event> <filename> [+c]
Where:
-
priority
Specify the real-time priority. The recommended value range is 11-12.
update_event
Specify the event name for synchronizing updates.
filename
Specify the path to the specification file containing gas component details. See example spec file content below.
+c
Optional. Specify +c to register this app as critical to the ‘scheduler’ task.
Example:
-
MEDOR_set 11 MEDOR_update /specs/set_comp.MEDOR &
The above command spawns MEDOR_set which will use the file /specs/set_stack_comp for the initialization.
Notes:
This application runs as a background service, processing events in a loop to update compositions.
Example Specification Files
Example specification file for the “ODOR1” stream/composition variable:
######################################################################
#This is the stream identifier
ODOR1
# time_t when data was updated (this is not used at this time)
1450213661
#variable label component_extender
MC_h2s H2S
MC_methyl MTM
MC_ethyl ETM
MC_dimethyl DMS
MC_2proply IPM
MC_butyl TBM
MC_methyl_ethyl MES
MC_1proply NPM
MC_2butyl SBM
MC_diethly DES
MC_tetra THT
######################################################################
Example ev_tcp_specs file:
######################################################################
#remote_IP source_event_name destination_event_name
143.222.77.80 onga_onga onga_onga
#####################################################################
-
See Also:
medordata, update_composition, ev_tcp_send, ev_tcp_receive, init_composition, Composition and Property Variables