LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Create Cycle Counter

Hello,

 

I want to create a cycle doing the following.

Actually 2 linked counters.

 

The first control/indicator switches between 0 and 1.

This control starts at 1.

When it's 1, the second control/indicator starts counting up from 0 to 2000.

When it reaches 2000, the first control switches to 0 and the counter starts counting down from 2000 to 0.

When this second control/counter reaches 0 the first counter switches back to 1 and the second control/indicator starts counting up to 2000 again.

 

A contineous loop.

 

Is this possible in Labview?

0 Kudos
Message 1 of 2
(2,135 Views)

I was thinking at this solution.

 

Simulate Signal.

Sine.

1 Hz.

 

Everytime it reaches maximum -> 1.

Everytime it reaches minimum -> 0.

But I don't know how read this min and max in a sine wave.

 

Or are there better solutions?

If I manage the cycle the first contol/indicator I can manage the up/down counter with a case structure.

0 Kudos
Message 2 of 2
(2,132 Views)