LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Single-point data filtration

Solved!
Go to solution

Hello, i am trying filtrate voltage data from single point task, but there is a frequency error... I have sampling frequency set to 120Hz and i want bandpass filter for example 30-40Hz...  

single.PNG

So where is problem? I tried use timed loop or "align and resample" to make sampling frequency, but this filter still does not work...

resample.PNG

Do you know, how use this filter with single point task? When i make my own FIR filter with same settings, results are not same, so that is reason why i want use this filter.

If i use DAQ Assistant, there are no errors, but i cannot use it for other reasons (1)i cannot use single point and daq assistant together, 2) daq assistant doesn't know to get pressure)

daq.PNG

0 Kudos
Message 1 of 8
(3,312 Views)
There is no sample frequency when you do a single point acquisition. Use the pt-by-pt function if you don't want to acquire multiple points in your acquisition. Why you don't want to acquire multiple points is not at all clear. Why you don't use the regular DAQmx functions is also unclear. The use of the timed loop on anything other than real-time LabVIEW is not worth it.
Message 2 of 8
(3,290 Views)

Showing us express VIs isn't very helpful.  You're forcing us to guess what your settings are.  What are your settings inside the filter VI?

0 Kudos
Message 3 of 8
(3,284 Views)

@Dennis_Knutson wrote:
The use of the timed loop on anything other than real-time LabVIEW is not worth it.

It's incredibly powerful in FPGA as well.  But, there's no real reason for it in regular LabVIEW

0 Kudos
Message 4 of 8
(3,282 Views)
Yes, I should have been clearer.
0 Kudos
Message 5 of 8
(3,278 Views)

I have voltage and pressure acquisition by single point with120 samples per second. Isnt it 120Hz? In my opinion timed loop can set 120 hz too.

singlep.PNG

I am using fir windowed filter, with same settings like express filter, but output is different. Thats reason why i want use express filter.

filter.PNG

 

What do you suggest to use to acquire both signals with using express filter, which need input signal with sampling frequency? 

0 Kudos
Message 6 of 8
(3,258 Views)
Solution
Accepted by topic author peldao
Those images add nothing to the discussion. If you are acquiring a single point at a time, you have NO frequency and cannot use the normal filter function. Do what I said or use multi-sample read or single point read and build array before doing a filter. Best is to use the daq with multiple samples.
Message 7 of 8
(3,244 Views)

I followed your advice and used pt-by-pt filter. Thank you very much. 

0 Kudos
Message 8 of 8
(3,192 Views)