How to access Due's SerialUSB port? | 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 4 characters - maximum search word length is 84 characters

sp_Feed Topic RSS sp_TopicIcon
How to access Due's SerialUSB port?
August 13, 2016
4:38 pm
Avatar
scottj
Member
Forum Posts: 28
Member Since:
April 17, 2016
sp_UserOfflineSmall Offline

The Help files and User Manual for the Compiler's Serial_ Open subVIs all note:

 

The Arduino Due has three additional 3.3V TTL serial ports: Serial 1 on pins 19 (RX) and 18 (TX); Serial 2 on pins 17 (RX) and 16 (TX), Serial 3 on pins 15 (RX) and 14 (TX). Pins 0 and 1 are also connected to the corresponding pins of the ATmega16U2 USB-to-TTL Serial chip, which is connected to the USB debug port. Additionally, there is a native USB-serial port on the SAM3X chip, SerialUSB'. 

 

...How can I use that SerialUSB port in my LabVIEW Arduino VIs?

 

Thanks in advance for any clue.  I've searched the manual and this forum and am missing how to get to this functionality.

 
August 13, 2016
5:01 pm
Avatar
Steffan
Admin
Forum Posts: 304
Member Since:
March 12, 2015
sp_UserOfflineSmall Offline

Hi Scott,

Take a look here at the Serial and Native Port sections.  The native USB port is used to enable the Due as a USB peripheral or USB host (CDC comm).  It does actually say it can be configured as a virtual serial port though.  You must use the Arduino SerialUSB object, which is not supported natively by the Compiler.  You would have to create an addon to wrap this functionality.

Steffan 

August 13, 2016
6:11 pm
Avatar
scottj
Member
Forum Posts: 28
Member Since:
April 17, 2016
sp_UserOfflineSmall Offline

Thanks, Steffan!

March 3, 2017
5:20 pm
Avatar
ddowning1327
Member
Forum Posts: 7
Member Since:
August 1, 2016
sp_UserOfflineSmall Offline

So, to be clear, you cannot use the Native USB port for communication using the Arduino compiler?  

March 3, 2017
5:42 pm
Avatar
Steffan
Admin
Forum Posts: 304
Member Since:
March 12, 2015
sp_UserOfflineSmall Offline

It is possible you could get it to work as a VCP but you would likely have to write your own library/wrapper around the SerialUSB object as explained above.   The user manual explains how to create custom addons for the ACC4LV.

Forum Timezone: UTC 0

Most Users Ever Online: 33

Currently Online:
5 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

John: 18

RTSLVU: 15

Dan6077: 11

Member Stats:

Guest Posters: 0

Members: 80

Moderators: 0

Admins: 3

Forum Stats:

Groups: 1

Forums: 2

Topics: 58

Posts: 289

Newest Members: Geraldkix, ThomasSoogs, Angelvor, AngelaMuh, Nsneilohone

Administrators: geadmin: 5, filipealtoe: 35, Steffan: 89