Edit the files in the new folder to accommodate your particular needs.Open the copy of the *.txt file and replace the word Default with the name of your new bookmark manager (this name will appear in the "Select a Bookmark Manager" dialog).Copy the Default.txt file at the top level of the managers directory and rename it to match the new name of the folder from step 2.Paste the folder in the same directory and rename it to something else.You will use this source as the starting point for developing your bookmark manager. Copy the Default folder found in the labview\resource\dialog\BookmarkManager\managers directory.Complete the following steps in order to copy the existing bookmark manager code: When creating your own bookmark manager, you may start from scratch, but it may help you save time to use the existing bookmark manager as a starting point. This can be handled in a LabVIEW Event Structure.Ĭustomizing the Built-In Bookmark Manager
This is an application event that is generated when a user changes the bookmark of a VI. Note: Bookmarks are referenced by "Bookmark IDs" because Object References are only valid for VI's loaded in memory. This method will convert a bookmark ID to an object reference. Get Object Ref from Bookmark ID (VI Method) This means that a VI does not have to be in LabVIEW's memory in order to read its bookmarks. Note: Bookmarks are stored as a VI resource on disk but are kept up to date in memory. This method uses a VI Path for input and works for any VI on disk, even if they have not been loaded into memory. The Get VI: Bookmarks method is similar to the Get VI Bookmarks VI Method, except it is a method for the Application class. This method uses a VI reference and works for all VIs in memory, including those that have not been saved to disk. The Get VI Bookmarks method will return all the bookmarks associated with a certain VI. Along with the existing VI Server interfaces, the bookmark manager API adds 4 more important Events and Methods specific to bookmarks: If you are not familiar with VI Server, it may be helpful to first read up on this at " What Is the VI Server?" and " Capabilities of the VI Server". The bookmark manager API is built on the VI Server interface to programmatically access and manipulate the Bookmarks of a VI. You can even copy and edit the built in manager to help get you started since the Bookmark Manager is also open and unlocked.
The bookmark API has a fully open interface which can be used to create your own custom bookmark manager. The LabVIEW Bookmark Manager is very simple and useful, but its true power comes from its customizability. From the bookmark manager, you can also change the project in which you are viewing bookmarks and change the view. You can also double click any bookmark entry and it will open the VI where it exists and highlight the location on the block diagram. When you open the built-in Bookmark Manager, it shows the bookmark and any comments that follow it. It can be accessed from the View > Bookmark Manager menu item. The Bookmark Manager is a tool for viewing all bookmarks in a project or application instance. When you add a hashtag to a block diagram comment, LabVIEW detects a bookmark and bolds the bookmark tag to distinguish it from the rest of the text, (for example: "#TODO revise algorithm"). These can be used for marking to-do items or unfinished tasks in different parts of code. Any text that starts with a hashtag ( # ) will automatically be identified by LabVIEW as a bookmark.
Bookmarks are a special tagging mechanism that can be added to a VI Block Diagram. One of the exciting new features of LabVIEW 2013 was the introduction of bookmarks.