[sim] = ld_SyncFilewrite(sim, events, in, len, datatype, fname, trigger, par)
Synchronously write ascii data to a file
Data is stored directly during the flag for updating states and may hence disturbe realtime operation
of a surrounding realtime loop. Only datatype float is currently supported.
len - Size of the vector to be send
in *(len) - Input signal.
datatype - Datatype of signal "in"
fname - A string that is prepended to each binary message
par - optional parameters (none at the moment. Put par=struct() )