Arduino UNO Reboots when Serial Port is Closed/Opened by LabVIEW VISA on PC Side? | Arduino Compatible Compiler for LabVIEW Discussions | Forum

Avatar
Please consider registering
guest
sp_LogInOut Log In sp_Registration Register
Register | Lost password?
Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
sp_Feed Topic RSS sp_TopicIcon
Arduino UNO Reboots when Serial Port is Closed/Opened by LabVIEW VISA on PC Side?
January 31, 2020
8:07 pm
Avatar
Anthony L
Member
Members
Forum Posts: 6
Member Since:
January 30, 2020
sp_UserOfflineSmall Offline

Hello:

I have the Arduino UNO programmed to read Encoder position via the count variable

I found out that the Arduino UNO Microcontroller stops running once LabVIEW closes or re-OPENS the VISA Serial COM Port. I can see this by looking at the returned Encoder counter value re-initializing each time I close and re-open the COM Port from the LabVIEW PC monitoring program.

Is there a way to have Arduino UNO continue to run and write to the Serial Port even if there is no listener or connection on the other end? This way Arduino UNO can run dedicated and send updated sensor status info when requested. In my case I can see that the Arduino UNO still has LEDS blinking after I turn off and close the Serial Port in LabVIEW software. But Somehow the program re-initializes after I open the port at a later time.

Note that for the case of Encoder counts, rebooting means that the Encoder position is lost and gets reset to 0.

Anthony

January 31, 2020
9:05 pm
Avatar
Steffan
Admin
Forum Posts: 408
Member Since:
March 12, 2015
sp_UserOfflineSmall Offline

This is expected.  It is a function of the Arduino hardware.  serial connection pulls reset low to allow for programming.  Otherwise you would have to manually reset the micro precisely when you download code to it.  You can read more about it here.  If you cut a trace you can prevent it but then you have to manually reset every time you program.

Forum Timezone: UTC 0
Most Users Ever Online: 100
Currently Online:
2
Guest(s)
Currently Browsing this Page:
1 Guest(s)
Top Posters:
miche91: 33
scottj: 28
scadao: 23
Member Stats:
Guest Posters: 5
Members: 202
Moderators: 0
Admins: 3
Forum Stats:
Groups: 1
Forums: 2
Topics: 266
Posts: 1222
Newest Members:
pujacontrol
Administrators: geadmin: 22, filipealtoe: 96, Steffan: 356