LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Program cRIO-9053 to take ADC samples with NI-9215 and timestamp them with a NI-9467

Hello (to whoever may be able to help),

 

I am working on a project and the equipment I currently am using is the cRIO-9053, NI-9215, and NI-9467. I would like to take samples at 100kHz and timestamp each sample in UTC time. I have followed this, Taking Your First Measurement in LabVIEW FPGA (Data Logging). I have also downloaded and played with NI TimeSync: FPGA Timekeeper Getting Started - NI Community

My objective is to record 30 minutes of data at 100 kS/s, automatically timestamp each sample, and save each 30‑minute block as its own file. Currently, I can log short bursts of data without timestamps. Eventually, I’d like to explore sending the timestamped data over Ethernet.

 

Thanks,

wsimpson0050

wsimpson0050_0-1751483653373.png

wsimpson0050_1-1751483673561.png

wsimpson0050_2-1751483723240.pngwsimpson0050_3-1751483755861.png

 

 

0 Kudos
Message 1 of 2
(167 Views)

You don't need to timestamp every data point; you need to be synchronized with the GPS.

  1. The GPS receives a PPS, only 1 pulse per second, that is your fiducial. 
  2. You can trigger off the PPS so you know your data starts at specific time.
  3. You will then need to use the GPS clock to condition the sampling clock of your 9215, either use the GPS clock directly or have the GPS clock in a PLL with your 9215 clock. (I am assuming the GPS clock is corrected every PPS or you can use the PPS to rephase the 9215 clock every second.)
  4. Now you have the start time and your clocks are locked, then after t0, all the subsequent timestamps are separated by dt.
Message 2 of 2
(143 Views)