How to merge the code of two boxes to have one box
Posted: Fri Jan 20, 2017 9:45 am
Dear community,
I am John. I am now doing research on BCI. For our research aim, we want to merge the code of two boxes into one box with two boxes' function. For example, I am now merging box Temporal Filter and Signal Decimation. If I understand the right things, when one box is processing, it gets the address pointer which points to the where the signal stream is saved. Then the signal stream is processed. So each time, the address is not changed while buffer pointed by the address pointer is changed. If it is this case, my method of merging two boxes is that let two box code work by sequence and do not let the first box encoder the head, buffer and end. However, in this case, there comes several errors.
I would like to ask is there an easy and universal way to merge two boxes code? Or do you have only the code of the processing part from each box rather than including all the interfaces and communications between boxes and variables?
Thanks so much if you could reply to me.
I am John. I am now doing research on BCI. For our research aim, we want to merge the code of two boxes into one box with two boxes' function. For example, I am now merging box Temporal Filter and Signal Decimation. If I understand the right things, when one box is processing, it gets the address pointer which points to the where the signal stream is saved. Then the signal stream is processed. So each time, the address is not changed while buffer pointed by the address pointer is changed. If it is this case, my method of merging two boxes is that let two box code work by sequence and do not let the first box encoder the head, buffer and end. However, in this case, there comes several errors.
I would like to ask is there an easy and universal way to merge two boxes code? Or do you have only the code of the processing part from each box rather than including all the interfaces and communications between boxes and variables?
Thanks so much if you could reply to me.