LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

programmatically saving a VI

I'm programmatically setting my VI's icon, but now I'd like to programmatically save it as well.

I notice the VI doesn't know it has been changed after I set its icon.

How do I programmatically let the VI know it has changed then save it?
Message 1 of 2
(2,953 Views)
Hi bmihura!

So when the method to change the VI's icon is run, the VI does not show its dirty bit, but the VI is still aware that it has unsaved modifications.  You can use the VI Modifications Bitset property to check for this -- the top two bits indicate that the VI has been changed.  I don't know of a way to force the VI to think it has unsaved changes when it doesn't, as this property is read only.

Regardless, you can always force a save on the VI, whether or not anything has changed.  See the attached VI which shows each of these methods/properties.  Hope this helps!

Message Edited by Doug M on 05-03-2007 05:21 PM

Doug M
Applications Engineer
National Instruments
For those unfamiliar with NBC's The Office, my icon is NOT a picture of me 🙂
Message 2 of 2
(2,919 Views)