07-25-2013 04:02 PM
A filter helps. There's probably a better implementation, but this might be a step forward:
07-25-2013 04:32 PM
That does look a lot better! What exactly did you do?
And would you mind attaching your VI? It'd be really helpful to take a closer look
07-25-2013 05:17 PM
Ah, I forgot to mention: that image has the code in it. Save it to your PC, then drag it onto a block diagram.
07-25-2013 05:21 PM
Do you save it as a .png? I seem to be having some trouble getting it over
07-25-2013 05:29 PM
Right-click on the picture. Select "Save Picture as". It should already be a png.
Then create a new, blank VI and open the block diagram. Drag the png file from the folder onto the BD.
I'd attach the VI, here, too - but somehow the browser won't let me, right now.
07-25-2013 05:40 PM
@Todd_Lesher wrote:
Right-click on the picture. Select "Save Picture as". It should already be a png.
Then create a new, blank VI and open the block diagram. Drag the png file from the folder onto the BD.
I'd attach the VI, here, too - but somehow the browser won't let me, right now.
hi,
attach your vi wrapped in a .zip file!
07-25-2013 05:43 PM
Here's my take at a crude signal conditioning. With the relatively clean signal and zero mean the peak counting should be straigtforward.
07-25-2013 05:59 PM - edited 07-25-2013 06:00 PM
Wow Todd, that's awesome! I've never seen that before.
Is there any way for the program to process live data, or does it have to be pre-recorded and stored?
07-25-2013 06:01 PM
Zwired, what exactly did you do to smooth out the signal?
07-25-2013 06:04 PM
It's called a snippet.
If you replace the for loop with your while loop and use the "Photocell Read" to supply the data instead of the Raw Data indexed values, you'll get calculations as you acquire data.