LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

fxlms

hi i have implement real time fxlms algorithm(active noise control).I have problem because the data processing time is a round 30 ms while the required is 0.125 ms for sampling frequancy =8 kHz. For data aquization also long time for sending and recieving the signal. can any one help to reduce time for processing and send and recieve the signal.( i read about circular buffer and cash memory) but i dont know how to deal with. I attached the code.
0 Kudos
Message 1 of 9
(4,632 Views)

What OS are you using? If it is not a RT  OS, you will never reach 0.125 ms accuracy.

 For this kind of problems  FPGA is probably the best solution.

Michael.
_________________________________________________________________________________________________
LV 8.2 at Windows & Linux


0 Kudos
Message 2 of 9
(4,624 Views)

i am using windows os.

0 Kudos
Message 3 of 9
(4,615 Views)

516 wrote:
hi i have implement real time fxlms algorithm

 


i am using windows os.

As pointed out, if you want real-time, you can't use a Windows OS, or any OS that's meant for regular desktops. There is no way to guarantee a consistently timed process in these operating systems.

While sometimes code can be trimmed down you will never be able to prevent the operating system from going off and doing its own thing, and thereby completely messing up your control loop. In your code, for example:

  • You can remove the file writing part from the loop. This is likely eating up a good chunk of time. 
  • Place the DAQmx Start Task for the write outside the loop, as you don't need to restart the task each time. This is also chewing up time.
  • Don't graph. Graphing takes up a lot of CPU time.


Other comments:

  • Your inner sequence frame is completely unnecessary. You can remove it, wiring up the stuff in a stream, thereby removing all local variables.
Message Edited by smercurio_fc on 06-17-2009 09:25 AM
0 Kudos
Message 4 of 9
(4,605 Views)

can u send me the code

 

0 Kudos
Message 5 of 9
(4,291 Views)

 


@sonus wrote:

can u send me the code


What code? To what are you referring?

 

0 Kudos
Message 6 of 9
(4,287 Views)

the fxlms algorithm, thAT code..

 

0 Kudos
Message 7 of 9
(4,278 Views)

im finding it very difficult to design that. actually im doing a project on anc in labview, hence i asked

0 Kudos
Message 8 of 9
(4,277 Views)

I HOPET THAT YOU CAN HELP ME I HAVE THE SAME PROJECT ACTIVE NOISE CONTROL AND I DONT HAVE FXLMS 32 WHAT SHOULD I DO THANKS

0 Kudos
Message 9 of 9
(4,062 Views)