Jump to content

crelf

Members
  • Posts

    5,759
  • Joined

  • Last visited

  • Days Won

    55

Posts posted by crelf

  1. So we're agreed that standardized package filenames aren't necessarily a good idea? I think they are within an organization perhaps, but not in the community at large.

    As far as naming convention. I'm selfishly concerned here about LAVA submissions. I would like to see all LAVA Code Repository packages have LAVA in the product name or the filename (or both). In addition to being installed beneath a LAVA category in the palettes or menus (if it's a tool).

    I think it'd make more sense to have LAVA packages in a LAVA repository - then "LAVA" or "LabVIEW Advanced Virtual Architects" or "lavag.org" or whatever we want would show up in the repository field.

  2. Actually, I think it's because you've opened the class outside of the exe context, and it can't find it's parent (or something else?) You're right though, when you run your exe it'll work just fine. I had the issue just recently, although I was loading a lot of related classes from disk (with different relationships), and, sure enough, as long as I did a source distribution of the parent, the icon was there. Either way, it didn't matter.

  3. There's been some discussion over here about finding an appropriate place to distribute templates. Here's a summary:

    Christian: it makes sense to put them alongside the existing templates.

    jgcode: I would suggest storing them all relative, then placing it under user.lib/vi.lib (with a new namespace as per LAVA thread) with access via palettes for the API and Tools menu (or a wizard) to create templates.

    crelf: When my packages include templates, I tend to have them with all the other package VIs, include them in the palette – but I make them merge VIs. This is much easier and more intuitive (IMHO) than putting them in the templates folder (which, again IMHO, no one uses anyway).

    Christian: The challenge in this case is that the VI temrplate is not just code, but also UI components/colors and VI properties. Using the Merge VI option does not include these features when placing the code on a blank VI. Given the nature of this reference design I think this is too much of a limitation.

    crelf: True – actually, merge VIs and front panel stuff don’t work well – I’m sure there’s a bug there (eg: make a VI with a few controls and decorations, then merge it = the controls vs decorations are offset). CAR #39212

    jgcode: (the "New..." dialog) is pretty slow, but I thats the most logic spot for all my Templates that fall into the above category - and I use it all the time. If the dialog was cache'd between calls (with a Refresh Button and an IN for programmatic access) that would be better IMHO (another Idea). Additionally another Idea is to allow Templates in the Tools Menu - at the moment Templates are ignored. A fast way to access Templates would be just to select them from the Tools menu and a new instance would be created?

    crelf: Sure, but if all the interfaces to a reuse package are in the pallete, then that's where I'm going to look for them. Having one component in the "New..." dialog and everything else in the palette isn't intuative IMO.

    jgcode: What is your current workflow for templates at the moment? (As mentioned above I currently install into the <LabVIEW>\Templates folder). What do others do?

    So, jgcode asked the question: what do others do?

    jgcode: Additionally another Idea is to allow Templates in the Tools Menu - at the moment Templates are ignored. A fast way to access Templates would be just to select them from the Tools menu and a new instance would be created?

    I wouldn't call that a big, but I'd sure like the ability to have templates in the Tools menu. Maybe make the suggestion on the LabVIEW Idea Excahnge?

    • Like 1
  4. If a scaler (single string) is wired to the type input of the "variant to data" function, there are no errors. This could be caused because there is no data on the variant "value2".

    Right - you're trying to read a single Excel cell into a 2 dimensional array - that's not going to work. Also, I'm guessing that there's an error on the error cluster after the convert to variant VI, which might be causing something downstream (prbably the Workbook|Close method) to not execute - that's why Excel isn't closing. I suggest you rearchitect your code a little to use the merge errors VI, instead of chaining all the errors into one wire.

    • Like 1
  5. ...just take your preference file you created and rename/replace it with "prefPage_Colors.vi". ;)

    Oh Mike - that is just too funny :D My first LLOL of the day!

    I think the plan will be to make a copy of all the necessary VIs (less than there are now), place them in a separate lvlib and install all the code in its own location separate from any VIs used by the LV IDE.

    I think that's a great idea, aalthough I'd like to see it distibuted as a VIPM package so I can control my project-based configuration management.

  6. Reusing the LabVIEW options (preferences) dialog framework to create your own custom dialog for your application, along the lines of crelf's use case, is fairly simple and I will post a couple of VIs and an example in a day or two that provide a wrapper around PreferencesDialog.vi and a slightly updated template to build your own options pages.

    Excellent - I look forward to seeing what you come up with :thumbup1:

  7. (cant mark as solved or something on this forum, can you?)

    Nope, but you can vote a post up by clicking the green (+) ball on the lower right of the post. LAVA is more of a forum than a collection of Q&A threads, so we didn't think it made sense to allow members to mark posts as specific categories (like "Solved").

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.