08-02-2011 11:26 AM
Hi Experts!
I have two very basic question, but I didn't find a good answer!
Thank you very much!
08-02-2011 12:32 PM
For my second question, I think I've found a solution, but something is now correct with that. I've set the VI serachpath to my application INI.
Using full path, it is correct, but it is not possible to use full paths if I would like to install this app.!
Somehow the relative path is not working...
Could you take a look at my ini? thanks!
I've attached my app. build.
08-02-2011 01:02 PM
Re Q1
THe factory patten should work IF you did everything right.
Ben
08-02-2011 01:35 PM
Just one comment you your question 1.
You can't just make a plain vi a member of a class just because you have control and/or indicator of an object of the class type.
The class it self don't know about the vi, and therefor the vi is not a member of the class.
You need to create a method for a class in the right way.
08-02-2011 01:38 PM
Thanks! Good to know!
08-02-2011 01:45 PM
@dkfire wrote:
Just one comment you your question 1.
You can't just make a plain vi a member of a class just because you have control and/or indicator of an object of the class type.
The class it self don't know about the vi, and therefor the vi is not a member of the class.
You need to create a method for a class in the right way.
If all of the details are correct (dynamic dispatching, identicle names, same icon connector, exact same VI name ...) then you can just drag the "roll-your-own-VI" into the class to let the class know that VI is a member and it should work.
I have done similar on multiple occations when a method from one child class was a good start for the method of another child class.
Ben