queued message handlers, state machines, and other design patterns | 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
queued message handlers, state machines, and other design patterns
September 15, 2015
1:35 am
Avatar
wegunterjr
Member
Members
Forum Posts: 23
Member Since:
August 25, 2015
sp_UserOfflineSmall Offline

Is it possible to use design patterns?  Are we limited to a vi only format? I did see a subVi in one of the example programs, but wasn't certain what the limitations are.

I don't expect to be able to use Actor framework, but a QMH or a State machine (i think this one is doable), but even if they are in limited form it would be good to use design patterns for clear code.

September 15, 2015
5:44 am
Avatar
Steffan
Admin
Forum Posts: 408
Member Since:
March 12, 2015
sp_UserOfflineSmall Offline

You are limited to VIs but you can make your own design patterns as long as you stay withing the constraints of the allowed LabVIEW primitives.  SubVIs are supported and you can find a list of supported primitives and features in the user manual (queues are not supported).  But a state machine architecture is a good choice, however, you have to be careful on these small targets as you can quickly exhaust Flash and RAM if you use overly complex architectures.

September 15, 2015
3:12 pm
Avatar
wegunterjr
Member
Members
Forum Posts: 23
Member Since:
August 25, 2015
sp_UserOfflineSmall Offline

another mention of the manual...seems to be a pattern. HA!  I have looked at it, but it hasn't been clear. I will look again with your response guiding my thoughts and will see what is in there.  Thanks!

Forum Timezone: UTC 0
Most Users Ever Online: 100
Currently Online:
4
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