Tim_S Posted December 13, 2011 Report Share Posted December 13, 2011 I ran into a bug in LV 2011 with the List Folder primitive. A pattern with an underscore in it will return an empty array despite matches in the target directory. Here is a demonstration of the bug: List Folder.zip I contacted NI about the bug. There is a CAR for the MAC OS only at the moment and it will either be updated or a new CAR created. I wasn't able to get what version of LabVIEW will correct this. Tim 1 Quote Link to comment
Saverio Posted December 14, 2011 Report Share Posted December 14, 2011 Ummm... slight problem with example... the value for the item "Test123_*.* (doesn't work)" is actually defined as "Test_*.*". No files in the test directory match that pattern, irrespective of the List Folder function. If I place a string control on the front panel and enter a pattern of "Test123_*.*" then the resultant array is ["test123_1.txt", "test123_2.txt"]. Quote Link to comment
Tim_S Posted December 14, 2011 Author Report Share Posted December 14, 2011 Gah! Okay, that's a little embarrassing. I thought I had a sample of what was causing the issue I was seeing in my actual code. Okay, back to head scratching on the bug in my code. Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.