Closed mayucel closed 4 years ago
I am going to close this because this repository is an archive and not under development. If you want to post an issue, please post it at sccn/labstreaminglayer.
There is nothing wrong with pull chunk. It looks like something is odd about your while loop, however. I don't know what GetSecs is, but this could be the reason. It could also be that you need to supply the inlet with a max_chunklen. I don't know how you are sending the data, but on the inlet side there is no control over chunk size and this could also be the culprit.
Hi all,
I have a question related to lsl pull_chunk function. We have a closed loop setup that we communicate three pcs using lsl. Everything works except: The processing pc sends processed data to lsl and we stream this data from the display laptop via again lsl. It works fine until, when there is a slight delay in sending from the processing pc and so receiving it by the display laptop. (In that case, the code assigns the previous data from the stream buffer for display) But for later time points, when the stream becomes active again, the pull_chunk still turns empty. (We know there is data in the stream as we checked the stream on display laptop via vis_stream function on a different matlab session.) I am not sure if there could be any issue with using serial port or psychtoolbox at the same time, so I put the code below for your review. Btw the stream is sent every 200 ms. Thanks a lot in advance for your input and time!!