set_composition
Purpose:
-
Update a composition variable by reading concentrations from specified real variables and transmitting the information via an event message at a defined process interval.
Enter:
-
set_composition <priority> <process_interval> <filename> [+c]
Where:
-
priority
Specify the real-time task priority. The recommended value range is 11-12.
process_interval
Specify the process interval. The recommended rate is SLO. One of the slower USER rates can be used if set to 2000, which is the expected update rate slower than 1hz.
filename
Specify the path to the specification file containing stream identifiers and component details. See example spec file content below.
+c
Optional. Specify this flag to indicate a critical task to the watchdog.
Example:
-
set_composition 11 SLO /specs/set_stack_comp &
The above command spawns set_composition which will use the file /specs/set_stack_comp for the initialization. specification file for the “STACK” stream/composition variable.
Example Spec File:#This is the stream identifier
STACK
# time_t when data was updated (this is not used at this time)
1450213661
#variable label component_extender
TFS_Others_Frac N2
TFS_Methane_Frac ME
TFS_CO2_Frac C2
TFS_Propane_Frac PR
TFS_I_Butane_Frac IB
TFS_N_Butane_Frac NB
TFS_I_Pentane_Frac IP
TFS_Ethane_Frac EE
#####################################################
ev_tcp_specs file:
client
#####################################################
#remote_IP source_event_name destination_event_name
143.222.77.80 onga_onga onga_onga
#####################################################
Notes:
-
The “set_composition” app is normally spawned in the go.scp script.