Jump to content

LabFrog

Members
  • Posts

    2
  • Joined

  • Last visited

LabVIEW Information

  • Version
    LabVIEW 2009
  • Since
    2009

LabFrog's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. Hello, Thank you very much for the quick reply. I have been trying other strategies, but without luck. It seems, as you say, LabVIEW is not strong in this direction, and I will have to change my approach to the problem. Thanks again, will update the post if a better solution arrives! Regards, LF.
  2. Hi, I would like advise on the correct "labVIEW approach" to the following problem - I KNOW it is out there and I am sure it is because I cannot get myself out of OO-headspace. I have a set of data for a device (e.g. local/remote mode, substate, sim/no sim, name). From my c++/java background I naturally created a class to store and set/get this data - all well and good. Now I want to create instances of this class and display them on a front panel. Rather than copy/paste sets of GUI widgets for each class, I want to have a single GUI widget with a few LEDs and labels to display the device. In java I could create a pane or other class with the associated widgets, pass an reference to my object and display it. What is the equivalent in labVIEW? - build a component? This seems quite complicated, but if this is the correct way, an example, using a class, would be a great help. - build a subpanel and subVI with front panel? This seems most logical, however if the object is modified elsewhere on the front panel, the subpanel displaying the object will not update, as it contains a copy of the object, rather than a reference. I have attached a basic example, with 2 instances of a class. I can modify both objects on the front panel, but those in the sub-panels are not updated. I would really appreciate knowing the correct way of building simple, re-usable panels as "indicators for objects". Any and all advise very much appreciated! Thanks, The Lab Frog subpanel_example.zip
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.