LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to do every 600 seconds to execute For loop?

Luis_AM3C, please tell me the Rube Goldberg is on purpose...


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 11 of 40
(1,195 Views)

HI,

this is my vi

i want to delay 45s to execute for loop at first

then when it finished done

every 600s to execute this for loop

 

i try some methods,but can't solve 😞

0 Kudos
Message 12 of 40
(1,180 Views)

Hi crossrulz,

 

¿Para qué hacerlo fácil si lo podemos hacer difícil?

 

Google Translator: Why do it easy if you can make it difficult?

 

Try adding a stop button without abort VI, and tell me which one is the Rube Goldberg Machine? or wanna wait 10 min for stop?

 

600 = 2*2*2*3*5*5

45 = 3*3*9

 

GCD = 3*5 = 15 sec

 

3 cycles = 45 sec

40 cycles = 600 sec

 

I added the feedback node because I just learn to use them, after reading that work as a delay z ^ -1. And is the correct method instead of a shift register.

 

Best Regards,

Luis A. Mata C.
Ing. Electrónico
Whatsapp: +58-414-1985579
BBM Pin: 2B83E99A
Thanks: Kudos
0 Kudos
Message 13 of 40
(1,175 Views)

Luis_AM3C wrote:

Try adding a stop button without abort VI, and tell me which one is the Rube Goldberg Machine? or wanna wait 10 min for stop?


Still yours.  Since you are already using an event structure, set the event wait to 600 seconds and add an event for the stop button.  No waiting for the stop at all!


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 14 of 40
(1,169 Views)

Luis_AM3C wrote:

I added the feedback node because I just learn to use them, after reading that work as a delay z ^ -1. And is the correct method instead of a shift register.

 



I know there are Pros and Cons between the Shift register and the feedback node but where is given feedback node is correct compared to shift register. You can share the link that would be helpful.

-----

The best solution is the one you find it by yourself
0 Kudos
Message 15 of 40
(1,162 Views)

Is this the sequence?

 

1.) Wait 45 seconds

2.) Start the FOR loop

3.) Iterate the FOR loop every 600 seconds?

 

or...

 

1.) Start the FOR loop

2.) i=0, iterate after 45 seconds

3.) i>0, iterate after 600 seconds

>

"There is a God shaped vacuum in the heart of every man which cannot be filled by any created thing, but only by God, the Creator, made known through Jesus." - Blaise Pascal
0 Kudos
Message 16 of 40
(1,152 Views)

@P Anand wrote:
I know there are Pros and Cons between the Shift register and the feedback node but where is given feedback node is correct compared to shift register. You can share the link that would be helpful.

They work the same.  There really is no difference except for the fact that feedback nodes do not have to be on structure edges.  That could clean up some wiring as long as the value of the saved data is not needed outside of the loop.


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 17 of 40
(1,151 Views)

Hi,



Luis_AM3C wrote:

I added the feedback node because I just learn to use them, after reading that work as a delay z ^ -1. And is the correct method instead of a shift register.

 



I know there are Pros and Cons between the Shift register and the feedback node but where is given feedback node is correct compared to shift register. You can share the link that would be helpful.


Before understand feedback node (until yesterday), i always used shift register for use the previous value iteration, wiring the shift register trougth all my cases, today i see that if i only use the previous value at one case i should use feedback node instance of shift register, because is less wire and the diagram is more clear. Because feedback node keep more clear the diagram i call it correct, i dont sure about performace, but is easy to test (i test it, shift register is more fast :S). Thank you for write, i am learning all days a little.

 

Best Regards,

Luis A. Mata C.
Ing. Electrónico
Whatsapp: +58-414-1985579
BBM Pin: 2B83E99A
Thanks: Kudos
Message 18 of 40
(1,146 Views)

@crossrulz wrote:

@P Anand wrote:
I know there are Pros and Cons between the Shift register and the feedback node but where is given feedback node is correct compared to shift register. You can share the link that would be helpful.

They work the same.  There really is no difference except for the fact that feedback nodes do not have to be on structure edges.  That could clean up some wiring as long as the value of the saved data is not needed outside of the loop.


Thanks crossrulz, I already worked with feedback node but he said feedback node is correct thats why asked is there any benchmarks done to prove that. But actually when the number of feedback nodes increases it really messup compared to shift registers.

-----

The best solution is the one you find it by yourself
0 Kudos
Message 19 of 40
(1,145 Views)

There are quite a few difference between feedback nodes and shift registers.

 

Shift registers:

always need a loop structure

right left side can be resized to get sucessively older history values.

 

Feedback nodes:

Allow global initialization

have an optional "enable" terminal

Don't need a loop structure (great for action engines)

Allow only one history value (selectable delay, check properties...configuration)

Message 20 of 40
(1,137 Views)