11-01-2020 03:06 PM
Dear community,
let me ask you regarding the following.
I am working on project provider tool (which should be called from Tools menu), which should be used for generating VIs by scripting, and adding those VIs to library in the project.
When I test this tool directly from LabVIEW (not from Tools menu), everything works. But as soon as I call my scripting VI from Tools menu, VIs are not added to library immediately. It acts as the following: VI is generated, but I do not see it in the project's tree. I can generate many VIs, but they are not shown in the project's tree. But when I close scripting VI, project's tree is updated and all the generated VIs are shown there.
I have prepared minimal reproducible example VI, which creates empty VI, creates virtual folder in the library, and adds VI to that virtual folder. And, it also does not update library/project tree "immediately". On first generation, it adds virtual folder (which becomes visible immediately) and VI, and then there are no generated VIs visible.
Let me ask you for help - could you check this example, and just guide me what could be wrong?
Project is done in LabVIEW 2015. In order to call it from Tools menu:
On "Test Scripter" menu select:
I believe that I am missing some tiny detail, but it drives me crazy to fix it, and I ran out of the ideas what could be wrong...
Thank you very much in advance,
Sincerely, Ivan.
Solved! Go to Solution.
11-02-2020 06:08 AM
11-02-2020 01:57 PM
Hello Hypiz,
thanks a lot for trying out.
Just to be sure - did you install it to LabVIEW Tools Menu? Because I've tried it right now in LabVIEW 2019, and it does not work.
When I run this generator directly from this test project, everything works fine. But when I call that scripting VI from Tools -> Test Scripter, then I see just 1st generated VI. The 2nd and further VIs are not visible.
Yes, VIs are in library - when I open lvlib file in text editor, I see that it is updated immediately.
Thank you,
Sincerely, Ivan.
11-02-2020 03:48 PM
11-03-2020 01:28 PM
Thanks a lot, Hypiz!
It really helped, now everything works as it should!
Thank you,
Sincerely, Ivan.
11-03-2020 01:49 PM