1:23 am
September 21, 2015
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
5:29 am
September 21, 2015
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!~
3:28 pm
March 12, 2015
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
26
1 Guest(s)