LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

custom palette for vi's not under LabVIEW

i've created a very nice custom palette for our vi's. i've created dir.mnu files for each directory. everything is ok if the user installs the vi's under instr.lib.

 

however, our installer has the option of installing them some place. if the the vi's/mnu files are not installed under the LabVIEW directories, our vi's don't show up on the palette.

 

is there any way of telling LabVIEW where these files are so they show up?

0 Kudos
Message 1 of 6
(2,599 Views)
Not that I am aware of. However if someone does give you an answer I would love to find out. This would be a nice feature to have.


Mark Yedinak
Certified LabVIEW Architect
LabVIEW Champion

"Does anyone know where the love of God goes when the waves turn the minutes to hours?"
Wreck of the Edmund Fitzgerald - Gordon Lightfoot
0 Kudos
Message 2 of 6
(2,593 Views)

One way would be to have a post-install VI with the following code:

 

  1. Get the installed directory some way
  2. Create a .mnu file that only has a subpalette that links to the main .mnu file using the new palette api
  3. Update the palette views
Ton
Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
Nederlandse LabVIEW user groep www.lvug.nl
My LabVIEW Ideas

LabVIEW, programming like it should be!
0 Kudos
Message 3 of 6
(2,585 Views)
Actually you could use JKI's Package Manager as well. That will install the packages under the NI directory tree. You will also get the benefit of all the other nice features that VIPM has.


Mark Yedinak
Certified LabVIEW Architect
LabVIEW Champion

"Does anyone know where the love of God goes when the waves turn the minutes to hours?"
Wreck of the Edmund Fitzgerald - Gordon Lightfoot
0 Kudos
Message 4 of 6
(2,559 Views)

But you will lose the possibility to install in a custom location.

 

Ton

Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
Nederlandse LabVIEW user groep www.lvug.nl
My LabVIEW Ideas

LabVIEW, programming like it should be!
0 Kudos
Message 5 of 6
(2,550 Views)

TCPlomp wrote:

But you will lose the possibility to install in a custom location.

 

Ton


This is true. However what JKI Package Manager will do for you is to automate and manage the process of adding the VIs to the LabVIEW directories. The source code itself can be saved in an external source code control system and the development can take in wahtever directory you would like. The deployed versions/packages would be added to the NI directories. Is there a particular reason the files should be stored in a custom directory?



Mark Yedinak
Certified LabVIEW Architect
LabVIEW Champion

"Does anyone know where the love of God goes when the waves turn the minutes to hours?"
Wreck of the Edmund Fitzgerald - Gordon Lightfoot
0 Kudos
Message 6 of 6
(2,541 Views)