LabVIEW APIs Discussions

cancel
Showing results for 
Search instead for 
Did you mean: 

Saving a Class with Unsaved Members

[cross-posted to LAVA]

Howdy

This may be a VI Server question more so than a scripting one?

But any help is much appreciated.

I am running into the following issue:
I have an unsaved Class with unsaved members that I want to perform a Save All on.
If I run the LVClassLibrary.Save method first I get the following error:
  • Error 1019 occurred at Invoke Node in *.vi
  • Possible reason(s):
    • LabVIEW:  One or more untitled subVIs exist. This file cannot be saved until all dependent files have been named.

    If I try to save each member first using VI.SaveInstrument I get the following error:

    • Error 1450 occurred at Invoke Node in *.vi
    • Possible reason(s):
    • LabVIEW:  One or more untitled library dependencies exist. This file cannot be saved until all dependent files have been named.
    • Method Name: Save:Instrument

    I can't seem to find a method that does everything all at once.
    And I can't seem to do either one first.
    Can anyone help?

    Cheers

    -JG
    Certified LabVIEW Architect * LabVIEW Champion
    0 Kudos
    Message 1 of 3
    (6,154 Views)

    Try just setting the VI.Path property without calling Save, then call  save on the Library, then call save on the VI. If that doesn't work, I  think the GOOP Toolkit from Symbio does it by removing all the VIs from  the library, saving the library, then adding the VIs back and saving  again.

    0 Kudos
    Message 2 of 3
    (4,139 Views)

    Did you ever find a solution to this?  I to have a new library with an unsaved member.  Can't save the member until the library is saved, can't save the library until all members are saved.

    EDIT missed the LAVA thread trying that now.

    0 Kudos
    Message 3 of 3
    (4,139 Views)