05-30-2017 05:19 AM
Actually there are multiple posts both here on NI as well as over on lavag.org that document this and on lava there is at least one post that provides a ready made VIs already.
https://lavag.org/topic/12356-multiple-patterns-in-labview-file-dialog/#comment-74170
06-23-2017 01:35 PM
Thank you, I was looking for this kind of function!!! 🙂
03-25-2020 09:53 AM
Hi gamberetto,
I have tried to use your create patterns VI in LabVIEW 2019 (32bits), and although it works fine, when I call File Dialog, I get the following error: "LabVIEW: (Hex 0x692) This string contains an unexpected null character."
I also get the same error if I use a string constant with the pattern text told by MikaelH, so ther problem is not with your code but with LabVIEW File Dialog.
Can someone tell me it this solution still Works in LabVIEW 2019?
Thanks in advance.
03-25-2020 01:57 PM
Answering myself
After doing a deeper search in the forum I have found that this issue is already known: https://forums.ni.com/t5/LabVIEW/Null-File-Dialog-Behavior-in-2019-amp-Forward-Compatible-Run/m-p/39...
The short answer: we can no use this feature in LabVIEW 2019
03-26-2020 03:22 AM
Merging the code from gamberetto with the use of .NET File dialog form Daniel_H1 found here, I have implemented a subVI for selecting one or multiple files using .NET.
It works almost as LabVIEW built-in Express File Dialog, so you can replace it in your code without mayor changes. The diferences are:
01-12-2024 10:10 AM - edited 01-12-2024 10:11 AM
@MikaelH wrote:
This is how I do it:
Cheers,
Mikael
Reopening a really old topic but, As of LV2019 this does not work anymore, and it has something to do with the Windows File Dialog API.
I was wondering if you have a solution for newer version of LabVIEW? especially LV2020 and up.
01-17-2024 12:51 PM
Playing around with the .net file dialog box link given earlier, I came up with this...
The example I used for the filter list is as follows:
Image Files|*.BMP;*.JPG;*.GIF;*.PNG|Text files|*.txt|LabVIEW Projects|*.lvproj|LabVIEW Files|*.vi;*.ctl;*.vim;*.llb|Zip|*.zip;*.7z;*.gzip;*.rar;*.tar|All files|*.*
It looks like this...
Hope this helps.