LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to save single data every finite time delay

Hello, all

I built a vi in lavbiew to measure an optical power meter with rs232 port, and it works well, I can get real time signal(optical power vs time). However, I want to save single data every exactly 5 seconds, because we want to get the power value immediately after optical wavelength changes which is set at every 5 seconds. I know the labview and write to file will take some time, I am just wondering is it possible to implement this, or is there some other ways to do this.

Thank you.


vonsin

0 Kudos
Message 1 of 3
(2,836 Views)
Hey Vonsin,

This is a very simple procedure.  All you need to do is have a wait command for 5 seconds inside a while loop where your save information and VIs are.  These commands are found in .the Timing function VIs under Programming.

Regards
0 Kudos
Message 2 of 3
(2,833 Views)

You can use

-the "Wait until Next ms Multiple" but not the "Wait ms" (see Labview help for the difference)

-A event structure with a timeout every 5 sec.

 -A timed Loop with a period of 5 sec.

Pick one...

5 sec is a VERY long time, so you should not have any problems

0 Kudos
Message 3 of 3
(2,812 Views)