thank you for all the replies
there is one thing that i forgot to mention.i ran the same diagram on a PC with ETS OS and LabVIEW RT, this time i got the accurate timed
loop. The attached is the diagram i used to test the timed loop. it seems that the timed loop is not accurate only in PXI? To make sure it is not caused by tick count subvi, i set the loop time to 1 second so that i could see with my eyes that the loop time is not accurate. for example one loop is 1.2 second another is 0.2 second. it only happens in 1MHZ and I also find that the time loop is accurate in 1KHZ .