LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

VI of the Day (8/20/09)

A hidden gem for today "MeanPtbyPy.vi"  I wrote my own version a few years back, but I want to point this one out because it falls into a class of problem that I personally would just start coding and not check the help.  Throw together a state machine, a few cases and with a little debugging, voila!  Or, you just drop in this VI and go to work.  Plus, once you've found this one, you'll see there is a collection of useful PtbyPt VIs.  Another bonus, you can peek under the hood of these VIs and adapt them to your own needs, just be sure to save them to a different location.

 

I try to stick to VIs/functions available in the base package, this is one of those occasional exceptions.  If you have the base package, it is still a good exercise to write your own version (or at least figure out how you would do it).  How do you handle the startup cases?  Perhaps one of the OpenG connoisseurs can point us to a similar VI if it exists.

0 Kudos
Message 1 of 5
(3,152 Views)
Minor picky point -- the name of the VI is "Mean PtByPt", contained (in Version 8.6) inside NI_PtByPt.lvlib.
0 Kudos
Message 2 of 5
(3,125 Views)

Darin.K wrote:

A hidden gem for today "MeanPtbyPy.vi"  I wrote my own version a few years back, but I want to point this one out because it falls into a class of problem that I personally would just start coding and not check the help.  Throw together a state machine, a few cases and with a little debugging, voila!  Or, you just drop in this VI and go to work.  Plus, once you've found this one, you'll see there is a collection of useful PtbyPt VIs.  Another bonus, you can peek under the hood of these VIs and adapt them to your own needs, just be sure to save them to a different location.

 

I try to stick to VIs/functions available in the base package, this is one of those occasional exceptions.  If you have the base package, it is still a good exercise to write your own version (or at least figure out how you would do it).  How do you handle the startup cases?  Perhaps one of the OpenG connoisseurs can point us to a similar VI if it exists.


 

Confession time!

 

VI's with more nodes in the diagram than words in the help plus free labels, scare me.

 

I took a couple of minutes to look at that code and i am not sure how it would work and those build arrays and rotate array nodes also have me wondering.

 

I think I will stick with my home built version.

 

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 3 of 5
(3,118 Views)

Well the Mean PtbyPt is a quite good VI in performance (hence the rotate array).

It deals with NaN's, +inf and -inf and some other misterious beings.

 

 

 

Ton

Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
Nederlandse LabVIEW user groep www.lvug.nl
My LabVIEW Ideas

LabVIEW, programming like it should be!
0 Kudos
Message 4 of 5
(3,114 Views)
I'll admit that NI's version bears little resemblance to my personal version, but I did learn a few things by assuming that there was a good reason for doing it the way they did.
0 Kudos
Message 5 of 5
(3,080 Views)