04-11-2007 01:52 PM
04-11-2007 05:14 PM
04-11-2007 05:36 PM
04-11-2007 05:55 PM
04-12-2007 04:44 AM - edited 04-12-2007 04:44 AM
@unclebump wrote:
Try here. http://zone.ni.com/devzone/cda/epd/p/id/3175
The image below shows a quick attempt at improving the example. Modify as needed.
Message Edited by altenbach on 04-12-2007 02:45 AM
09-03-2013 05:43 AM - edited 09-03-2013 05:44 AM
i know this is an old thread but it does just what it's supposed to and it would seem it works fine just as it is.
i was wondering if i had done the right modifications according to what you suggested altenbach?
also, i was thinking that i would set the default folder as an input from the main VI (maybe with additional subdir), your thoughts?
and one last thing, if i want to get the entire file path (including name and extension) as output instead of just folder, how would i go about it?
attached is the modified VI.
09-03-2013 01:59 PM
@abenigma wrote:
i know this is an old thread but it does just what it's supposed to and it would seem it works fine just as it is.
i was wondering if i had done the right modifications according to what you suggested altenbach?
also, i was thinking that i would set the default folder as an input from the main VI (maybe with additional subdir), your thoughts?
and one last thing, if i want to get the entire file path (including name and extension) as output instead of just folder, how would i go about it?
attached is the modified VI.
I think your code is pretty good. The only suggestion I would have is to wire a constant to the uninitialized shift register index.
I attached my attempt to do the same using OpenG. It is going to be less efficient without a doubt, but I wasn't sure what would be more useful, having the newest file or the oldest, so my code finds both, as well as sorts the files by their date/time. Saved in 2012.
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
17 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord
09-03-2013 02:24 PM
abenigma wrote:i was wondering if i had done the right modifications according to what you suggested altenbach?
No, you are building an potentially huge array of paths, only to later keep only one element. This is wasteful and inefficient. All you need to keep is the currently newest path as in my code. Right?
abenigma wrote:also, i was thinking that i would set the default folder as an input from the main VI (maybe with additional subdir), your thoughts?
Sorry, I don't understand what you are trying to say here. If you set the folder via an input terminal, the default value is irrelevant. Please explain.
@abenigma wrote:
iand one last thing, if i want to get the entire file path (including name and extension) as output instead of just folder, how would i go about it?
I don't understand your point. My VI already outputs the entire path, including name and extension (note the "build path" primitive!). Make sure your indicator is wide enough to display it.
09-03-2013 04:05 PM
this isn't that urgent now since my lectrer "suggested" i don't use it, but i would still like to know.
correction, not urgent at all...