05-05-2008 06:20 PM
05-05-2008 08:56 PM
05-06-2008 01:41 AM
As mentioned, if you use 8.2 or above, LVOOP is what you want. You should note, however, that LVOOP is not identical to the OOP of C++. You should read that paper and the ones it links to before starting.
In your specific case, you would create and inherit the relevant classes and then create a constructor (although it's not really a constructor, as you will see) for each one. Once you do that, you can carry a wire of any of the child classes on the same wire and when you call a method VI from one of those classes LabVIEW will choose the correct one.
Incidentally, you can do it another way if the protocol really doesn't need to know anything about the implementation by using any number of other methods. Which one to use and how depends on your exact architecture.