LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Compare not working with Boolean AND

Sound from a microphone is being inputted into the daq assistant.

Can anyone tell me why it isn't working or is there a different way for the two conditions to be met without using this method.

 

http://gyazo.com/06a5663f430662407b543a2d85dc785b

 

A little backround on the rest of the code. The two writes are two LED's that are to be set off at certain sound levels.

Thanks

0 Kudos
Message 1 of 5
(2,891 Views)
You need to get rid of the evil dynamic data type. I have no idea what the assistant is set for but you need to convert to a dbl so you are ANDing two Boolean. If you are taking multiple samples, you have to decide what you want - max value, mean, etc.
0 Kudos
Message 2 of 5
(2,872 Views)

The assistant is acquiring voltage. That was the only way we learned how to acquire the sound by. I think its taking the amplitude level? How would I convert to dbl? First year using labview

0 Kudos
Message 3 of 5
(2,867 Views)
Please look at the daq assistant and see if you are acquiring a single sample our multiple ones. That is extremely basic knowledge. You should understand the difference between a scalar and a waveform with multiple points.

There is the Convert from Dynamic Data function. Pick the type that meets the type of sampling. To single dbl or to array. For an array, you have to decide what part of the waveform you want and as I already said, it could be the max value or the mean. It's your waveform, so that's your decision.
0 Kudos
Message 4 of 5
(2,856 Views)

@MasterLover wrote:

First year using labview


No worries, we all have had a first year.  Here is some free training if you are interested.

 

NI Learning Center

NI Getting Started

-Hardware Basics

-LabVEW Basics

-DAQ Application Tutorials

 

3 Hour LabVIEW Introduction

6 Hour LabVIEW Introduction
Self Paced training for students
Self Paced training beginner to advanced, SSP Required
LabVIEW Wiki on Training

 

Basically the DAQ Assistant is the easy way to do things but it hides many of the powerful features of DAQ.  Writing the code with the DAQmx API is more time consuming, but allows for more control, and more features.  You won't find any DAQ Assistants in my real code, only for quick debug.

0 Kudos
Message 5 of 5
(2,783 Views)