Skip to main content

Model Actions

Model actions are complex data actions designed to be used with the XINA Data Model Standards.

MODEL_MN_IMPORT

The MODEL_MN_IMPORT action mnemonic data for a single model into XINA.

Property Value
action "model_mn_import"
model model group specifier
object_id object ID of CSV data file
t time data type (optional, default to model type)
mn_database mnemonic database specifier (optional, default <model>.data.mn.full)

Unlike standard XINA insert operations, this action can have impacts across multiple databases. The imported data file must contain three columns:

column description
t / time time
mn / mn_id / mnemonic / hk / hk_id / name / label mnemonic name or ID
v / value value, empty string, or null

The time column may either be a zoned ISO8601 timestamp or Unix time. If Unix time it will be interpretted according to the type set to t in the action.

If the mn column is an integer it will be interpretted as a literal mnemonic ID. Otherwise the name will be parsed from this format:

<name>[(<unit>[;n0=v0|n1=v1|...])]

<name> will be used for the mnemonic name lookup. The comparison is case insensitive and any whitespace is treated as a single underscore. <unit> is optional. If provided, it must match the unit of an associated mnemonic definition, otherwise an error is thrown. The section after unit defines discrete value mapping.

Examples