<< ld_survivereset nested pipelines >>

ORTD Scilab Interface Toolbox >> nested > ld_write_global_memory

ld_write_global_memory

Write a portion to a persistent globally shared memory

Calling Sequence

[sim] = ld_write_global_memory(sim, events, data, index, ident_str, datatype, ElementsToWrite)

Description

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

different threads.

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


Report an issue
<< ld_survivereset nested pipelines >>