![]() |
|
Real time data download - Printable Version +- phyphox Forums (https://phyphox.org/forums) +-- Forum: App-Feedback (https://phyphox.org/forums/forumdisplay.php?fid=6) +--- Forum: Feature requests (https://phyphox.org/forums/forumdisplay.php?fid=8) +--- Thread: Real time data download (/showthread.php?tid=60) |
RE: Real time data download - Romaxx - 03-22-2022 (03-21-2022, 09:25 PM)Jens Noritzsch Wrote: There are two threads on MatLab in this forum: https://phyphox.org/forums/showthread.php?tid=716 and https://phyphox.org/forums/showthread.php?tid=796 – and a search text field at the top… Thanks for your answer. RE: Real time data download - Romaxx - 03-26-2022 (11-06-2021, 08:40 PM)Romaxx Wrote:(11-05-2021, 01:59 AM)Sebastian Staacks Wrote: I have tracked the problem down to an unexpected (if not buggy) behavior of requests: It form-encodes the pipe "|" no matter how you pass it to get(). The docs (https://docs.python-requests.org/en/master/user/quickstart/#more-complicated-post-requests) specifically say that it should not encode it if you pass the url or the parameters as a string, but it still does so and phyphox at the other end does not decode the form encoding (why should it - it's not an endpoint for a HTML form and it still is a valid HTTP request). I tried to get access to the Audio Data via the Audio Scope Experiment. I identified the variable name for the buffer "Rate". (https://github.com/phyphox/phyphox-experiments/blob/master/audio_scope.phyphox) But I failed to adapt the code for this case because there is no "Rate_Time" to access the data like before. I only found some output called "subtime0", but this variable I can not access or find in the buffer. How can I access the audio data in a similar manner as above (streaming). Thanks. RE: Real time data download - Jens Noriʇzsɔɥ - 03-29-2022 Code: <audio>
<output>recording</output>
<output component="rate">rate</output>
</audio>The audio data is in the buffer “recording”. In contrast to other sensors, audio data has no time stamp associated to it. That's why phyphox goes to some length in the analysis block to create some time buffer. Code: <graph label="Audio Data" labelX="Time" unitX="[[unit_short_milli_second]]" labelY="Amplitude" unitY="[[unit_short_arbitrary_unit]]" scaleMinY="extend" scaleMaxY="extend">
<input axis="x">subtime0</input>
<input axis="y">subdata</input>
</graph>Hm… our remote access indeed plots “subdata” against “subtime0”. RE: Real time data download - Romaxx - 03-29-2022 (03-29-2022, 05:36 PM)Jens Noritzsch Wrote: The python code depends on some time buffer, so that I know, which data points I already "downloaded". How is the buffer "recording" accessable in a real-time sense then? RE: Real time data download - Jens Noriʇzsɔɥ - 03-30-2022 There is (perhaps) no way for this experiment. You need to setup your own if you would like to have a continuous audio stream – and create your own time stamps then. Note, however, that this easily gets out of hand at 48kHz… |