The Memory tape type was originally created to provide a work buffer for Matlab in memory space that GridLAB-D could access. More...
Functions | |
int | open_shaper (struct shaper *my, char *fname, char *flags) |
The Memory tape type was originally created to provide a work buffer for Matlab in memory space that GridLAB-D could access.
It works by allocating a large block of memory as a global variable, which can be accessed at any time by any module. The tapes specifically wrap this allocated block with tape functionality.
The global variables referenced by a Memory tape MUST exist before the tape attempts to “open” them during the first sync call, and the user must include the size limits in the tape properties to prevent memory overflow. There does not appear to be any method to data-drive the data to or from files. The contents of a Memory tape must be set or retrieved programmatically.
Memory types are arranged as an interleaved array of double timestamps and double values within a malloc’ed block. Properly arranging these values, and not overrunning the buffer, is the responsibility of the user.
int open_shaper | ( | struct shaper * | my, | |
char * | fname, | |||
char * | flags | |||
) |
Definition at line 175 of file tape_memory.cpp.