GregFreeman Posted November 7, 2012 Report Share Posted November 7, 2012 (edited) If I want to create something similar to a "static method" in c++, is it just as simple as removing the object input and output terminals from a VI which is placed within a class? If so, will this avoid object creation, or does LabVIEW still create the object? Edited November 7, 2012 by for(imstuck) Quote Link to comment
drjdpowell Posted November 7, 2012 Report Share Posted November 7, 2012 LVOOP is by value, with the values on the wires, so if there are no terminals there is no object. Quote Link to comment
GregFreeman Posted November 7, 2012 Author Report Share Posted November 7, 2012 LVOOP is by value, with the values on the wires, so if there are no terminals there is no object. This was the assumption I made, but I just wanted to verify Quote Link to comment
Yair Posted November 8, 2012 Report Share Posted November 8, 2012 Even if it would, creation of an new object should be fairly cheap, as it's just 3 pointers, since objects share the same copy of the default data of a class. Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.