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: 

CLAD Prep 2017 Question Q5 pg 11

After I run this VI I keep getting answer 1 or (A) this happens no matter what numbers I put into rate or number of samples per channel.

The answer for this question is 3 or (C). Am I missing something here?

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

To figure out how many times the loop will run, consider what the timer will read on each loop. It will take ~2s to collect all the samples (20k/10k). On the first iteration the timer will read 0, on the 2nd it will read 2, on the 3rd it will read 4, on the 4th it will read 6 and cause the stop condition to be true. So it will run 4 times.

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

Thanks

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