Send HEX by serial | 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
Send HEX by serial
October 6, 2015
10:53 pm
Avatar
sotovasquezandres@gmail.com
Member
Forum Posts: 8
Member Since:
May 27, 2015
sp_UserOfflineSmall Offline

Hi, I am trying to send HEX data for serial, but when I sent it, the data it is not the same. Can you help me with this, thanks.

TX:

TX.pngImage Enlarger

RX:

RX.pngImage Enlarger

Attachments
October 6, 2015
11:23 pm
Avatar
Steffan
Admin
Forum Posts: 304
Member Since:
March 12, 2015
sp_UserOfflineSmall Offline

Notice the coercion dot on the Serial Write function.  Im guessing you did not wire a U8 array, rather a U32 array, which the Compiler will cast to an 8-bit array.  So that means it will send 0x00 00 00 AA (for 0xAA), etc. but will only send out the number of bytes equal to the number of elements in the array, which looks like what you got.  Simple change the datatype of your constant array to U8.

October 8, 2015
2:10 pm
Avatar
sotovasquezandres@gmail.com
Member
Forum Posts: 8
Member Since:
May 27, 2015
sp_UserOfflineSmall Offline

Thats it, thanks for your help.

Forum Timezone: UTC 0

Most Users Ever Online: 33

Currently Online:
2 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