@s5/mru

MRU

A LabVIEW library for automating a Most-Recently-Used list. Ties a Combo Box to an INI file.


API

MRU_Create.vi

Construct the MRU Helper

Reads the MRU list from the INI file and stores it into the Combo Box. The first entry in the MRU List is also stored in the Combo Box's Value for ease of use.

Parameter Description
MRU INI file Path to the INI file that will hold the MRU values (can be shared with other settings)
MRU Section Name Section in which to store the MRU values
CmbBox Refnum Reference to the System Combo Box that will be used to display/enter the MRU values
Number to remember How many values to remember

MRU_GetMRUList.vi

Fetch the list of Most Recently Used items

This routine will directly populate the Combo Box with items from the INI file. Note that this operation is already done in MRU_Create. This VI allows for more of a 'revert' function for the MRU list in the Combo Box.

Parameter Description
reference in the MRU Object

MRU_UpdateMRUList.vi

Update the list of Most Recently Used items

Pulls the current Value from the Combo Box and updates the MRU List in the INI file. Duplicate Values will cause the existing Value in the MRU list to come to the top but will not add a second instance of that Value into the MRU List. Empty Values are ignored.

Parameter Description
reference in the MRU Object

MRU_Destroy.vi

Release Resources and clean up

This releases the DVR reference used to hold the other references.

Parameter Description
reference in the MRU Object

Example

.\MRU\Example\MRU Example.lvproj

This VI gives a quick demonstration about how/where to use the MRU Library.

MIT License

Copyright (c) 2018 S5 Solutions

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
How do I use this package?
Published by tkuiper 5 years ago
1.0.1 is the latest release
MIT
github.com/S5Solutions/MRU.git
Stats
5 downloads.
Keywords
Dependencies (0)
    none