10-09-2026 12:33 PM
Im trying to read values of two EMG sensors from my arduino UNO, on the serial monitor I get correct values of the readings but when i view them on waveform chart in labview, i continuously get zero values.
I also get this error when I press stop:
Error -1073807360 occurred at VISA Clear in test2.vi
Possible reason(s):
VISA: (Hex 0xBFFF0000) Unknown system error (miscellaneous error).
i read the website support details but im still confused, since the VISA resource name ive specified is the arduino COM port. im new to labview so any help will be appreciated
Solved! Go to Solution.
10-09-2026 01:05 PM
10-09-2026 01:31 PM
Yes I didn't open both serial monitor and labview at same time but checked the readings on serial monitor first to check if there was an issue in my hardware, and after closing the serial monitor i ran labview. But it still gave me the error
10-09-2026 04:31 PM
Do you have any explanation why you would wire the iteration terminal to the read count input of VISA read?
10-10-2026 01:12 AM
I was following this tutorial for the block diagram:
https://m.youtube.com/watch?v=bLUbCD1EcHQ
To be honest, I'm not sure why they did that in the video either
10-10-2026 06:10 AM - edited 10-10-2026 06:10 AM
Can you share the code for the Arduino? There are certainly things we can do to simplify this or make it more clear.
Without that information, this is the best cleanup I can do to your code:

10-10-2026 06:38 AM
your method seems to have worked and im getting proper readings now. however im curious why stopping the simulation and then running it again gives an error and then gives zero values again. its only when i close the VI and disconnect my arduino and open the VI again does the simulation work. i was also wondering if removing the wait of milliseconds in your block diagram will affect the rate at which i get my readings
here's my arduino code:
10-12-2026 04:26 AM
@Fai wrote:
your method seems to have worked and im getting proper readings now. however im curious why stopping the simulation and then running it again gives an error and then gives zero values again. its only when i close the VI and disconnect my arduino and open the VI again does the simulation work. i was also wondering if removing the wait of milliseconds in your block diagram will affect the rate at which i get my readings
here's my arduino code:
Sounds like you're Aborting the VI with the red circle? That often leaves the com-port open as you haven't closed it properly. As someone said: Using the Abort button to stop a VI is like using a tree to stop your car, it works but it has unexpected consequences.
10-12-2026 08:24 AM - edited 10-12-2026 08:25 AM
I would make a teak to how you write your values over the port. To make sure you have proper synchronization with the values, combine them into a single write:
Serial.println(emgValue1 + "," + emgValue2);
Now you will have a single message with both values separated by a comma. No more guessing if you got the order correct. On the LabVIEW side, you only need a single VISA Read. Use Scan From String to parse the data.

10-12-2026 08:31 AM
Hi,
@crossrulz wrote:
combine them into a single write:
Serial.println(emgValue1 + "," + emgValue2);
I hope you live in a country where "English" regional settings apply.
Otherwise I would prefer to separate the values with a semicolon and set the format string to include "%.;"!