LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Reference for non-linear equation solvers

Solved!
Go to solution

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.

0 Kudos
Message 1 of 8
(2,402 Views)

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...).

0 Kudos
Message 2 of 8
(2,333 Views)

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.

1.png

0 Kudos
Message 3 of 8
(2,323 Views)

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

0 Kudos
Message 4 of 8
(2,296 Views)

Hello Bob, the version I use is 18.0f2 (64-bit).

0 Kudos
Message 5 of 8
(2,294 Views)

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

0 Kudos
Message 6 of 8
(2,292 Views)
Solution
Accepted by topic author MarcoXZ

The model subVI does not belong on the diagram. Instead you need to create a strictly typed static reference to it

 

  1. Place a static VI reference
  2. Drop your model subVI into it (or browse for path)
  3. Wire the reference to the system solver (wire will be broken)
  4. Right-click the static VI reference and make it strictly typed.

 

altenbach_0-1587659111923.png

 

(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.)

 

 

Message 7 of 8
(2,276 Views)

Thank you, I get it now. I'm going to finish my model and see how it goes. Thanks again.

0 Kudos
Message 8 of 8
(2,262 Views)