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: 

How to measure/plot data, and logg it on the different time intervals?

Solved!
Go to solution

Hello!

 

I wonder how to implement different time intervals for plotting data on the chart/graph, and for logging? Using LabView 2015 SP1 .

 

For example: plot measurements every 1 second, but record only every 1 minute? Any examples / KB to read?

 

Thank you!

 

0 Kudos
Message 1 of 6
(840 Views)
Solution
Accepted by topic author YePererva

Hi Ye,

 


@YePererva wrote:

For example: plot measurements every 1 second, but record only every 1 minute? 


Have your loop iterate once per second to plot measurement data.

On each 60th iteration you also record data: you just need a case structure and Q&R (quotient&remainder)…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 6
(814 Views)

Would it be still possible to bound those intervals with inputs to change those on the lfy?

0 Kudos
Message 3 of 6
(796 Views)

Hi Ye,

 


@YePererva wrote:

Would it be still possible to bound those intervals with inputs to change those on the lfy?


Yes.

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 4 of 6
(790 Views)

I found storing timestamp of the previous log and comparing with desired time interval to work better and give some flexibility.

Message 5 of 6
(731 Views)

@YePererva wrote:

I found storing timestamp of the previous log and comparing with desired time interval to work better and give some flexibility.


YES, this is the proper way to do something like this. 

========================
=== Engineer Ambiguously ===
========================
0 Kudos
Message 6 of 6
(714 Views)