LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

HOW TO OPEN 10 FILES OR MORE AT ONCE?

Hi JLV,
 
How r u?
I'm sorry that i didn't write to u in the last day , i have a loot work to do.
i have look in your example and they working very good. But i know that there is a function in labview that is FLUSH file and i try to work with that to solve the problem.
 
 do you have any expiriance in parsing txt files?....
and what abut labview and access database?
 
regards,
eyal.
 
have fun Smiley Happy
 
0 Kudos
Message 31 of 37
(1,799 Views)

Hi DF,

Glad to read that the examples were useful. 😄

Yes, I do have lots of experience parsing files.  If you explain what you are trying to do, I can help.

I do not have that much experience with databases... But if you post your question, I will try to point you in the right direction.

Regards,

JLV

Message 32 of 37
(1,791 Views)
Hi JLV,
 
You are the BEST!!!.
Many THANK'S for you support.
o.k lets go...
first i modify your example that can read more than one file.
but i have a few problem, the problem is that i want to take only the file that the extension is from 000 to 999.
i don't know how can i do this.
the second problem is that i  want to overwrite file but this is not working.
i attached my file so u can see that. What I'm trying to do is transferring file from one place rename the file
and put him in other place. Create a new file file in that first place and so on...
 for example:
 in place a:
xxxx_yyy.000
xxxx_yyy.001
xxxx_yyy.002
xxxx_yyy.003
in place b:after the transfer...
st1_xxxx_yyy.000
st1_xxxx_yyy.001
st1_xxxx_yyy.002
st1_xxxx_yyy.003
and now in place a will be
xxxx_yyy.004
---now the problem are :
 
#1 how do i take only the files with extension form 000 to 999.
#2 if the file already exist in place b then overwrite him.
note  that the file paths_read.txt is the index that tell from witch locatation take the files,file names,and where to put the files after the transfer and rename.
 
i hope that u undusted what I'm trying to do.
here is my code.
thanks again Smiley Very Happy
 best regards,
eyal. 
0 Kudos
Message 33 of 37
(1,780 Views)
Hi Eyal,
 
I understand what you are trying to do.  I will lokk at your code (hopefully) tonight..  if the wife allows me 😉
It is not that complicated, but we can add that feature to the existing example (or your code).  I will also explain how to do it.
 
Regards,
 
JLV
Message 34 of 37
(1,777 Views)

Hi DF,

Attached is a little cleaner vi.

Sorry I didn't get a chance to go through it thoroughly.

I think I understand most of what you want to do.  I simplified some stuff and created one sub-vi as an example for you.  You should make use of sub-vi's.  They keep the code tidy.

I asked some questions within example 3.  I purposely wired wrong the box where you change the filename.  A simpler way is to use a loop and use the counter to create the addtiotional extention to the filename.  However, I did not understand why you are incrementing it.  Can you describe the logic behind it?

I must call it a night.  If you look at some of the logic change, you can adapt some of it in your vi.  Try it and [post your resulting vi.

Have fun,

JLV

😄

Message Edited by Support on 09-15-2005 10:47 AM

Message 35 of 37
(1,769 Views)

Hi, JLV

#1 in the file paths_read.txt there is info like station number in the start ST No; and you forget to take the destination path(Output path).

#2  i write to you some info in the vi.

regards,

eyal.

note: i hope that I'm not making for you  trouble with your wife Smiley Very Happy

i know this problem my wife also want to kill me because I'm working to late.Smiley Wink

 

 

Message Edited by Support on 09-15-2005 10:48 AM

0 Kudos
Message 36 of 37
(1,760 Views)

Hi DF,

Not too much trouble with the wife 😉

So how are the station names defined?  Do the stations write the data to a single server?  And how is the text file prepared?

Basically, I am wondering if the front-end info can be automated. 

Are you creating the text file?  If so, there are tricks you can use to simplify the parsing of the file.   Try to describe the naming convention of the files and how they are created.  I can propose something like an "ini" file which is easy to parse.  Also, we can identify what is static and what is dynamic within the file and / or folder.  Planning ahead will help you to simplify the vi.  Architecturing (planning) the work will save you lots of time and lots of headaches.  It is a simple task, and well worth the effort.

Then we can walk through the process, this way, you can use the same method for other parts of the project.

I can only look at LabVIEW at home (at night).

Remember to have fun.  You did okay so far, now you need to simplify it and start using sub-vi's (which can be used in other vi's later on).  Sub-vi resemble sub-routines.  They are usually task specific vi's.  And easy to implement.

Regards,
 
JLV
Message 37 of 37
(1,750 Views)