I have wriiten a program to read from a data file from disk and plot result. Now I want to obtain my data thru the serial port coming from a device that reads patient's heart data. The data comes every second and written to a file. I have to read it as it is comming from the device. But since I have to read the data in real time while my device reading the patient heart data and then plot it when the device stops (after 60 minutes max).
The problem I am facing is when the file is open by my medical device for writing then how can I read it?
Is there a way to do this please ?
All thoughts and suggestions are welcome.
PS: I don't have the interface between the medical device and the computer yet. It is going to be a card.