08-15-2009 03:36 AM
Hi Rolf,
thanks a lot, do you want to test and debug the code yourself or should I take that job?
Thanks again,
Ton
08-15-2009 12:00 PM
Well the actual PNG code is C programming which is a bit of a work and once I have it I will let you know and then you can do some tests with it. I also was experimenting a little in LabVIEW 7.1 about using the Copy/Paste operators there to implement a create subVI from selection function. I'm pretty sure it can be done but it is a bit of a hassle since you would need to temporarely make some modifications to the original VI and such nasty things.
Rolf Kalbermatter
09-28-2009 03:30 AM
With the Help of Darin, I was able to integrate snippet creation in the Code Capture Tool in LabVIEW 7.0.
Dropping is limited to LabVIEW 9.0.
Ton
12-02-2009 06:35 AM
We now can open a VI snippet made with the CCT in LabVIEW 8.6 with this VI.
06-07-2018 04:56 AM
@RDR wrote:
The commands for VI Snippet are not currently exposed through VI Server. One of our LabVIEW Product Managers is investigating the feasibility of releasing a G-code method of creating snippets and delivering this to the community in the form of a right-click framework or quick drop plugin.
-Bob
Hi All,
I understand that this thread is almost a decade old now, but just wanted to check if any progress/improvement has been made to this expected feature - "creating a VI snippet programmatically".
01-03-2020 11:12 PM
Hope I'm not too late to the game. I put together a VI Snippet Import Library, up on GitHub, to import VI Snippets programmatically (see llb attached). Under the hood, VI Snippets are no more than custom PNG data chunks that contain the binary VI file. The library saves and loads the "niVI" chuck to the clipboard (within the context of the block diagram) and then pastes the code to the destination VI specified.
VI Snippet PNG Chunks:
I realize this is geared for importing VI Snippets, but the principles for exporting should be the same.
Best Regards, Ryan