07-20-2005 02:53 PM
Yes, the basic idea is to use a local variable of the input to reset its contents to empty after the code has convert the data into the lv datatype. That way when the defaults get saved, the variant input will be empty.
Mike...
07-20-2005 03:07 PM
07-20-2005 05:02 PM
Yup, even better...
Given any thought to building a program to build the templates and what not for your users? If your boss likes what you have so far, do that and he'll think you walk on water!
Mike...
07-21-2005 01:55 AM
05-11-2016 08:25 PM
Sorry did anybody answer the question "Is there a way to programmatically remove VIs from memory?"?
05-12-2016 01:52 AM
@Frankmesa wrote:Sorry did anybody answer the question "Is there a way to programmatically remove VIs from memory?"?
"Request deallocation", but it'll only remove VI's which are no longer referrences by any active VI.
/Y
05-12-2016 02:05 AM
Request deallocation is used to deallocate unused memory, not to unload VIs. I can't think of any programmatic way of unloading VIs other than loading things dynamically and then correctly stopping everything and closing all the relevant references.
That said, I didn't read through the whole threads, but the original question was asked about LV 7.1 and apparently VITs, which might be completely irrelevant today, since handling VIs has changed a lot. I would suggest you start a new thread and ask a full question explaining what you want, just like the OP did in this thread.
06-09-2016 11:26 AM
Hi there,
I understand the usage of request deallocation thanks to you.
But instead of having it in each of my VIs, I need to remove the unused memory from a single main VI.
I wll also let you know my main purpose and the exact problem I am facing. My application will issue calls to different main VIs and most of them are named "Main.vi" itself.
The problem I am facing is each time I issue a call to a main vi an already loaded "Main.vi" is referred irrespective of the VI I am calling. I need to remove the memory and instance of any of the VI when I am done with it.
Thanks,
Shameel
06-09-2016 09:15 PM
@shamerox wrote:The problem I am facing is each time I issue a call to a main vi an already loaded "Main.vi" is referred irrespective of the VI I am calling. I need to remove the memory and instance of any of the VI when I am done with it.
What exactly do you mean? What specific problem are you having that makes you want this?
06-10-2016 02:57 AM
@shamerox wrote:I understand the usage of request deallocation thanks to you.
Apparently you don't, because what you want is not to release memory. You want to unload the VI, so that you can load another one with the same name, and for that, like I said, you need to properly close all the references. Even then, I'm not sure exactly when everything is released, because I never had a situation when I had to repeatedly load different VIs with the same name, so I never looked into this.
Usually, if VIs have the same file name, they will be added to a library, so that their fully qualified name (the one that LV actually uses to identify VIs uniquely in memory) is different. If you can, I would suggest you do that.