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 4 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
Forum Posts: 18
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: 304
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
Forum Posts: 18
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: 33

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