LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

LabVIEW ECG AD8232 with Arduino

Solved!
Go to solution

Hi everyone, I’m a first year student trying to display an ECG signal in LabVIEW using an Arduino Uno and AD8232 sensor.
The Arduino Serial Monitor shows correct changing values (300-800 range) so the hardware works fine, but Waveform Chart shows flat line even though Arduino Serial Monitor shows changing values
My block diagram:
VISA Configure (9600) → VISA Read (30 bytes) → Decimal String To Number → Waveform Chart
The Waveform Chart only shows a flat horizontal line. Read buffer appears empty when running.
Things I already tried:
Decimal String To Number
Scan From String with %d
Spreadsheet String To Array + Index Array
Checked COM port (tried all available)
Closed Arduino Serial Monitor before running
Rebuilt diagram from scratch multiple times
What am I missing? Is there something specific about reading serial data from Arduino in LabVIEW that I’m doing wrong?

7c4d969f-79fb-40e0-9533-70437da4306b.jpeg

IMG_2040.png

0 Kudos
Message 1 of 4
(123 Views)
Solution
Accepted by Amwajsun

It is impossible to troubleshoot your problem from a few blurry truncated iamges.

 


@Amwajsun wrote:

Things I already tried:
Decimal String To Number
Scan From String with %d
Spreadsheet String To Array + Index Array
Checked COM port (tried all available)
Closed Arduino Serial Monitor before running


Just randomly throwing code at it until something sticks seems like the wrong approach.

 


@Amwajsun wrote:

Rebuilt diagram from scratch multiple times 


Do a google search for "Vaas definition of insanity".

 

SO: Change the string indicator to /-codes, attach your VI after filling all controls with typical default values, and describe how everything is connected.

 

0 Kudos
Message 2 of 4
(95 Views)

Thank you for your reply. Please find the VI attached.

To clarify the situation: the read buffer is completely empty when running. Also, the VISA resource name dropdown only shows ‘Refresh’  no COM ports appear at all even with the Arduino plugged in via USB.

The Arduino Serial Monitor confirms the hardware works correctly  values are streaming normally at 9600 baud.

How can i make the COM port appear in LabVIEW?

https://drive.google.com/file/d/1e4ftd2tzWF9hybI1TjW_v4G83bjhNSmn/view?usp=drivesdk

0 Kudos
Message 3 of 4
(74 Views)

Very few people have LabVIEW 2026, so please do a "save for previous" (2020 or beloa) and attach it here. (No need to share links of confusing VIs saved without extension.)

0 Kudos
Message 4 of 4
(49 Views)