I can connect to a TCPIP connection and read data at around 111Hz. I can also connect to a dynamometer through a NI DAQ into matlab and read data at 10kHz. I have been using a listener to retrieve the data from the dynamometer. When I collect 0.25 seconds of 10kHz data I save and write to a txt file. This data is saved with a single reading from the 111Hz data (making all the 111Hz data the same) then I can collect both data together but with limited data rates on the 111Hz data.
When I try to reduce the collection period of the listener to 0.01 seconds and save with the TCPIP data then the system will now not work. It does not save the new data each time. Only saving the original 0.01 seconds worth of data.
Is there a method around this? or can anyone recommend a better way to collect and synchronise the two data streams?
Thanks in advance,