Naveen93
Bioengineer
- May 11, 2015
- 7
Apologies if this is the wrong place for this question or if I'm too ignorant in this area. I am a bioengineer (admittedly, I recently graduated but I am now working in industry) looking to help my team in a project that requires some electrical engineering help. I'm out of my element here, but I'm still looking to find a solution because I feel like our task doesn't seem too complex, at least conceptually.
I have two devices that are each recording distinct data. The hardware and software are both completely unrelated and unable to communicate with each other. Both devices output an analog voltage that varies between +/- 10 V into the computer, which is then calibrated by each respective software to calculate the desired parameter. But while I am recording these two separate parameters with their own devices, the data is related and ideally I would want to synchronize the time domain of each data set so I can try to find any correlations. I want to be able to easily and accurately start and stop data collection at the same time.
I've had a few ideas of how to go about doing this. The first one seems crude, but it is at least something that makes sense to me conceptually. When Device 1 starts recording Data Set 1, it automatically creates a data file in a specified folder. The way Device 2 records Data Set 2 can be controlled in MATLAB. So I was thinking to write a MATLAB script where it scans the folder from Device 1. The instant it recognizes that a new file has been added (marking the start of data recording from Device 1), the script will tell Device 2 to start recording Data Set 2. Again, this seems crude and I'm not sure how precise this strategy would be in matching up the times.
The other idea I've had is definitely out of my element. It seems like it would be more effective, but I'm not sure how to go about implementing it. A colleague was discussing something about a separate product they were using that uses a TTL signal to synchronize data from different programs. The way the described it was that both programs begin data recording manually at different times, but the data recording devices actually aren't outputting any voltage until you hit a switch on an external trigger. So while technically data is recording asynchronously, essentially both data sets are "paused" at T=0 until you hit a switch. This concept seems ideal to me, but again, I have no idea what kind of equipment or connections I would need to carry it out.
Thank you for any help, and I apologize if this post is not well-suited for this forum.
I have two devices that are each recording distinct data. The hardware and software are both completely unrelated and unable to communicate with each other. Both devices output an analog voltage that varies between +/- 10 V into the computer, which is then calibrated by each respective software to calculate the desired parameter. But while I am recording these two separate parameters with their own devices, the data is related and ideally I would want to synchronize the time domain of each data set so I can try to find any correlations. I want to be able to easily and accurately start and stop data collection at the same time.
I've had a few ideas of how to go about doing this. The first one seems crude, but it is at least something that makes sense to me conceptually. When Device 1 starts recording Data Set 1, it automatically creates a data file in a specified folder. The way Device 2 records Data Set 2 can be controlled in MATLAB. So I was thinking to write a MATLAB script where it scans the folder from Device 1. The instant it recognizes that a new file has been added (marking the start of data recording from Device 1), the script will tell Device 2 to start recording Data Set 2. Again, this seems crude and I'm not sure how precise this strategy would be in matching up the times.
The other idea I've had is definitely out of my element. It seems like it would be more effective, but I'm not sure how to go about implementing it. A colleague was discussing something about a separate product they were using that uses a TTL signal to synchronize data from different programs. The way the described it was that both programs begin data recording manually at different times, but the data recording devices actually aren't outputting any voltage until you hit a switch on an external trigger. So while technically data is recording asynchronously, essentially both data sets are "paused" at T=0 until you hit a switch. This concept seems ideal to me, but again, I have no idea what kind of equipment or connections I would need to carry it out.
Thank you for any help, and I apologize if this post is not well-suited for this forum.