Jump to content

Check if files in Project are Saved


Recommended Posts

Sure there is. Use a property node on the VI reference and select Modifications >> VI Modifications Bitset

This is the description from the help:

Quote

Indicates whether changes were made to the block diagram since the VI was saved or opened, depending on which was last. If the value is zero, no changes were made. If the value is nonzero, changes were made.

Here is an example based on the VI from the topic you mentioned:

Find Unsaved VIs This Project (2015).png

 

  • Like 2
Link to comment

Controls and VIs work for me. Other items can be checked by first casting the generic project item to the desired type. Here is an example to check if the private data of a class changed. Other types can be added similarly:

Find Unsaved VIs This Project (2015).png

I searched a bit for libraries and the project file but couldn't come up with a solution. Any ideas?

Link to comment

If you use the type filter on the Get All Descendants method you can get files of a particular type.  Library will find *.lvlib etc.

This should help with speed as you should not have to loop through every item, just the ones you are interested in.

As a side note i Remeber having to drop down to "My Computer" first although "Root" seems to be working for you also

Edited by CraigC
Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

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