Page 1 of 1

save multi-sensor data

Posted: Tue May 17, 2022 8:22 am
by Cuijwyn
I have three phidgetspatial MOT0109. I hope to get data simultaneously from three sensors . for one sensor, I can get right data. But for more than two, the data will not be right. My code is in attachment,What is wrong ?

Re: save multi-sensor data

Posted: Tue May 17, 2022 12:20 pm
by mparadis
Looking at your code, I don't see anything wrong. You're just gathering up 1024 samples via the event and then saving to a file. What does the output data look like? How wrong are the values from the other two sensors?

Re: save multi-sensor data

Posted: Wed May 18, 2022 7:56 am
by Cuijwyn
sir:
When for one sensor,I get data like Fig 1. but when for two or three sensors, I get data like Fig 2.
Fig 1 is right, but for Fig 2, data can not be save in right Channel,

Re: save multi-sensor data

Posted: Wed May 18, 2022 9:54 am
by mparadis
I'm not clear what the HHZ/HHX/HHY graphs are showing, but the first graph looks like typical accelerometer output, capturing some kind of movement event. What does that raw data output look like for the other two?

Re: save multi-sensor data

Posted: Thu May 19, 2022 9:35 am
by Cuijwyn
My sensor is MOT0901 HHZ/HHX/HHY is the three components of the accelerometer, and data format is miniseed. when there is only one accelerometer, we can get data like fig.1. But if two or more accelerometers run simultaneously, we can get fig. 2 that is not right obviously. I think three accelerometer data have been confused, I mean some accelerometer 1 data are saved as accelerometer 2, some accelerometer 2 data are saved as accelerometer 3, and three component data also are confused.