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.
For lack of anymore details, here's some sample code that use a normal stream to capture and save observations once per second. Note the fflush() after each write. I simulated the data fetch with rand().
More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.
I know it’s not a new topic to discuss and it has lots of online contents already available over the net. But Then I thought it would be useful to this site’s visitors and can have online repository on vim most commonly used commands.
This post h…
An introduction to basic programming syntax in Java by creating a simple program. Viewers can follow the tutorial as they create their first class in Java. Definitions and explanations about each element are given to help prepare viewers for future …
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…