LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Plotting real time ECG data via serial port

Ok  thx i'll download the drivers and try again will keep you updated.

 

Rdgs

Matt

0 Kudos
Message 21 of 38
(2,022 Views)

Hi Joe

 

After installing the NI-VISA drivers it works. The example you provided is able to plot my data. I would like to know the Y-axis (amplitude) is in which unit. mV?

0 Kudos
Message 22 of 38
(2,016 Views)

The amplitude was based on a max voltage of 3.3Volts, so the unit would be volts.

 

You can change it using the maxVolts control on the front panel.

 

Curious, does the ECG waveform show up properly on the graph?

 

R

0 Kudos
Message 23 of 38
(2,010 Views)

Hi Joe

 

It looks more like an amplitude spectrum rather than an actual ECG waveform. It could be due to the raw data from my microcontroller but i'm not sure about that. 

Also as the X-axis progresses in time the width of the graph gets compressed into spikes so I guess thats why it looks more like an amplitude spectrum. Anyway to go abt that?

 

Rgds

Matt

0 Kudos
Message 24 of 38
(2,007 Views)

Ah yes...  It is because of the graph type..  Lemme check something.

 

0 Kudos
Message 25 of 38
(2,005 Views)

Try this version that uses a Waveform Chart set for sweeps.  You will probably have to "fine tune" the waveform update and history length so that is looks right.

 

R

 

 

0 Kudos
Message 26 of 38
(2,004 Views)

Hi Joe

 

Thanks again! You've been a great help...i'll try the new version of your example when I get the chance later.

 

Will post an update then.

 

 

0 Kudos
Message 27 of 38
(1,987 Views)

Hi Joe

 

Sorry for the delayed reply. I'm still getting a similar graph plot and i've tried to tweak some of the settings but to no avail. I'll be trying to implement an external ADC instead of the micocontroller's and test whether the problem lies in the hardware.

 

But none the less thanks for your help.

 

Matt

0 Kudos
Message 28 of 38
(1,961 Views)

If you store what you read from the serial port to file and post the file to this thread, I can have a look at it.

 

R

0 Kudos
Message 29 of 38
(1,960 Views)

Hi Joe

 

Does the NI example "basic serial write and read.vi" enable me to view the data from the microcontroller? If it does, I can copy the data within the display window and save it to a txt file and upload it. My ECG device doesn't have a function to output a file with the data. I'll see how I can extract the data and post it when I can.

 

Rgds

 

Matt

0 Kudos
Message 30 of 38
(1,958 Views)