Hi,
I would like to generate a child process which reads in data from a hardware and conducts a data smoothing algorithm. The averaged variable will be "sent" to the parent process if the parent process "calls" for the variable.
As the parent process is running at a rate slower than that of the child process, in the event where the child process reaches the end of the loop and the parent process has yet to call for the variable, the child process will proceed with the next loop.
The parent process thus calls for and recieves the most current value of the averaged variable from the child process. The parent process is itself a loop.
Any suggestions as to how the process can be written in C++ is greatly appreciated.
Thank you.
I would like to generate a child process which reads in data from a hardware and conducts a data smoothing algorithm. The averaged variable will be "sent" to the parent process if the parent process "calls" for the variable.
As the parent process is running at a rate slower than that of the child process, in the event where the child process reaches the end of the loop and the parent process has yet to call for the variable, the child process will proceed with the next loop.
The parent process thus calls for and recieves the most current value of the averaged variable from the child process. The parent process is itself a loop.
Any suggestions as to how the process can be written in C++ is greatly appreciated.
Thank you.