03-06-2007 01:37 PM
Hallo
I’m building a VI with DAQmx - USB 6008, for measurement of sound. The current program is only a simulation for the measurement, and the idea of the design is to transmit the sound level signal into ‘colour fill tanks’ indicators on the front panel, for the viewer to see.
The difficulty I have is:
How do I connect ’fill tanks’ indicators – conditionally – to an output of a sound measurement VI?
The idea is to limit each ‘tank’ indicator to a level of sound, in such a way that the viewer sees visually the level of the sound on the front panel in those ‘filled tanks’.
When the level of the sound is for example from a to b the signal is send into the first ‘tank’ indicator. When the level is from b to c the signal is send to the next ‘tank’ indicator and so on…
My problem is how to wire the signal -conditionally with
The program is running well otherwise.
I attach the VI, and a detailed explanation of the VI in a Word file.
Anyone has a god idea how to solve it?
Thanks for your help.
Iris
03-07-2007 02:28 AM - edited 03-07-2007 02:28 AM
Iris,
Cannot suggest an asnwer as I could not open your vi.
That's because I have l LabVIEW 8.0 on my system and your vi is in LabVIEW 8.2
But here is one pointer : since your question is more specific to LabVIEW, you can expect more replies by posting it on LabVIEW discussion Board
Regards,
Dev
Message Edited by devchander on 03-07-2007 02:30 AM
03-07-2007 06:38 AM
Hi Iris,
Although I am not entirely sure that I understand your application, I think you can achieve this by using a case structure. If you wire the sound level (reduced to integer) to the case selector input, then you can wire different values to the tanks in each case. For example, if only tank 1 is active between 0dB and 3dB, you can put the value of the sound level directly to tank 1 in this case and just wire a zero constant to the other tanks. You can use an interval to define each case (eg. '0..3').
Best regards,
03-08-2007 07:52 AM
devchander Hej
Thanks for your effort anyway. I have posted it to LabVIEW and got some help.
Thank you
Iris
03-08-2007 07:56 AM
Peter Porsman Hej
Thanks for your suggestion. (I did some readings about Cases today). Meanwhile I send the massege to LabVIEW forum.
Thanks
Iris