LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Is it possible to change the timer increment?

Solved!
Go to solution

The timer is changing in increments of 100 milliseconds. Is it possible to decrease this to 1 millisecond? For my application, I need to know when the waveform time is a millisecond multiple of a specified number, for example, 7. I have a boolean indicator, and I would like it ot show true every time the time is a multiple of this value.

Is is possible to change the timer increment to accomplish this? Or is there a better method for achieving my goal?

0 Kudos
Message 1 of 5
(2,465 Views)

What timer are you talking about?

 

Can you attach a VI that demonstrates what you are talking about?

0 Kudos
Message 2 of 5
(2,459 Views)

 

Use quotient and remainder function.  Input your time and devider=7.   When remainder=0 => boolean indicator.

Kind regards,

- Bjorn -

Have fun using LabVIEW... and if you like my answer, please pay me back in Kudo's 😉
LabVIEW 5.1 - LabVIEW 2012
0 Kudos
Message 3 of 5
(2,454 Views)

Attached is my vi. I have tried using the quotient and remainder function, but the problem is that since the time increment goes up by 100 ms, it is never a multiple of 7.

0 Kudos
Message 4 of 5
(2,412 Views)
Solution
Accepted by topic author Laura121

Your timing problem is in the Simulate Signal express VI.  You are telling it take 100ms worth of data.  Therefore your loop will run at around the 100ms.  If you want your loop to iterate at the 1ms (good luck with Windows), tell the express VI to only gather 1ms worth of data.  In your case, that would be 360 samples instead of the 36k samples.


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 5 of 5
(2,405 Views)