T7-streaming with grapher (stream_t7.py) #35
-
Hi all, Trying to use the stream_t7.py example but the grapher class (git version) does not seem to work with streaming inputs. Q1) Is there a simple modifier function I can implement to convert the "stream" array into the right format for the grapher to use? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Hello @magnus-haw,
Weis EDIT: |
Beta Was this translation helpful? Give feedback.
Hello @magnus-haw,
The Grapher indeed doesn't work directly with "stream" inputs. The normal way to plot data from streams with the Grapher Block is to use the Demux Modifier on the Link to the Grapher.
In the stream_t7.py example, a very basic Modifier that works in a similar way is used instead, but it also does the job.The issue you get with this example comes from a typo line 32, the
't'
should be't(s)'
instead. I will correct it now.There indeed doesn't seem to be any way of recording both the timestamps and the data with the current implementation. When using "streams" in Crappy, I think that a good regularity of the acquisition board is assumed, so that the time information …