LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

timer+counter

Solved!
Go to solution

HI

 

I am trying to create a virtual timer+ counter, 

I want the wave be counted in amount of time, for example 10 seconds.

Now I am trying two while loops.

one for timer, one for counter.

but it does not work.

Can anyone help me?

Thanks!

 

the attachment is the simple vi. 

0 Kudos
Message 1 of 17
(11,628 Views)

Hi cynitha,

you should think about the data flow. If you need parallel processes, then you have to use parallel loops, not one inside of another one.

 

Mike

Message 2 of 17
(11,623 Views)

Thanks for reply 🙂

I found what I want.

the attachment is the vi.

Now I want to add one more feature to the simple timer+counter.

I want to repeat the counter as many times as I want and save the info to a table. For example, run the program 5 seconds 10 times. The program stops with 10 counts data shown in the table.

Could you please provide any suggestion how to make it?

 

Thanks 

cynitha

0 Kudos
Message 3 of 17
(11,576 Views)

Hi Cynthia,

 

 

Check out this vi and let me know whether it meets ur requirement or not .

 

 

 

 

 

Rgds,

Venky

Message 4 of 17
(11,566 Views)

Thanks for reply, Venky.

 

But I am afraid my expression was not clear.

What I want is to count the amount of the signal (pulses) in a certain time. and I can repeat the measurement as many times as I want. the final result can be shown in a table as the attachment, which repeats the measurement 5 times.

 

Could you please give any suggestion? 

 

Thanks

Cynitha

 

 

0 Kudos
Message 5 of 17
(11,537 Views)
Solution
Accepted by topic author cynitha

Hi Cynthia,

 

 

Check out this vi and let me know.

 

 

 

Rgds,

Venky

Message 6 of 17
(11,519 Views)

Thanks very much! Venky

 

it is what I want!

 

Thanks for quick response, too.

 

Regards

Cynitha

 

0 Kudos
Message 7 of 17
(11,497 Views)

Now I want to write the data to file.

 

could you please let me know how to make it?

 

Thanks

Cynitha

0 Kudos
Message 8 of 17
(11,491 Views)

Hi Cynthia,

 

 

check out this VI.

 

 

Rgds,

Venky

 

 

 

 

0 Kudos
Message 9 of 17
(11,457 Views)

Thanks for reply, Venky. 🙂

 

0 Kudos
Message 10 of 17
(11,443 Views)