Archive for October 18th 2013
This article was adapted from a post on the NI Community forums.
LabVIEW bookmarks are here! We announced this feature during NIWeek 2013. Now that LabVIEW bookmarks are floating around the programming world, here’s what you need to know:
1. What are LabVIEW bookmarks?
Bookmarks are a way of tagging things within a VI Block Diagram. LabVIEW now automatically identifies any text that begins with a hashtag (#) as a bookmark. Maybe you want to mark an unfinished task in one section of your code? Just write “#ToDo revise algorithm”. LabVIEW will detect the bookmark and bold the bookmark tag (the text immediately next to the # symbol, “ToDo” in this case)
2. What is the LabVIEW Bookmark Manager?
Bookmark Manager is a tool for finding all of the bookmarks in your project or application. To find it, click “View” in the menu bar, then scroll down to the “Bookmark Manager” item. You can also use Bookmark Manager to view a specific section of your block diagram. Just double click on any bookmark entry, and LabVIEW will open the VI where the bookmark resides and highlight its location on your block diagram.
3. The bookmark manager has an API.
The bookmark API has a open interface, which means it’s completely customizable. You can even create your own bookmark manager!
The bookmark manager API is built on the VI Server interface. You can either start from scratch, or follow these steps to copy the existing bookmark manager code. Be sure to copy the default bookmark manager instead of modifying the original so that you can return to the working original if something goes wrong.
4. There are two ways to get VI bookmarks.
The first way, the VI method, allows you to return all bookmarks within a certain VI. This method works for all VIs in memory, not just those that have been saved to disks.
The second way, the application method, uses a VI path to access all bookmarks in an application class. This works for any VI on disk, even if they haven’t been loaded into memory.
5. Your bookmark manager is shareable.
Give your bookmark manager the chance to be famous! Share your bookmark manager to the LabVIEW Tools Network as a free download or paid product.
Alternatively, you can distribute your bookmark manager dialog to your team using the VI Package Manager. This allows your users to immediately install the files in the right directory and mass compile the VIs to the current version.
Do you have other tips about LabVIEW bookmarks? Comment and share your advice.