Start and stop saving of multiple data vectors to multiple files
[sim] = ld_file_save_machine2(sim, ev, inlist, cntrl, FileNamesList)
inlist list() of *+ - Data to write
cntrl * - if cntrl steps to 2 then saving is started; if it steps to 1 saving is stopped
FileNamesList list() of strings - Filenames for saving
Note: This function tries to automatically detect the vector size for each entry of inlist.
Howver, this does not work for all signal sources (blocks) at the moment.
If come accross such a situation, you're invited to notify the authors of ORTD.
Note: The implementation of this function is a superblock using state machines
and the ld_savefile block. If you're invited to take a look at its source for a nice
example on using state machines.
Example:
TriggerSave = ...
SaveSignals=list(); FileNamesList=list();
SaveSignals($+1) = Signal1; FileNamesList($+1) = "measurements/Signal1.dat";
SaveSignals($+1) = Signal2; FileNamesList($+1) = "measurements/Signal2.dat";
[sim] = ld_file_save_machine2(sim, ev, ...
inlist=SaveSignals, ...
cntrl=TriggerSave, FileNamesList );