is there a way to use a while loop to recieve some data while a sensor is on like a camera in open cv etc.
Any small example is very welcome how i could stay inside the blender text editor.
At the moment is my solution to write to a csv file from pycharm and read it in blender, maybe there also a better solution because if i write data inside a while loop the data is only written to csv when the while loop is ending.
I could put the file open inside the loop to send data in every iteration but that make no sense performance whise.
I need a stream that can read the data inside the while loop to get data in real time.
Hope it make sense.