LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

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
Message 1 of 7
(2,570 Views)

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
Message 2 of 7
(2,539 Views)

Hi Sabri

 

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

 

Best regards

 

CPalha

0 Kudos
Message 3 of 7
(2,535 Views)

Best Regards.

Sabri JATLAOUI - Certified LabVIEW Architect - Certified LabVIEW Developer
0 Kudos
Message 4 of 7
(2,529 Views)

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
Message 5 of 7
(2,523 Views)

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
Message 6 of 7
(2,520 Views)

Hi Sabri

 

Can you please make a simple example.

 

I am sorry for that

 

Best cpalha

0 Kudos
Message 7 of 7
(2,505 Views)