<< ld_file_save_machine basic_ldblocks ld_flipflop >>

ORTD Scilab Interface Toolbox >> basic_ldblocks > ld_file_save_machine2


Start and stop saving of multiple data vectors to multiple files

Calling Sequence

[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&apos;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&apos;re invited to take a look at its source for a nice

example on using state machines.


TriggerSave = ...

SaveSignals=list(); FileNamesList=list();

SaveSignals($+1) = Signal1; FileNamesList($+1) = &quot;measurements/Signal1.dat";

SaveSignals($+1) = Signal2; FileNamesList($+1) = &quot;measurements/Signal2.dat";

[sim] = ld_file_save_machine2(sim, ev, ...

inlist=SaveSignals, ...

cntrl=TriggerSave, FileNamesList );

Report an issue
<< ld_file_save_machine basic_ldblocks ld_flipflop >>