LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

searching a file in the disk

Solved!
Go to solution

Here screenshots on how to implement the first option using build array:

Blockdiagram.png

And the true case:

TrueCase.png

 

Norbert

 

PS: Note that this procedure is only recommended for "small numbers of files to search for". Build array can blow your memory, so if dealing with lots of files, you should follow option 2.....

Norbert
----------------------------------------------------------------------------------------------------
CEO: What exactly is stopping us from doing this?
Expert: Geometry
Marketing Manager: Just ignore it.
0 Kudos
Message 11 of 18
(984 Views)

Hi my friend, How are you ?

This is what I did till now,

searching files.png

searching files 1.png

 

I'm waiting for your remarks and observations.

 

Cordially

 

IBN HAYANE Faiçal

 

0 Kudos
Message 12 of 18
(965 Views)

Your code will most likely not work as you expect... did you try it?

 

Norbert

Norbert
----------------------------------------------------------------------------------------------------
CEO: What exactly is stopping us from doing this?
Expert: Geometry
Marketing Manager: Just ignore it.
0 Kudos
Message 13 of 18
(948 Views)

Yes I did, It works good, the only problem that I still have, in the result I got some empty boxes in my array !

 

I tried in vain the function "Delete from array" !

 

have you any proposition to do that ?

 

Thanks

0 Kudos
Message 14 of 18
(943 Views)

You only delete a single entry from the array.

The reason is that the "subset to delete" will only store one value. Reading the variable will create a copy of "subset to delete" sometime during code execution. So you will not know when the variable is read and what the value will be. This is called "race condition".

 

You have to create an array of indizes to delete.

 

Norbert

Norbert
----------------------------------------------------------------------------------------------------
CEO: What exactly is stopping us from doing this?
Expert: Geometry
Marketing Manager: Just ignore it.
0 Kudos
Message 15 of 18
(939 Views)

Thank you for your responsiveness,

 

Please have a look at my program as an attachement, it works but it needs something what I don't know !!

 

 

best regards

 

-------------

Faiçal

0 Kudos
Message 16 of 18
(933 Views)

There are several severe flaws in your VI. I corrected them and put some style into it i ask you to keep for future work with LV.

 

Here you go, as mentioned, the one exception for this year....

 

Norbert

Norbert
----------------------------------------------------------------------------------------------------
CEO: What exactly is stopping us from doing this?
Expert: Geometry
Marketing Manager: Just ignore it.
0 Kudos
Message 17 of 18
(928 Views)

Thank you very much for your help. I have done some nice applications within LabVIEW, But now I feel really overdue.


Anyway, thank you very much, I'm very lucky to contact you.

 

Cordially

 

---------------

Faiçal

 

0 Kudos
Message 18 of 18
(924 Views)