This compiler does not support FGV? | 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
This compiler does not support FGV?
July 16, 2016
10:57 am
Avatar
scadao
Member
Forum Posts: 19
Member Since:
June 5, 2015
sp_UserOfflineSmall Offline

Development environment:
Windows 7 SP1; LabVIEW 2014 SP1; Arduino IDE V1.6.9; Compiler V1.0.0.21; Arduino DUE Board

This compiler does not support FGV(Functional Global Variable)? I use the serial test with FGV.vi, found no response. Examples are as follows:

July 16, 2016
11:45 am
Avatar
scadao
Member
Forum Posts: 19
Member Since:
June 5, 2015
sp_UserOfflineSmall Offline

Now I can only use global variables instead of FGV:

July 16, 2016
8:31 pm
Avatar
Steffan
Admin
Forum Posts: 304
Member Since:
March 12, 2015
sp_UserOfflineSmall Offline

That is correct, unfortunately you cannot use an uninitialized shift register in a subVI making an FGV non-functional.  The reason why is the way subVIs and memory optimization is handled by the Compiler.  SubVI variables are handled like C function local variables meaning they are automatic duration variables (refer to the Important Considerations section of the user manual).  Automatic duration variables are stored on the stack and are released when the subVI returns to preserve memory usage.  But as you noticed, you can replace with a global variable to force the Compiler to allocate the memory for that variable statically.

July 17, 2016
2:58 am
Avatar
scadao
Member
Forum Posts: 19
Member Since:
June 5, 2015
sp_UserOfflineSmall Offline

Thank Steffan! I understand that if the subVI use an uninitialized shift register, the compiler does not support.

Forum Timezone: UTC 0

Most Users Ever Online: 33

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