Re: time spent in loop



I think your loop time is entirely determined by the hardware interaction, so the the timing is insignificantly fast in both cases.
However you current timing code is heavily flawed because it is impossible to tell at what time the first tick count is taken (No data dependency!). Most likely, the first tick count executes BEFORE (or in parallel to) the "OPEN1" and "OPEN2" nodes, so you are actually including their times in the measurnements. Remember, LabVIEW does not execute left-to-right. Any node that does not need to wait for inputs is ready to execute immediately.
You need to place the first tick count inside a sequence frame too to ensure it executes right before the FOR loop. For exact timings use a 3-frame sequence as in the image.

<img src="http://forums.ni.com/attachments/ni/170/234989/1/PreciseLoopTime.png";>
Make sure that everything that should not be timed is before or after the sequence. Also make sure there is no code that can run parallel to the sequence.Message Edited by altenbach on 03-12-2007 10:01 AM


PreciseLoopTime.png:
http://forums.ni.com/attachments/ni/170/234989/1/PreciseLoopTime.png
.



Relevant Pages

  • Re: Write Signal on Disk II Question
    ... the controller derives it's timing from the ... changing state of the fields. ... Okay...I am talking about Write Sequence, ... present field reversals and four absence field reversals. ...
    (comp.sys.apple2)
  • Re: Task Hopping
    ... In Project they describe a physical relationship between the tasks such that the timing of the predecessor task either drives or controls the timing of the successor task. ... While your software developers may jump back and forth between tasks, there surely are some of those dependencies in the Project - you have to write a program module before you can test it, for example. ... Think not about how they want to sequence their work, instead approach it from the way they HAVE to sequence their work according to the project process itself - if you flowchart the process, diagramming the flow of materials and information through the project from start to end, the result will be a network diagram where each arrow represents a dependency link. ...
    (microsoft.public.project)
  • Re: When DID agriculture start?
    ... cultural evolution - in the past 12 thousand years, with the timing and ... sequence of events differing in different locations. ...
    (sci.anthropology.paleo)
  • So You Think I Am Psychotic
    ... If you saw what *I* saw, in the timing and sequence that I saw it, you'd be ... From now unto eternity. ... Prev by Date: ...
    (rec.music.dylan)