Certification

cancel
Showing results for 
Search instead for 
Did you mean: 

CLAD Exam Preparation Guide 2017 Q4 Hardware

Solved!
Go to solution

Hi, I need help with the Q4 (Hardware) section of 

CLAD_Exam_Preparation_Guide_using_LabVIEW_2017.pdf


This is a forum post 

https://forums.ni.com/t5/Certification/CLAD-labview/td-p/4228928

that is somewhat similar, but I still don't know why there is an extra iteration due to "Elapsed Time = 0" in the first iteration.

 

The right answer for Q4 is (B) 2 Rows and  5 columns.

 

I have attached a VI that reproduces the question, which also in addition outputs the iteration and my own way to track elapsed time. 2 iterations mean 10 seconds have elapsed, not 4 seconds as the code intends, which I am confused that there is an extra iteration.

 

Screenshot 2023-02-02 204813.pngScreenshot 2023-02-02 204840.png

 

 

Screenshot 2023-02-02 205150.png

 

0 Kudos
Message 1 of 2
(1,680 Views)
Solution
Accepted by topic author randy_y

Wire the Elapsed Time outputs to autoindexing tunnels and look at the resulting arrays.  You will see that the Elasped Time after the first iteration is 0.  0 is less than 4, so another iteration is performed.  This time it will be 5, which is more than 4, so the loop is stopped.

 

There are two things happening here to cause this:

1. The Elapsed Time express VI resets on the first call.

2. The Elapsed Time is in parallel with the DAQmx Read; it will run pretty much as soon as the loop is started.


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
Message 2 of 2
(1,668 Views)