Hi,
This vi is your best bet. That is, timing isn't possible (e.g. do a "wait
ms" or "wait for multiple"). But querying the vi until exactly 1 ms has
arrived is possible (but you'll use 100% processor time). Getting the exact
time is possible.
Because window isn't a real time os, you have no guaranty that timing will
behave consistently.
If you only need to *know* (in stead of control) how often the loop
executes, this vi can be used without any problem. If you need to control
the execution, perhaps you can get a number of loops, and if the timing
difference gets more then 1 ms, wait 1 ms.
Regards,
Wiebe.
"Shreesha" wrote in message
news:50650000000800000003C60000-1078497998000@exchange.ni.com...
> Hi,
> I am working on communicat
ing with a few devicenet devices using
> the I/O communication. In am using the Multiple I/O commuication vi
> for this purpose with a NI DNET PCI card. In this vi, there is a
while
> loop running that gets and puts information into my various DNET
> devices. But, I have a problem. I need to time my while loops
> precisely, so that I know how often I am writing or reading from the
> devices. For example, I would like my while loop to execute every 1
> ms. How can I achieve this?
> Can it be done with the normal Labview or do I need Labview
> Real Time to do this.
> Waiting for a reply.
> Thanks.
[Attachment High Precision Timer.vi, see below]