LabVIEW Interface for Arduino Discussions

cancel
Showing results for 
Search instead for 
Did you mean: 

How to use filter for analog input (virtual com port) from ECG module ?

I contacted Arduino using this config.

b087.jpg
Sampling Rite is 1000 times a second. I want to filter the stomach ECG signal.
How can I use a high and a low pass filter?
Thanks in advance.
  Amy.

0 Kudos
Message 1 of 6
(3,038 Views)

It seems you are only getting two bytes (one 16bit point) at a time, so just unflatten it to a 16 integer scalar and apply the scaling. No need for all that convoluted processing.

You are only graphing one point per iteration, so one of the ptbypt filters might work for you. What have you tried? How does the unfiltered data typically look like? What are the frequencies of the interesting signal? Is 1000/s really necessary? What determines the loop rate?

0 Kudos
Message 2 of 6
(3,016 Views)

Thank you very much.
ADC resolution is ten-bit. And should be sent with two bytes. The range of changes is 0-1023. The operation of converting the amount of ADC to voltage is done in LabVIEW.

b088.jpg

To increase the accuracy of the measurement, every 1 ms, the data is sent, and the repeat loop must be done at the time of receiving the data.
There is a lot of noise in the received data, such as the 220V power.

b087.jpg

The noise is in the ADC section of Arduino, and I want to remove noise by using LabVIEW filters.

Values ​​measured in LabVIEW are discrete. How can I use filters to remove noise? Like for AC power noise(a 50 Hz low pass filter is required)?

For a gastric signal, a high-pass filter of 0.016 Hz and a low-pass filter of 0.25 Hz are required.
For heart ECG , 50 Hz low pass is required.

b089.jpg

In order to use the filter,how can I determine in the program that values measured at a interval of 1 milliseconds(Because of discrete values). It is required that the LabVIEW program recognizes the interval time of measurement values.

Thanks.

0 Kudos
Message 3 of 6
(3,009 Views)
  • Your conversion from 2byte string is still overly complicated. (see image for an alternative)
  • A picture of a monitor is useless. Can you attach a data file containing a representative array?

 

Unflatten.png

0 Kudos
Message 4 of 6
(3,003 Views)

Thanks for help.

b091.jpg

I have no trouble getting data from Arduino. The problem is how to use the filter. Previous configuration works correctly.

b088.jpg

I saved the Waveform Chart input in Excel format.

b092.jpg

b093.jpg

1000 sps.

0 Kudos
Message 5 of 6
(2,997 Views)

What''s the datatype of the blue "0" diagram constant wired to the top of unflatten.

Make sure it is a two-byte numeric or it won't work (right-click...representation...U16 or I16).

 

(I have a look at the data later.)

 

0 Kudos
Message 6 of 6
(2,991 Views)