The Daily CLAD

Community Browser
cancel
Showing results for 
Search instead for 
Did you mean: 

Re: Wait & Wait Until Next Multiple Timers

SercoSteveB
Active Participant

The following VI is run.  Which of the following are possible values passed to 'Timer Values Out'?

timers.png

a) {16188300, 16188456, 16188612, 16188768}

b) {16188300, 16188400, 16188500, 16188600}

c) {16188300, 16188356, 16188412, 16188468}

d) {16188300, 16188456, 16188512, 16188612}

Comments
StefanoFacchine
Member

Hi,

the correct answer should be b), since the second frame in the sequence structure contains a "wait until next ms multiple" function. Therefore, the VI monitors the clock and exits the frame every time the clock is a multiple of 100 so that the Timer Values Out can only end with ***100.

ahmelsayed
Member

I agree with StefanoFacchinetti and the correct answer is b).

mini09
Active Participant

Yeah i`m also going with B.........

But when i run the code for many times the value changes , is there any function to reset the values of the function?

Ajay_MV
Active Participant

I agree with b.

--
Ajay MV


SercoSteveB
Active Participant

Answer: B.  Nice one StefanoFacchinetti, Ahmed Elsayed, gnshmrthy & AjayvigneshMV

Nice explanation Stefano, the "wait until next ms multiple" is the key.

mohamedtanveej17
Member

Hi everyone

 Evertytime I'm run this code with wait and Wait next ms multiple with the value of 100 I will get some mismatch values ending with some fraction values such that 100,201,301,400 

Is it is an error or it is acceptable values?

crossrulz
Knight of NI

With Windows, I would consider than an acceptable error.  Windows is not a deterministic OS, so the timing is not reliable.


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