LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to find the average of a signal after using an adc

Hi, I want to find the average of the signal after using an adc. I have simulated four signals and after simulating i have done switching between the signals. After switching i have converted it into a digital signal and then i have to find the average of the digital signal. After finding the average, the indicator should indicate whether the signal is from which direction.

0 Kudos
Message 1 of 2
(2,371 Views)

To be honest, Im not quite sure what alot of the VI is supposed to be doing.....

 

Firstly try not to use while loops in side while loops. Think mof building a VI like this:

 

1.Setup leht hand side of a while loop (this includes initialisation, referencing of devices ect)

 

2.Processing inside the while loop. (this is your reading/writing of a signal, and then acting upon it. wether from a device or simulated.)

 

3. Closing down references and clsoing the program.

 

Follow this paradim, and you can't go too far wrong....... well you can but people should be able to debug your code a little easier!

 

 

Have a look at the example I have built. Try and build in your functionality using this paradim with the functionality that you need. Im not quite sure what it is you need, so if you want help defining or programmin that post back.

 

Rich


 

0 Kudos
Message 2 of 2
(2,284 Views)