annuler
Affichage des résultats de 
Rechercher plutôt 
Vouliez-vous dire : 

Add a VI to a project using scripting from a quick drop plugin

Résolu !
Accéder à la solution

I have written a quick drop plugin which creates and saves a unit test from a template and adds it to the block diagram of the open VI and puts it in a diagram disable structure.

 

I want to also add this newly created VI to the project in a virtual folder called 'Tests' in the hierarchy level that the open VI is currently in.

 

There are a few things that I cannot work out

  • How to identify where the current VI is in the project (In terms of if it is in a library, in a virtual folder etc)
  • What target the current VI is in
  • How to add the new VI (unit test) to a particular virtual folder in a project/library
  • How to create a new virtual folder

I think this may end up being too complicated but I would be keen to know if anyone can think of a way of solving some of these points.

 

For reference I have attached the current quick drop plugin I have cobbled together very quickly to see if it is actually of use.

0 Compliments
Message 1 sur 5
2 103 Visites
Solution
Accepté par Worle

Here's your first two.

"If you weren't supposed to push it, it wouldn't be a button."
0 Compliments
Message 2 sur 5
2 072 Visites

And your 2nd two:

api.png

"If you weren't supposed to push it, it wouldn't be a button."
0 Compliments
Message 3 sur 5
2 070 Visites

Here it is in LV 2017

"If you weren't supposed to push it, it wouldn't be a button."
0 Compliments
Message 4 sur 5
2 069 Visites

That is exactly what I was after. Thanks

0 Compliments
Message 5 sur 5
2 005 Visites