LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to open a new Vi and not to run it by Labview code?

HI, ALL

I want to realize a function that to click a butten that can open a new VI, and let me edit, NOT running the vi, by labview code.

How can I release it?

Thank you in advance!

 

 

0 Kudos
Message 1 of 6
(1,200 Views)

@open28 wrote:

HI, ALL

I want to realize a function that to click a butten that can open a new VI, and let me edit, NOT running the vi, by labview code.

How can I release it?

Thank you in advance!

 

 


You cannot.

 

I'll try to explain.  VIs are saved in a binary format.  You would need a tool that created a compatable file and could open it and edit the file.  The binary file format is proprietary to NI.  They will not sell you the format specification. If they COULD be persuaded to do so you would need a large vault of Gold and then, they would wrap it in legal restrictions.  You'll have better luck getting the secret recipe for Coca-Cola or Kentucky Fried Chicken. 

 

Alternately,  you could attempt to reverse engineer the whole format.  This could get you in legal trouble for IP piracy and,  you would still need a large vault of Gold to pay the highly skilled minions on your development team.

 

Conclusion: if you want to create a new VI, Buy a License from NI to use a LabVIEW development environment.   If you want to write a program in an open source language use an open source language. 


"Should be" isn't "Is" -Jay
0 Kudos
Message 2 of 6
(1,189 Views)

HI, JPB

Thank you for your reply.

I have labview liscence. I just want to develop a function, for example, I have a GUI, I click a button, then it will open a blank Vi pannel and can let me edit. just like this.

0 Kudos
Message 3 of 6
(1,177 Views)

I'm not understanding something.  Can't you just click on the "File" menu on any LabVIEW window (including the startup window) and select "New VI"?

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
0 Kudos
Message 4 of 6
(1,162 Views)

@open28 wrote:

HI, JPB

Thank you for your reply.

I have labview liscence. I just want to develop a function, for example, I have a GUI, I click a button, then it will open a blank Vi pannel and can let me edit. just like this.


Have you checked out the labview project, when you have a project open you can click a 'new vi' option and it create a new vi and opens it for editing. Maybe you could script that action ... and I hate to ask but why do you want to do the thing you want to do? 

______________________________________________________________
Have a pleasant day and be sure to learn Python for success and prosperity.
0 Kudos
Message 5 of 6
(1,155 Views)

@open28 wrote:

HI, JPB

Thank you for your reply.

I have labview liscence. I just want to develop a function, for example, I have a GUI, I click a button, then it will open a blank Vi pannel and can let me edit. just like this.


You can invoke a create new vi method in a value change event with VI Scripting enabled.  But isn't it easier to just press Ctrl+N?


"Should be" isn't "Is" -Jay
0 Kudos
Message 6 of 6
(1,125 Views)