LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Delay time

Solved!
Go to solution

Hi,

The attached code is ok. But I want to take data 1-hour interval. I tried to use the "time delay" option.

1. When I put it in no.1 place (red circle), data acquisition started 1hour later and then acquired data continuously.

2. In no. 2 places, It also started data acquisition after 1 hour, but after acquiring 1 time (1000 data), the code automatically stopped. 

 

Would anyone please mention the proper place of using "Time delay" option or another way...? TIA.Capture.JPG

0 Kudos
Message 1 of 3
(1,941 Views)

Hi Milon,

 

1. When I put it in no.1 place (red circle), data acquisition started 1hour later and then acquired data continuously.

As expected by THINK DATAFLOW!

2. In no. 2 places, It also started data acquisition after 1 hour, but after acquiring 1 time (1000 data), the code automatically stopped.

Because of an error. Did you check the error?

 

the proper place of using "Time delay" option or another way...?

Read data each second, but pick only each 3600th data…

(Of course inside the DAQ loop.)

 

The attached code is ok.

No, it's not. Please read the style guide in the LabVIEW help!

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 2 of 3
(1,932 Views)
Solution
Accepted by topic author Chowdhury_Milon

Hi,

if I understand your problem correct you can try this:

- Change "Continuous Samples" to "Finite Samples" and wire "Samples per channel" (e.g. with a constant of 1000)

- place "time delay" in the loop after "DAQmx Read", reading the same number of samples as configured for "sample clock"

 

UliB

Message 3 of 3
(1,903 Views)