LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Frequency domain filter to time domain filter

Solved!
Go to solution

If you Google this phrase -> locale variables labview. You will find a lot of useful information on the first page. Then working with locals in Labview, they make copies of data buffers. When you read from a local variable, you create a new buffer for the data from its associated control. If you use local variables to transfer large amounts of data from one place on the block diagram to another, you generally use more memory and, consequently, have slower execution speed than if you transfer data using a wire. So the only advise I can give you, is use them with care. Always have I mind their cons. I think it is wrong, not to use them if they make sense in your programs. But be aware of race conditions.

Also if you have 2 loops running in parallel, both working with same variable. You should consider the Producer/Consumer design pattern.

More about it here http://zone.ni.com/devzone/cda/tut/p/id/3023 



Besides which, my opinion is that Express VIs Carthage must be destroyed deleted
(Sorry no Labview "brag list" so far)
0 Kudos
Message 11 of 14
(1,158 Views)

Here is the exact vi on which I'm working.

 

I try to generate a continuous audio signal and to measure it with labview by plugging the sound card output directly to its input.

 

The vi has two loops : one for generating audio signal and the other to measure it.

 

It works fine but I don't understand why as there isn't any control structure between both loops.

 

Should I use a semaphore or any other control for parallel running loops ?

 

Thanks

Message Edité par Alexandre.DaCosta le 04-03-2009 08:50 AM
0 Kudos
Message 12 of 14
(1,146 Views)

Think about your soundcard as 1 AD unit and 1 DA unit. This units are separated so they do not have to know about each other. They actually works best that way. So I would not change any thing in your setup. Then I am working in may lab with soundcard input and Labview, I sometimes listen to music played with winamp. No problems at all.  Just remember that it will always be some latency between soundcard output and input. In your case it will be .5 second since you plan to update your sound meter every .5 seconds. But this doesn't matter at all.

 



Besides which, my opinion is that Express VIs Carthage must be destroyed deleted
(Sorry no Labview "brag list" so far)
0 Kudos
Message 13 of 14
(1,136 Views)

JK1,

Would you be so kind as to save the file "Test A-weighting edited.vi" as an LV 8.5.1 version?

I can't view the file

thanks

Bob

 

0 Kudos
Message 14 of 14
(937 Views)