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.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Starting a timer while reading continuous oscillosscope waveform data

I want to auto-save oscilloscope data after a user-defined amount of time, and have a timer display that shows the elapsed time. My program is reading continuous waveform data from the oscilloscope. If I try using the Elapsed Time VI, the oscilloscope data does not update during the desired amount of time, only after the elapsed time is finished. The program takes about 3 seconds to refresh the oscilloscope data and I cannot get a timer to run in parallel.

0 Kudos
Message 1 of 3
(2,196 Views)

Hi,

 

Do not use elapsed time. You can create your own timer subvi.

 

In that use a while loop which runs at "x"ms (Interval at which you want to acquire oscilloscope data). After each iteration it should check if time has elapsed. If not increment iteration count.

 

So you will have a continuous data.

 

Example. If you want data at 5ms rate. and autosave after 1 Sec then timer subvi should check if iteration count is equal to (1 sec/5ms)

 

 

 

Gaurav k
CLD Certified !!!!!
Do not forget to Mark solution and to give Kudo if problem is solved.
0 Kudos
Message 2 of 3
(2,171 Views)

I don't know in how many ms accurate you want it, but this can be used parallel

---

UnCertified LabVIEW Student
Mistakes are for learning, that's why suggestions are always welcome!
0 Kudos
Message 3 of 3
(2,167 Views)