08-20-2009 07:23 AM
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.
08-20-2009 08:16 AM
08-20-2009 08:38 AM
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
08-20-2009 08:40 AM
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
08-20-2009 10:12 AM