LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Update file name

Hi Nishant,

Before implementing the example, I will need to know the following.

Will the filename always remain the same?  Or does the vi have to adapt for changing leading filenames?

Ray

Message 71 of 94
(2,019 Views)

Hiii, Ray

   Ya we are currently goin to give the feature for the same file name, so please implement it for me, then after as per  that vi, i ll modify th evi for the different names. but right now, its to urgent for me, thats why i don have try myself and left it on you, only three days left for the deadline, and i  am facing more problems in the LabVIEW as i am still new to it.

Thanks,

Nishant

Message 72 of 94
(2,013 Views)

Sounds like you are having fun.

I do have an example ready.. I will wrap both styles within a Case Statement so that you do not loose functionality and can re-use past implementation.

Atually, the new method should handle both.  I'm very busy so it may not be tested..  but should work..  😉

Later,

Ray

Message 73 of 94
(2,008 Views)

Hi Nishant,

It's been a busy day..

Here it is: (attached).  You will have to create a blank file in the directory of your vi called:  filenames.lst

there is a 's' at filenames

Gatta go..

 

 

Message 74 of 94
(2,004 Views)

Hiii, Ray

        You are absolutely right that i am enjoying my assignment,enjoying the LabVIEW, enjying the forum, and more importantly, i am enjoyong working with the, there are so rare people left in the world, who are always ready to help,and because of you i am at good stage in my company, cos i will complete my assignment in time, which is so rare people are doin, i am still facing 1-2 problems, but i am sure i ll solve it. thanks for the help. i ll come back again if i want any other help, bcoz "students always comes to the master to learn something".

Thanks,

Nishant

Message 75 of 94
(1,998 Views)

Hiii, Ray

    I am in somewat trouble here, actually it is asking for the filename.lst in the directory, which i select, if there is no such kind of file in that folder, it gives me the error as shown in the error.jpg here,and if it is there, it will do the function right,what is that? from that file, user might be in trouble, if he change the file path. another thing while replacing the file, it gives the prompt to the user, is it windows based or labview based? i want to remove that prompt, here i am trying that, you answer me about that if you know, i ll use it.

Thanks,

Nishant

Message Edited by Nishant on 02-23-2006 04:57 AM

Message 76 of 94
(1,998 Views)
Hiii, Ray
 
              I have solved the problem of user prompt currently, so please try to remove the filenames.lst from the folder and else explain me something about that, what i can do about it when giving to the user, bcos without it, the file appending will give me the error.
Thanks,
Nishant

Message Edited by Nishant on 02-23-2006 06:07 AM

Message 77 of 94
(1,996 Views)

Hi Nishant,

The reason for the filenames.lst is to keep track of the last number assigned to that filename.  It is because of the feature where, if the file number exceeds the maximum number, it rolls back to 1 and overwrites the existing files. 

So it has to keep track of the last number assigned, since it cannot simply create a new number.  The reason for using a file is that it should remain statis in between running the vi..

🙂

Ray

Message 78 of 94
(1,992 Views)

Hiii, Ray

     Its a sunday today but i am still in the office for the project, i want toask you about the logic of "Does the file exist?", coz i want to done the same thing in the create file with headers for deleting the file if it is existing and i think we must have to do it for the existing file,otherwise its a problem of user prompting for Replace existing file, which i dont want , so please explain me that part, here i am trying to understand it but couldnt get it yet, probably i think i will but it is preferable that you also explain me and if possible modify vi, so it is helpful for me.

Thanks,

Nishant

Message 79 of 94
(1,978 Views)
HI:
 
maybe use the system time as name of saving files can void the second saving overwrite the first one .
0 Kudos
Message 80 of 94
(1,965 Views)