LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I insert a code snippet, saved as PNG, from the Project Explorer into a LabVIEW VI?

I have  a code snippet that I reuse often, saved in a project library that is part of my project. When I try to drag and drop the icon from the Project Explorer into the VI, it puts a Path constant with the location of the PNG file. How do I insert the code snippet from the Project Explorer? The only way I have found to do it is drag/drop from WIndows Explorer onto LabVIEW VI.

0 Kudos
Message 1 of 2
(2,905 Views)

I don't think you can, but here are some options:

 

  1. If you use it often enough, turn it into a merge VI (or "place VI content", as it's called these days) and add it to the palettes. Then dropping it will drop its content.
  2. You could probably modify this to work as a quick drop keyboard shortcut and with a local file, so that after dropping the path, you can select it and have it convert it to code - http://lavag.org/topic/11677-discuss-getsnippet/?p=70987

___________________
Try to take over the world!
Message 2 of 2
(2,894 Views)