Counter/Timer

cancel
Showing results for 
Search instead for 
Did you mean: 

Adding time/duration-stamp at instants to a textfile

Hi.
I've got some help from Jared to set up a measure envirment where I can store state changes to a textfile. What I would like to add now is a time column which shows the elapsed time in millis or rather micros.  It is only at the the instants when a state, for example 0 0 1 is written to file I would like to know the elapsed time.
I would like it like:
time (us) | di1 | di2 | di3
1                 1      0      0
7                 0      1      0
..                  ..      ..      ..
..                  ..      ..      ..


I've tried to set up such environment, but not successed. It shouldn't be hard and I've been trying the timing functions without luck 😞
I would be grateful for all hints and help.

A example of output textfile can be found here: http://bachman.tor.lindesign.se/tmp/minfil5.txt , workspace, screenshot are attached,

thanks /Bachman
Download All
0 Kudos
Message 1 of 1
(3,384 Views)