error: 'Default' was not declared in this scope | 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
error: 'Default' was not declared in this scope
June 7, 2016
8:07 pm
Avatar
dan07
Member
Forum Posts: 3
Member Since:
September 20, 2015
sp_UserOfflineSmall Offline

Hello everyone,

 

I’ve been using Arduino Compatible Compiler for LabVIEW with Arduino Nano and I am currently using version 10.0.0.21.

 

I tried to compile and upload to the Arduino a simple code with digital read/write nested into a while loop with coupled case structures and I got the following message:

 

1.0.0.21, Arduino Nano

temp.ino: In function 'void setup()':

temp.ino:103:40: error: 'Default' was not declared in this scope

temp.ino:147:40: error: 'Default' was not declared in this scope

 

How should I proceed to solve this issue?

 

Regards,

 

dan07.

June 7, 2016
8:46 pm
Avatar
Steffan
Admin
Forum Posts: 305
Member Since:
March 12, 2015
sp_UserOfflineSmall Offline

Can you post your VI?

June 23, 2016
7:14 pm
Avatar
dan07
Member
Forum Posts: 3
Member Since:
September 20, 2015
sp_UserOfflineSmall Offline

Steffan,

 

Sorry for the delay answering. I've been trying different approaches and I believe that I realized what the problem was.

The code has a Case Structure and the option Use default if unwired was activated for one of the tunnels. As long as I connected something to the tunnel and didn't use the Use default if unwired option anymore, the problem was gone.

 

Thanks for your help.

 

Daniel.

June 23, 2016
7:29 pm
Avatar
Steffan
Admin
Forum Posts: 305
Member Since:
March 12, 2015
sp_UserOfflineSmall Offline

Ah yes.  This is item #5 of the FAQ in the user manual:

 

5) Why do I get a compilation error when I right click at a unwired Case Structure tunnel and select the LabVIEW option "Use Default if Unwired"?

The Arduino Compatible Compiler for LabVIEW currently does not support the "Use Default if Unwired" option for Case Structures. In order to avoid a compilation error, you will have to right click at the unwired tunnel and create a constant to be wired to the tunnel, as illustrated below.

June 23, 2016
7:46 pm
Avatar
dan07
Member
Forum Posts: 3
Member Since:
September 20, 2015
sp_UserOfflineSmall Offline

Thanks a lot for the response.

 

Now everything is fine and the code is running well.

Forum Timezone: UTC 0

Most Users Ever Online: 33

Currently Online:
1 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: Travlissah, viktorIcera, HowardClouG, Dianecet, Produktnaodchudzaniex

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