NI Home > Community > NI Discussion Forums
Reply
Trusted Enthusiast
Darren
Posts: 2,793

Darren's Weekly Nugget 11/02/2009

[ Edited ]

Are you familiar with LabVIEW design patterns?  Using a well-known design pattern for your application in LabVIEW can decrease your coding time, and decrease your maintenance time.  LabVIEW ships with several design pattern templates that you can access from the File > New... dialog:

 

file_new.png

 

Some of the most common patterns include Producer/Consumer, Master/Slave, Queued Message Handler, and of course, the ever-popular State Machine.  For more details about standard LabVIEW design patterns, check out this LabVIEW Application Design Patterns presentation.  It's a few years old at this point, but still very relevant.

 

And what about programming with LabVIEW Classes?  There are many object-oriented design patterns that are applicable to LabVIEW Class programming.  For more information, check out this document on the LabVIEW Community website.

Message Edited by Support on 11-02-2009 12:24 PM
Darren Nattinger, CLA
LabVIEW Artisan and Nugget Penman
Active Participant nrp
Active Participant
nrp
Posts: 759

Re: Darren's Weekly Nugget 11/02/2009


 Using a well-known design pattern for your application in LabVIEW can increase your coding time,

 

 


yikes!

nrp
CLA
Trusted Enthusiast
Darren
Posts: 2,793
0 Kudos

Re: Darren's Weekly Nugget 11/02/2009

Hah, that's what I get when I try to rush these things out before lunch.  Admin has been notified...thanks for the catch.  :smileyhappy:

Darren Nattinger, CLA
LabVIEW Artisan and Nugget Penman
Knight of NI
altenbach
Posts: 26,055
0 Kudos

Re: Darren's Weekly Nugget 11/02/2009

Long ago, a student here was describing the purpose of signal averaging as a way to decrease the signal to noise ratio. :smileyhappy:

LabVIEW Champion . Do more with less code and in less time .

Trusted Enthusiast
Intaris
Posts: 2,938
0 Kudos

Re: Darren's Weekly Nugget 11/02/2009

Haven't we all lots of others made that mistake sometimes also?

 

Shane

 

 

Active Participant
F._Schubert
Posts: 1,534
0 Kudos

Re: Darren's Weekly Nugget 11/02/2009

For a beginner, learning design patterns might indeed increase code developing time on short term.

 

Felix

www.aescusoft.de
My latest community nugget on producer/consumer design
My current blog: A journey through uml
Member
gchristi1
Posts: 50
0 Kudos

Re: Darren's Weekly Nugget 11/02/2009

When I'm asked about tips to learn LabVIEW, I recommend looking at the templates.

 

Having said that, I wish the NI people would improve the templates. When I took the CLD exam, I started with a template and spent too much time molding it to look like my template.

 

Opinion? When you took the exam, was a native template of use to you?

Trusted Enthusiast
Darren
Posts: 2,793
0 Kudos

Re: Darren's Weekly Nugget 11/02/2009


gchristi1 wrote:

 

Having said that, I wish the NI people would improve the templates. When I took the CLD exam, I started with a template and spent too much time molding it to look like my template.

Opinion? When you took the exam, was a native template of use to you?


When I took the CLD exam, I did not use any of the shipping templates.  What specific changes would you recommend to make the NI templates better?

 

Darren Nattinger, CLA
LabVIEW Artisan and Nugget Penman
Member
dickyoung
Posts: 7

Re: Darren's Weekly Nugget 11/02/2009

I am less than 1yr into my education in LabVIEW, and was fortunate to attend a Developer Ed Day back in April where the Design Patterns presentation was given. Back at the office, just a few weeks later, I was trying to solve a particular problem which suddenly struck me as being an appropriate application for a State Machine, and I knew exactly where to go for the How-To. Using the bundled template,and the Manual notes, it was up and working very quickly.

 

Thanks NI, for the packaged patterns, and for the free Dev Ed Days !

 

Dick Young

Product Engineer

Maxim Integrated Products