save multi-sensor data

Comments & issues
Post Reply
Cuijwyn
Phidgetsian
Posts: 10
Joined: Sun Aug 15, 2021 11:49 pm
Contact:

save multi-sensor data

Post 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 ?
Attachments
getDatafromAccelerometer.txt
(11.75 KiB) Downloaded 716 times
User avatar
mparadis
Site Admin
Posts: 660
Joined: Fri Oct 28, 2011 12:17 pm
Contact:

Re: save multi-sensor data

Post 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?
Cuijwyn
Phidgetsian
Posts: 10
Joined: Sun Aug 15, 2021 11:49 pm
Contact:

Re: save multi-sensor data

Post 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,
Attachments
accelerometer save data.docx
(338.24 KiB) Downloaded 727 times
User avatar
mparadis
Site Admin
Posts: 660
Joined: Fri Oct 28, 2011 12:17 pm
Contact:

Re: save multi-sensor data

Post 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?
Cuijwyn
Phidgetsian
Posts: 10
Joined: Sun Aug 15, 2021 11:49 pm
Contact:

Re: save multi-sensor data

Post 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.
Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot] and 0 guests