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 3 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
Members
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

sp_PlupAttachments Attachments
October 6, 2015
11:23 pm
Avatar
Steffan
Admin
Forum Posts: 408
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
Members
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: 100
Currently Online:
4
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