|
Prev: Using local display on PC RT targets
Next: Using NI 9481 and 9474 to control digital output and relays
From: The Specialist on 5 May 2008 22:10 Hi Terry, Other people are going to have to help me out on this one. I think data sockets are close to what you want. You start by declaring what protocol you want to use (like, tcp or udp). Then it send the message out on the default communication bus. For something more specific, you might need to make your own LabVIEW object oriented class LVOOP. Maybe someone has done something close to this?
From: tst on 6 May 2008 03:10
As mentioned, if you use 8.2 or above, <a href="http://zone.ni.com/devzone/cda/tut/p/id/3573" target="_blank">LVOOP</a> 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. |