08-06-2013 02:41 AM
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
08-07-2013 03:17 AM
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.
08-07-2013 03:55 AM
Hi Sabri
Thanks for your help, can you please send a 2010 version?
Best regards
CPalha
08-07-2013 05:04 AM
Best Regards.
08-07-2013 06:03 AM
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
08-07-2013 06:13 AM
cpalha,
Yes, by using event stucture.
http://zone.ni.com/reference/en-XX/help/371361J-01/glang/event_structure/
Regards.
08-07-2013 09:19 AM
Hi Sabri
Can you please make a simple example.
I am sorry for that
Best cpalha