07-26-2011 02:08 PM
Hi Everyone,
I just have a few quick questions about using a Timed Loop.
So my overall goal is to have a stage move a given distance and wait as another device is activated--then I would like the stage to move again, wait, and have the other device activated.
From what I've read, I should use a timed loop. However, I am getting bogged down on all the input values. I am not sure how I can set up a delay between the movement of my stage and the action of the other device.
I'm assuming I need two frames--one for the movement and one for the camera. Can I have the first one execute, then wait a given time, before the second frame activates? If so, how specifically would I do that? Do I need a separate time delay function? Or could I start the second frame relative the finished execution of the first?
If someone could maybe walk me through a simple application/example or help with my situation, I would be more than grateful. Its not that its terribly difficult, but I am confused on the logistics.
07-26-2011 02:42 PM
Can you post what you have done so far?
07-26-2011 02:53 PM
Oh sorry--I forgot to!
Here it is. The loop portion of the code is under the GO TO case in the event structure. I basically have been following the code from one of the Help Examples for the formatting.
07-26-2011 03:05 PM
Is this not the same question?
http://forums.ni.com/t5/LabVIEW/Delayed-Movement-For-Loop/m-p/1642066#M589979
Did you look at what I did here? I think it will work nicely for what you are trying to do. I do not think that you will need timed loops for what you are trying to accomplish. The code that I did is a much better control system that will give you flexibility. If you have questions about what I did you only need to ask and I will help. If you choose to ignore what I have given you then someone else will probably give you the same answer alter.