cancelar
Mostrando resultados para 
Pesquisar então 
Você quer dizer: 

Timed tasks

Dear all, now in the right place

 

Because I started this thread in a solved thread, I will copy the messages to here

 

------------------------------------------------------------------------------------------------

 

I am trying to do a similar thing.

 

I need to do 4 tasks in a loop of 1000ms.

 

I need to input cycles between each task and cycles duration each task.

 

For example for task 1 i need a duration of 100  cycles (gives a true value) each 1000 cycles. and the same for the other 3 tasks.

 

I let the first code but seems complicated.....if You can help me with simplest way...I am really thank you.

 

--------------------------------------------------

It is not clear exactly what you want to do.  Please give a better description of your tasks and timing requirements.  When you refer to cycles, do you mean iterations of the while loop?

 

Lynn

----------------------------------------------------------------------

The task will be something that works until it is true and it will be true for a certain number of cycles (iterations loop) then waits a certain number of cycles (this will be a false value) and turns true again.

 

This tasks will be in time with cycles of loop iterations.

 

Best

CPalha

----------------------------------------------------------

 

 

 

Best 

 

CPalha

0 Kudos
Mensagem 1 de 7
3.086Exibições

Hello cpalha,

 

If you want to run a task for a certain amount loop cycle and make her sleep for another one, you can use a condition loop in the while loop.

 

I made you a VI which explain it.

 

Best regards.

Sabri JATLAOUI - Certified LabVIEW Architect - Certified LabVIEW Developer
0 Kudos
Mensagem 2 de 7
3.055Exibições

Hi Sabri

 

Thanks for your help, can you please send a 2010 version?

 

Best regards

 

CPalha

0 Kudos
Mensagem 3 de 7
3.051Exibições

Best Regards.

Sabri JATLAOUI - Certified LabVIEW Architect - Certified LabVIEW Developer
0 Kudos
Mensagem 4 de 7
3.045Exibições

Hi sabri

 

This is very simple example, thanks a lot.

Is any way to change the times in case boxes by a control from front panel?

 

Best 

 

CPalha

0 Kudos
Mensagem 5 de 7
3.039Exibições

cpalha,

 

Yes, by using event stucture.

http://zone.ni.com/reference/en-XX/help/371361J-01/glang/event_structure/

 

Regards.

Sabri JATLAOUI - Certified LabVIEW Architect - Certified LabVIEW Developer
0 Kudos
Mensagem 6 de 7
3.036Exibições

Hi Sabri

 

Can you please make a simple example.

 

I am sorry for that

 

Best cpalha

0 Kudos
Mensagem 7 de 7
3.021Exibições