Jump to content

dkapla2

Members
  • Posts

    6
  • Joined

  • Last visited

    Never

dkapla2's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. 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. Thank you. I will give that a shot tonight. :beer:
  3. 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.
  4. 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
  5. Greetings, I do not know a way to limit the legnth like you would in VB. You could crudely programtically limit the length of the string by setting up the string to update immedately upon writting in it (this way it triggers events upon typing) and then checking the legnth to a value you set. I attached a quickie example of what I mean by this. DAK Download File:post-1884-1111503839.vi
  6. 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.