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: 

Need to recorde voltage data after every 10 minutes

Hi, Can you please have a look at my code? I'm getting voltage data for every seconds but I need it for after every 10 minutes and I will record the data.

 

what I should do??

0 Kudos
Message 1 of 12
(2,858 Views)

i never use the assistant vis, so im not sure,

but it looks to me that you get 100 samples at a 1 sample per 1/100s, then the loop iteration restarts,

to have this every 10min you would have to put a wait at the end.

make sure the data flow is proper since the "wait (ms)" vi has only a numeric input, you want to have the loop wait as the last action, before next iteration starts


If Tetris has taught me anything, it's errors pile up and accomplishments disappear.
0 Kudos
Message 2 of 12
(2,829 Views)

Long waits are generally a bad idea.  You could instead use the Elapsed Time function set for 10 minutes and put your logging code in a case structure.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 3 of 12
(2,825 Views)

I tried to do this..it didn't work. Can you please help me to do that?

0 Kudos
Message 4 of 12
(2,800 Views)

I also used elapsed time.Can you please help me to do that?

0 Kudos
Message 5 of 12
(2,798 Views)

Crossrulz's instructions were pretty simple and straight forward.  If you didn't get it, attach your VI so we can see where you went wrong.

0 Kudos
Message 6 of 12
(2,783 Views)

Hi..thanks for your reply. attached is my code. I'm stuck at here. 

0 Kudos
Message 7 of 12
(2,778 Views)

That is a completely different VI!

0 Kudos
Message 8 of 12
(2,774 Views)

Hi Riad, try something like this:

temp.png

0 Kudos
Message 9 of 12
(2,761 Views)

Hi....tried it ....couldn't get it,. Can you please do it in my code? Then I can understand better.

0 Kudos
Message 10 of 12
(2,752 Views)