From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Arduino Restarts my PC when used for serial interface

Solved!
Go to solution

Hello,

I am using the Countinuous Serial Read Write example and other simple programs to read data from Arduino Board but i am facing a serious problem that my PC restarts wih Blue Screen when reading data from Arduino for 5 mins.

I dont know the reason and tried various solutions including adding the Byte Count at Serial Port to connect with the Read Serial VI.

Kindly guide me what could be the possible reason for this problem.

Regards

0 Kudos
Message 1 of 5
(3,149 Views)

Are you using a USB to Serial adapter?

 

My experience is that the drivers for many of these are very flaky and lead to bluescreens. I believe my problems were related to Prolific drivers. There are more expensive adapters from FTDI that work much better.



CLA
www.dvel.se
0 Kudos
Message 2 of 5
(3,118 Views)
Solution
Accepted by topic author Abuzar

I've had this problem too - my PC would crash on average about once per day when logging data from an Arduino.

Someone on these forums suggested setting the VISA read to synchronous rather than asynchronous. Right-click in the VISA read and select "Synchronous I/O Mode" > "Synchronous".

I tried this and it seem to have worked - I haven't had a crash for about a month now. I have no idea why this would make any difference but it seems to.

0 Kudos
Message 3 of 5
(3,028 Views)
I have had problems with Prolific USB to serial too. I only use FTDI now and have no issues.
0 Kudos
Message 4 of 5
(3,010 Views)

I have connected the arduino directly with computer using it own USB Port.

I am now trying the Synchronous mode now and uptill now its working correctly.

So thanks to all of you for taking time and proposing a workable solution.

 

0 Kudos
Message 5 of 5
(2,961 Views)