From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

Time synchronization

Hi,

 

Is it possible to get serial data and accelerometer data at the same time?  

time synchronization? 

 

I made two codes to get serial and accelerometer data separately.

 

I use NI cRIO and NI 9870 

 

Thank you. 

0 Kudos
Message 1 of 3
(864 Views)

What do you call same time?

scale? s, ms, µs, ns or ps?

 

My general answer would be NO, but you might get an good estinate 😉

 

What is hooked up to the serial ?

 

Since the device that is conneted via RS232 has its own clock, that differs from your Rio clock, you will need some extra sync lines or do some interpolation. Good time stamping would be one way.

 

Greetings from Germany
Henrik

LV since v3.1

“ground” is a convenient fantasy

'˙˙˙˙uıɐƃɐ lɐıp puɐ °06 ǝuoɥd ɹnoʎ uɹnʇ ǝsɐǝld 'ʎɹɐuıƃɐɯı sı pǝlɐıp ǝʌɐɥ noʎ ɹǝqɯnu ǝɥʇ'


0 Kudos
Message 2 of 3
(841 Views)

Thank you for your reply 🙂 

 

seconds!! 

I want to set the same time when data comes in. 

I attached serial and accelerometer data that I got. 

 

I sent serial data from MATLAB just for a test, but my final goal is sending the moving position of a Robotic total station. 

 

Thank you so much

 

Download All
0 Kudos
Message 3 of 3
(834 Views)