From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
02-07-2007 09:46 AM
02-10-2007 04:24 PM
Hello,
It sounds like you want a recent files list in the main menu, kind of like Microsoft Word. I recently developed two subvis that do the trick (for a different application, though), but they can conform pretty much to any menu. It would require an INI file in the same directory as your top level VI. Is this what you need? I'll post more details if this is.
7J1L1M
02-10-2007 07:36 PM
02-11-2007 08:18 AM
@bmihura wrote:
Yep, that's what I need. Before posting it, please test it with no other VI's open, as others on this forum will likely want it.
Are you refering to password locking the subvis? Or do you mean you want me to make sure it can work with any top level VI? If the latter is true, then the answer is YES. It will work with any menu. It will place a list of recent files (it will limit them to a specified number, which is configurable) just above the last option under your first menu group. So say you have the "File" menu first, and your last option is "Exit," then the File menu would look like:
Before:
New...
Open...
Close...
----------
Exit
After:
New...
Open...
Close...
----------
"Name of recent file 1"
"Name of recent file 2"
---------
Exit
Now of course your menu probably won't look just like that, but as long as the recent files list can put itself beside the last option (with a seperator), it will work fine. Let me know if you have any more questions before I post the subs.
7J1L1M
P.S. They run on LabVIEW 7.1, but I can save them to 7.0 if that is the version you have.
02-11-2007 01:32 PM
02-11-2007 06:56 PM
Here they are (in LabVIEW 7.1). I'd put them in an llb, but I don't have access to LabVIEW temporarily. You need to have the included subvis in the same directory as the INI file, since this is how the subvis keep track of recent files. Feel free to ask if you have any questions on using the subs! Just as a note: "Add Recent File" and "Load Recent Files" are the main subs. The latter would be used at program initialization, and the first for adding a recent file. Both make adjustments to the menu.
Please check the readme file.
7J1L1M
02-12-2007 09:14 AM
02-12-2007 09:24 AM
I'm afraid that since I don't yet have LabVIEW running on my new computer, I can't test them, but I tried them within this month's time and they have never given me an error. Did you notice that when the error said that the vis were created in a "more recent version of LabVIEW," there is no such thing yet? Currently LabVIEW 8.2 is the most recent. Have you been able to convert LabVIEW 7.1 vis to your version before?
7J1L1M
02-12-2007 09:32 AM
02-12-2007 09:35 AM