LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Returning Loop Case Structure

Hello,

 

I'm experiencing the following problem.

 

I have 2 numeric inputs from another vi.

1 input changes from 0 to 1.

The other input is a counter from 1 to 1000.

When it counts up the first input is 1.

When it counts down the first input is 0.

 

So it counts up, counts down, and this contineously.

 

My .vi should monitor these values and add a custom cycle to it.

For example, the definition of 1 cycle is counting from 0 to 1000 and back to 0.

Every 4th cycle I want a true boolean to be send out.

 

Does anyone has any suggestions on how to proceed?

 

Thank you in advance.

0 Kudos
Message 1 of 4
(2,156 Views)

You need a few shift registers, one to hald the current 0..1000 count and one to hold the 0..4 count.

 

Your description is not complete.

 

Should it count on its own once it is called once or should it count one step with every call?

How should it decide to just count or run a custom cycle?

I don't know what "sending out a boolean" means. Should it return a boolean on an output connector when it returns to the main program?

 

Please clarify. Maybe attach some incomplete code for illustration.

0 Kudos
Message 2 of 4
(2,148 Views)

I added 2 pictures to improve the understanding of the problem.

Download All
0 Kudos
Message 3 of 4
(2,142 Views)

Your pictures are not sufficient to understand the problem.

0 Kudos
Message 4 of 4
(2,127 Views)