Jump to content


Photo
* * * * * 1 votes

Add a preferences category


  • Please log in to reply
23 replies to this topic

#21 crelf

crelf

    I'm a LAVA, not a fighter.

  • V I Engineering, Inc.
  • 5,742 posts
  • Version:LabVIEW 2012
  • Since:1993

Posted 27 August 2010 - 02:14 AM

Regardless of which method you choose to store the data in the app (class, globals, cluster), persisting the data is fairly easy:

My version of the preferences dialog uses the OpenG panel to disk VIs, and they work great. I'll try to post an example tomorrow, if someone reminds me with a PM...

post-181-1170858537.png


#22 Aristos Queue

Aristos Queue

    LV R&D: I write C++/# so you don't have to.

  • Premium Member
  • 2,620 posts
  • Location:Austin, TX
  • Version:LabVIEW 2011
  • Since:2000

Posted 27 August 2010 - 03:08 AM

Is this a good Idea - or are there reasons not to do this?

Making it a symbolic path would encourage you users to link against it. If you thought we were cavalier about changing VIs in vi.lib that aren't in the palettes, that's nothing compared to what we feel free to do to the Resources directory. ;-)

#23 jgcode

jgcode

    LabVIEW Renegade

  • OpenG
  • PipPipPipPipPipPip
  • 2,397 posts
  • Location:Australia
  • Version:LabVIEW 2009
  • Since:2005

Posted 27 August 2010 - 03:23 AM

Making it a symbolic path would encourage you users to link against it. If you thought we were cavalier about changing VIs in vi.lib that aren't in the palettes, that's nothing compared to what we feel free to do to the Resources directory. ;-)



lol

#24 Christian_L

Christian_L

    Very Active

  • NI
  • 64 posts
  • Location:Austin, TX
  • Version:LabVIEW 2010
  • Since:1993

Posted 27 August 2010 - 10:45 PM

I posted a new version of the code on NI Community including a VI package.

Changes in the code:
  • Reverted version number from 1.0 to 0.2
  • Added VI package distribution
  • Moved all dialog subVIs from LV resource folder into package
  • Added support to show/hide Help button and specify dialog help file
  • Moved API and framework into LV project library
  • VIs install to ..\user.lib\ODF
  • Added subpalette to User Libraries in Function Palette
http://decibel.ni.co.../docs/DOC-13146
Christian Loew, CLA
Senior Systems Engineer, Industrial Embedded - National Instruments

There's a reference design for that.