dkapla2
-
Posts
6 -
Joined
-
Last visited
Never
Content Type
Profiles
Forums
Downloads
Gallery
Posts posted by dkapla2
-
-
Thank you. I will give that a shot tonight. :beer:
-
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.
-
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
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
-
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
-
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
'String control' - max width of input text
in LabVIEW General
Posted
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: