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.

PropertyValue
action"model_mn_import"
modelmodel group specifier
object_idobject ID of CSV data file
ttime data type (optional, default to model type)
mn_databasemnemonic 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:

columndescription
t / timetime
mn / mn_id / mnemonic / hk / hk_id / name / labelmnemonic name or ID
v / valuevalue, 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