LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Number of tick between two timed loop

   Dear,
 
I have joined a simple project using a cRIO 9002 and the NI9411 slot (40MHz timed).
My question:
How many tick are there between the two timed loop?
or How can I check that?
 
  Julien
 
0 Kudos
Message 1 of 7
(3,145 Views)
Hi,

I think there's only one tick, but the best thing to do in order to know, is to toggle a numeric line in a SGTL, and to do the reverse operation in the other one. If your clock is 40Mhz you should have a 25ns period, for one tick.
Let me know ...

Regards

Richard Keromen

0 Kudos
Message 2 of 7
(3,105 Views)

Hi Richard,

Thank you for your help, but I'm not sure to understand all.

I'm agree to do two SGTL and an oparation in the first loop and the reverse oparation in the second loop.
But, how I can check the time?

Can you give more details.

    Massif 

 

 

 

0 Kudos
Message 3 of 7
(3,090 Views)
Hi,

You'll have to measure the time I have name "measurement" on the marvelous drawing. If it's 25ns you have one tick.
I hope I'm a little bit clearer.


Regards


Message Edité par Richard K. le 04-07-2008 08:41 AM

Richard Keromen

0 Kudos
Message 4 of 7
(3,072 Views)
   Hi Richard,
 
Thank you for your marvelous drawing, I used to understand well the measurement. Seen the first post I would like to measure this time.
I have to redone my question properly.
I know how to check the time in a SGTL.
But between the two loop, I realy dont know how to check the tick of the FPGA target. How to do the code?
 
And really thank you for your response.
 
  Massif
                            loop1                                            loop2
  
 
0 Kudos
Message 5 of 7
(3,061 Views)
Output a timestamp at the end of the first loop and take the difference between that and a timestamp in the first iteration of your second loop and divide by the period...or something similar.
________________________________________________________

Use the rating system, otherwise its useless; and please don't forget to tip your waiters!
using LV 2010 SP 1, Windows 7
________________________________________________________
0 Kudos
Message 6 of 7
(3,050 Views)
  Hi TWGomez,
 
Thank you. I will try it soon.
0 Kudos
Message 7 of 7
(3,034 Views)