Jump to content

dkapla2

Members
  • Posts

    6
  • Joined

  • Last visited

    Never

Posts posted by dkapla2

  1. Hello

    For me it is just a preference.

    If you want to read sth about local variables vs. property node, please look at

    http://digital.ni.com/public.nsf/3efedde43...47?OpenDocument

    BTW there was such topic on Programming Discussions > General -  "Local Variables or Property Node" :)

    Cheers

    4309[/snapback]

    Thank you very much for that article. I want to mention that article that follows on memory in labVIEW is a must read for programmers (like me) who are trying to hammer down memory and write more efficient code.

    :beer: Cheers!!! :beer:

  2. Hello

    It is crudely way :) but it is simple and works (... instead of local variable i'd prefer value property node :) Somehow I don't like to use local variables :) .

    Thanks for idea,

    Peter

    4298[/snapback]

    It is something I have been wondering is there any difference memory wise between a local variable and the value property node? or is it just a preference from visual languages (VB...)

    If anyone has any comments about the memory allocations of the local variable vs. the property node I would love to know....

    Thanks.

  3. I've learned that the best way to make sure non-latching buttons return to its original state when using the event structure is to put the icon of that control in its event case (on the block diagram).  How would you handle this if all your controls are in 1 cluster?  In this case,  there are still many different events occuring but none of the controls are on the block diagram since they're in the cluster control.  Currently,  I'm using the property node of the control to reset the value back to its original state....is this the best way?

    Regis

    4123[/snapback]

    Regis,

    There a few ways to do this and depending on the code some work better than others. You can register events for controls that are in a cluster the same way as any other control as long in the events you do not include the over all control as one of the objects event to be handled. so the object that you are looking for an event would be [mycluster.controlname, value change] or something like that.

    The alternative and slightly more painful method is to just register the event for the cluster. Then using the refnum for the cluster and a property node take the controls array, which is an array of refnums for the all of the objects. Then you can poll the objects to see which one has had a value change. I have an example or two lying around if you are not following my explanation.

    DAK

  4. Greetings,

    I am trying to figure out the best way tu use dynamic events for the following application, or if a dynamic event is even the way to go. I am running a subvi in a subpanel which is on a tab control. When the tab with the subpanel is pushed, the subvi is called and I pass some values to the sub vi by calling the subvi control references and writing to them with property nodes. What I want to happen is when a button is pushed in the subvi it activates an event in the top level program. I feel like this should be done with dynamic events. I have been going through the lab view examples for dynamic restering event with the moving of the cards and the dynamic load example but I have not been successfull in applying this to what I am doing.

    From what I have been reading I need to pass my sub.vi the reference for the event but in this case I am not exactly sure how to do that with the subpanel. I can create a dummy control. It is quite possible that the answer is rigth in front of me and I am not seeing it...

    Any assistance would greatly be appreciated. Examples welcomed....

    Thank you all!!!!

    :headbang:

    DAK

×
×
  • Create New...

Important Information

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