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 3 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
Members
Forum Posts: 24
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
Members
Forum Posts: 24
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: 408
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
Members
Forum Posts: 24
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: 100
Currently Online:
2
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