07-13-2022 07:51 PM
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!
07-13-2022 08:18 PM
@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.
07-13-2022 08:44 PM
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.
07-13-2022 09:21 PM
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"?
07-13-2022 09:35 PM
@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?
07-14-2022 08:00 AM
@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?