07-23-2009 09:45 PM
hi i need some to filtering this signal cause it's have alot of noise?
i've try to filtering with butterwoth but it's doesn't works and express filter vi also have some error?
please help me...
07-23-2009 09:57 PM
07-23-2009 10:29 PM
how i can pass the sample rate through filter?
07-23-2009 10:38 PM - edited 07-23-2009 10:41 PM
Use the Build Waveform components to combine your Y array data with a dt which will be the reciprocal of your sample rate. That creates a waveform you can feed into the Express VI.
But you actually have a larger problem. Your Y array only has 1 element since you took a scalar value and just built it into an array. The express VI isn't going to like that either.
You should look at the pt by pt filters under Signal Processing >> Pt by Pt >> Filters palette.
07-23-2009 10:41 PM
You can't. You have no real sample rate. You are acquiring a single sample. Converting that single sample to an array does not make the array contain multiple samples. It's just an array with a single sample. I don't see a while loop so I don't understand how you even have more than a single sample in your chart. If you are using the run continous mode, stop that.
If I recall, this problem of yours has been discussed already. You should use a function that acquires multiple samples where you specify a sample rate and not this single point at a time. Even if you put a while loop around the single point acquire with a Wait (ms) and created an actual array of samples, there would be significant jitter in your timing.