LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Problem/Error when using search function in Express VI "File Dialog"

hi everybody,

 

i've encountered a problem when i want to use the search function in the express vi "file dialog".

the express vi uses the absolute path of only the last file of the search result for all other files. so if the files of the search result are in different folders/subfolders, the express vi produces an error resulting in a path array with paths that actually dont exist.

See the attached vi for example ... if you're searching for "TC3" and choose the 2 resulting files,
both files are located in the folder "TestB", although one file is actually located in folder "TestA".


any idea for a small workaround? 

this btw doesnt happen if you're using the search function of windows explorer and drag&drop the result into labview. so the problem is due labview itself.

 

thanks for any help!

0 Kudos
Message 1 of 7
(2,786 Views)

I don't understand what you mean by "search function" in the File Dialog Express VI.

 

It doesn't have any search function.  It just opens a dialog box so you can select one or more files.

0 Kudos
Message 2 of 7
(2,741 Views)

what i mean by "search function" is the possibility to search for files in that dialog box (see attached screenshot).

 

screenshot.png

 

 

 

 

0 Kudos
Message 3 of 7
(2,738 Views)

Okay.  I see what you mean now.

 

It never occurred to me to ever do a search while using a file dialog in any program, or if it did, I'm never using it to open multiple files.

 

It looks like the problem occurs at the File Dialog primitive at the heart of the express VI.  (If you right click and pick "Open Front Panel", you can see the underlying code.".

 

I think this should probably qualify as a bug.  I see it in LV 2017.  Yours is LV 16.  I don't know if it has existed longer than that.

0 Kudos
Message 4 of 7
(2,730 Views)

you're right ... but it happened to me several times now in the last weeks when i was frequently using it.
so therefore i need to get it fixed.

 

edit: yup it is due the file dialog primitive, i've checked ... so how do i proceed now? where do i report it as a bug?

0 Kudos
Message 5 of 7
(2,726 Views)

You can call into NI for one of their support engineers and report it to them.

 

Often, if they are monitoring the forums, one of them will read this message thread, confirm it, and will assign it a CAR#.

 

I don't think there is any easy fix for it.  What you might have to do is feed that array of paths into a For Loop and strip off all but the file name.  Then search for those files in the directory structure one by one (Recursive File List would help) to get the correct file paths.

 

There may be other ideas.  And if someone for NI joins in, they may be able to more directly point to a better solution.

Message 6 of 7
(2,719 Views)

 


What you might have to do is feed that array of paths into a For Loop and strip off all but the file name.  Then search for those files in the directory structure one by one (Recursive File List would help) to get the correct file paths.

i thought of that solution as well but the problem is that in my case there are sometimes files with the same filename.
so for now i try to avoid using the search function and wait for the bug to be fixed.

anyway thanks for your help! 🙂

0 Kudos
Message 7 of 7
(2,701 Views)