Write a portion to a persistent globally shared memory
[sim] = ld_write_global_memory(sim, events, data, index, ident_str, datatype, ElementsToWrite)
Initialises a memory structure which can be refered by an
identifier. Data is available for read and write access
accross different state machines as well as accross
Make sure to only use the memory created by this function in
lower level simulations such as nested state machines, etc.
Access from higher level simulations is possible but should
be avoided, as the memory can not be freed on destruction.
data *+(ElementsToWrite) - data
index * - index to store the data. Starts at 1
ident_str (string) - name of the memory
datatype - ORTD datatype of the memory (for now only ORTD.DATATYPE_FLOAT)
ElementsToWrite (integer) - number of elements to write to the memory