LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Is there an easy way to get a "recent files" menu with a path control?

I haven't tried this paticular VI, but I've had the problem of a vi trying to load itself with other vi's posted here or on NI's website. I think it was down to a virus scanner corrupting the vi. I down loaded the troublesome vi at home (different AV) and it was OK.

 

Rod.

 

0 Kudos
Message 11 of 14
(727 Views)
Hmmm...
 
I really wish I had LabVIEW up.  Have any of you ever text edited a VI?  All I did was edit a label inside the VI's raw file text using Notepad.  The label was part of a description of a control.  Is that enough to corrupt a VI?  Since I did not have access to LabVIEW when I did this, I just edited that way.  But that was all.  ???  Smiley Indifferent
 
I'll have to wait until I get LabVIEW running to figure out why my VIs are corrupted.  Sorry.
 
Let me know if you find that something different is wrong.
 
7J1L1M
 
P.S.  Add Recent File.vi and Load Recent Files.vi were the only edited VIs.  I'll attach the original VIs in this ZIP, but they will have some documentation irrelevant to your applications, as I at first custom designed them.
0 Kudos
Message 12 of 14
(723 Views)
That latest code runs, thanks. If you changed the size of the LabVIEW file when editing it with NotePad, that would have corrupted the VI.

Your latest Add Recent File.vi works, but only adds up to one VI even though I have let the limit from 4 to 8. I'll debug it once I get some free time; thanks for the code, it's almost there.

Bruce
0 Kudos
Message 13 of 14
(715 Views)

Hay Bruce,

The reason it does that is:

It only adds one recent file to the list at a time, but the size limit thing just coerces the list size if it gets too large.

You need to make an INI file in the same directory.  This is at the base of the program, as it constantly accesses it so that less code is needed from you.  So make sure that the INI is in the same directory.  Otherwise, the subs won't remember any of the list.

Let me know how it turns out!  They should be very easy to use.

7J1L1M

P.S.  I didn't take into account the index changing when I did the text editing.  Thanks for that pointer!

0 Kudos
Message 14 of 14
(708 Views)