I remembered that it's possible to redirect output streams to files.
./myprogram > programoutput.txt
Now I have text file output with no extra programming! Ok that's a cheat but it's still neat.
I've been thinking about compartmentalizing the program to one function per data type. That way I can trigger the function call output by program arguments. Such as:
myprogram 1 0 0
...would output spikes, but suppress events and continuous. If I wanted to be real fancy I'd do:
myprogram -ch 42 -evt all -cont 42
...which would output discontinuous data channel 42, all the events, and continuous channel 42. I haven't had an opportunity to really get a handle on argument handling so maybe how is a good time.
No comments:
Post a Comment