Topic RSS
This compiler does not support FGV?
July 16, 2016
8:31 pm
8:31 pm
Steffan
Admin
Forum Posts: 408
Member Since:
March 12, 2015
March 12, 2015
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.
Forum Timezone: UTC 0
Most Users Ever Online: 100
Currently Online:
15
15
Guest(s)
Currently Browsing this Page:
1 Guest(s)
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:
pujacontrolAdministrators: geadmin: 22, filipealtoe: 96, Steffan: 356
© Simple:Press —