From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
06-08-2017 01:52 PM
I would like to modify a VI (Unconstrained Optimization.vi). The reason is that I need non only the final result, but also the intermediate results iteration by iteration.
The problem is that I don't want to ruin the original files, I would like to have a modified personal.
I don't know how to do that. The "Save as" is disabled. What is the safest procedure to do that?
I am using LV 2015 SP1 64 bits.
06-08-2017 02:02 PM
Can you open the block diagram, select everything, copy it, and paste it into a new blank VI and save that?
06-08-2017 02:36 PM
if the block diagram is protected and you cant save it, it may be part of a paid toolkit. Do you know if it is a toolkit and what the toolkit name is?
06-08-2017 03:27 PM
The reason "Save As" is greyed out is that this VI is a Polymorphic VI, a kind of "wrapper" that can become either "Unconstrained Gaussian Peak Fit", "Unconstrained Exponential Fit", etc.
I'm guessing that you one to do one of the polymorphic instances. Go find the one you want, copy it from vi.lib to a place in your code, modify it as you need, and then simply call it. If it makes additional calls to other VIs in vi.lib, but you don't need to modify them, that should be fine. If additional VIs do need to be modify, copy them to your Project, modify, and use.
Note that as you "dig deeper", you may get into a VI or function that you can't inspect, either because it's inside a DLL or because the code is "protected".
Bob Schor
06-08-2017 03:28 PM