Example Compiling error(LabVEIW 2015, Windows7,UNO) | 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
Example Compiling error(LabVEIW 2015, Windows7,UNO)
September 21, 2015
1:23 am
Avatar
koforever
Member
Members
Forum Posts: 4
Member Since:
September 21, 2015
sp_UserOfflineSmall Offline

Hello~ 

I'm testing several examples. 

There are error when compiling below examples

===================================

Tone -play song.vi

Digital input - Polling a button.vi

===================================

And error message like below.

I'm using LabVIEW 2015 and windows 7. 

My arduino is UNO.

Thank you

===================================

1.0.0.18, Arduino Uno
Loading configuration...
Initializing packages...
Preparing boards...
"temp.ino" contains unrecognized characters.If this code was created with an older version of Arduino,you may need to use Tools -> Fix Encoding & Reload to updatethe sketch to use UTF-8 encoding. If not, you may need todelete the bad characters to get rid of this warning.

Verifying and uploading...
temp:34: error: stray '\' in program
temp:34: error: stray '\' in program
temp:40: error: stray '\' in program
temp:40: error: stray '\' in program
temp:40: error: stray '\' in program
temp:40: error: stray '\' in program
temp:46: error: stray '\' in program
temp:46: error: stray '\' in program
temp:50: error: stray '\' in program
temp:50: error: stray '\' in program
temp:50: error: stray '\' in program
temp:50: error: stray '\' in program
temp.ino: In function 'void setup()':
temp:34: error: 'ufffd' was not declared in this scope
temp:34: error: expected ')' before 'ufffd'
temp:40: error: expected ')' before 'ufffd'
temp:46: error: expected ')' before 'ufffd'
temp:50: error: expected ')' before 'ufffd'
stray '\' in program

September 21, 2015
1:29 am
Avatar
filipealtoe
Admin
Forum Posts: 98
Member Since:
March 12, 2015
sp_UserOfflineSmall Offline

Hello;

Are you using LabVIEW in English or some other language?

Thanks

Filipe

Cheers
Filipe

September 21, 2015
5:29 am
Avatar
koforever
Member
Members
Forum Posts: 4
Member Since:
September 21, 2015
sp_UserOfflineSmall Offline

filipealtoe said
Hello;

Are you using LabVIEW in English or some other language?

Thanks

Filipe

I'm using Korean LabVIEW.

So I changed OS language to English and Decimal symbol.

but It was same.

Lastly I deleted Korean LabVIEW 2015 and Install english LabVIEW.

Compile well and there is no error.

Thank you!~

September 21, 2015
3:28 pm
Avatar
filipealtoe
Admin
Forum Posts: 98
Member Since:
March 12, 2015
sp_UserOfflineSmall Offline

Ok; thanks for the clarification. That explains why you are seeing the compilation errors. As the User Manual states:

"One of the differences between how LabVIEW and the Arduino Compatible Compiler for LabVIEW work is related to boolean case statements.

Non-English versions LabVIEW will, however, translate to the corresponding localized language the True/False words that define the frame names for a boolean case statement. This causes the LabVIEW Compatible Compiler for LabVIEW to throw a compilation error. "

The two example VIs you referred to have boolean case statements as part of their implementation; therefore these compilation errors are expected. The User Manual suggests a workaround you can implement to avoid this issue. Refer to the "Important Considerations Before Start Creating Arduino VIs" section of the manual.

Filipe

Cheers
Filipe

Forum Timezone: UTC 0
Most Users Ever Online: 100
Currently Online:
26
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