04-22-2020 02:17 PM - last edited on 04-23-2020 01:42 PM by markwni
Hello, I have a question regarding the use of a reference for non-linear equation solvers. In LabviewHelp the following is described:
F(X) is a strictly typed reference to the VI that implements the function. Create this VI by starting from the VI template located in labview\vi.lib\gmath\zero.llb\Zero Finder f(x) nD.vit.
I cannot realy do anything with this example because it is not a "proper reference" for the VI nD Nonlinear System Solver. Probably something must be changed in the settings.
Thanks for your help.
Solved! Go to Solution.
04-23-2020 12:26 AM
We cannot really tell what you did wrong without seeing any code. What is the exact error message?
If you use a static VI reference for the VI, make sure to make it strictly typed (right-click...).
04-23-2020 04:50 AM
I added a picture. Hope it is understandable and there are no laughs :-). I have already worked with references. It is possible that I did not understand the LabviewHelp.
04-23-2020 08:48 AM
It is (almost) always helpful to tell us what version of LabVIEW (and whether it is 32-bit or 64-bit LabVIEW) you are using.
Bob Schor
04-23-2020 08:53 AM
Hello Bob, the version I use is 18.0f2 (64-bit).
04-23-2020 08:56 AM
Thanks. I'm only running 32-bit LabVIEW, and Altenbach is (I think) more knowledgeable about LabVIEW's non-linear equation solvers than I, so I'll leave this to him (or others).
Bob Schor
04-23-2020 11:28 AM - edited 04-23-2020 11:30 AM
The model subVI does not belong on the diagram. Instead you need to create a strictly typed static reference to it
(The model VI does not belong on the diagram of the toplevel VI because it is used inside the solver only, but needs to be interchangeable. It needs to be strictly typed because the solver does not expect some random VI, but a VI with an exactly defined connector pane. This also means, that you cannot e.g. delete controls or indicators of the mode Vl, even if they are not used, or the wire will break again.)
04-23-2020 12:29 PM
Thank you, I get it now. I'm going to finish my model and see how it goes. Thanks again.