11-18-2009 12:39 PM
Hi
I want to ask about time violations in while loop. I thought that there is no time limits in while loop unless we use wait function, but I met time violations during compilation. I have solved the problem by using high throughput math library, but I still don't know from what depends time limits.
So I have a question.
What determine speed of while loop executing?
Is it frequency of analog output/ input or maybe something else?
Sorry if I have made some language mistakes,I'm not quite good in english.
11-23-2009 01:40 AM
Hi,
Which error did you exactly get?
Are you programming LV FPGA or LV RT?
Here is one KB explaining single-cycle timed loop:
http://digital.ni.com/public.nsf/allkb/722A9451AE4E23A586257212007DC5FD?OpenDocument
Regards
Franjo
11-23-2009 10:41 AM
Thanks for your interest.
I'm programming LV FPGA.
Here is Timing Violation Analisys, you can see that my code need period longer then 24.75ns but I don't know what imposes that limit.
11-23-2009 12:30 PM
11-23-2009 01:17 PM
11-24-2009 08:35 AM
Hi,
I was checking bit more time violations inside while loop and I still do not understand what was happening! It seems that complier wanted to compile while loop as single cycle loop, but I do not know why. Can you please send me the vi which was making problems to you so I can test it on my computer. Which LV version do you use?
P.s.
Suggested way to use while loop timing on FPGA is by loop timer vi. Example is in the attachment. Here you can specify number of ticks!
Regards
Franjo
11-24-2009 08:36 AM
Here is the attachment 🙂
11-26-2009 09:17 AM
Here is project with time violations.Sorry that I didn't send it in one file but I can't use rar package as an attachment.
I'm using LV 2009 and PCI-7831R with Virtex 2.
12-02-2009 09:13 AM
Hi,
Somehow I have missed notification about post with your project, I realized it just now when I have checked service request.
I have tested code that you have sent and I do not get any time violations neither during compilation neither later with tool "Analyze Timing Violations".
I am using LV 2009!
As already discussed it should be normal behavior!
Regards
Franjo