01-28-2006 04:15 AM
Hiiii, Ray
This thing is same as i want but i ve seen that is writing the only one row in the excel file and then new file starts to write, so is there any possibility that it writes the whatever data i want and then when control comes back to here it creat the new filw and i think it is happening, i think i should change your file like this, i ve attached here, when stop button pressed control should come back to the caller and will create the new file...? isn't it?
Thanks,
Nishant
01-30-2006 07:16 AM
01-30-2006 11:36 PM
Hiiii, Ray
Good Morning to u first of all, here why i am using the while loop is i am not writing the Header only, i am also writing the data also into it, and ur vi is perfect for my application, what it is doing is creating the file, writing the header into it, afterwards data into it and then i ve put the logic that whenever the file size exceeds, the control comes back to the Create file main.vi, and it creates another file, and again goes to my vi, which again writes the header and data into it and when it completes those things again come back to the main vi.
Another thing i want to ask is, is there any possibility to reset the file nos, mean is it possible to after creating suppose 15 no of files, can we again create the file no1 programatically (not by deleting manually from the folder)?, mean by resetting the file number.
Thanks,
Nishant
01-31-2006 07:43 AM
01-31-2006 09:57 PM
Hiii,
Ray, let me give you the answer of the question of the Header length, actually it is only of one line, and other lines are the data and whenever the file size exceeds, at that time new file will be created with another single line of header.
Another thing i understand that, ya user cannot create the two files of the same name, but i want that once i reset the file name, whole of the file which are currently existing in the directory should be deleted from that folder...
is it possible???
Hey Ray, another thing i want to ask you that at which Canadian time, u r being online, coz i want conversation with you one on one for this topic or can u be online at the night if u can we have the conversation, i think canada is 8 to 9 hours behind then India, isnt it, and let me tell u that i m really happy that masters are helping me so much, do u ve the yahoo id, if u have then we can chat...??
Thanks,
Nishant
01-31-2006 11:02 PM
02-01-2006 07:53 AM
Hi Nishant,
I am not sure how many hours difference we are from India. 8 hours sounds right.. but I will check. I do have an account with Yahoo, but never go online with it.. Unfortunately, my evenings are dedicated to a project that I must complete by the end of June.
02-01-2006 04:39 PM
Hi Nishant,
Apparently, 12 hours separate us! That means you're on the other side of the planet 😉
I didn't get a chance to do the example today. I will try 1st thing in the morning (with a coffee)
😄
02-02-2006 05:29 AM
Hiii, Ray
Its OK, just send it to me whenever you create it, but here one problem is coming when i am using your vi in my project, whenever create_main.vi calls it stops my whole exe, so is there any other possibility that, as we are calling the Write_header into Creat_main... instead calling Create_main into Write_header file, when writing the data, in between increment the file no, instead of while increment the file no, inbetween writing data...
Thanks,
Nishant
02-02-2006 07:03 AM
Hi Nishant,
In the example that i will create, I will leave blocks in to simulate data collection & writing. I will try to do it in such a way that you can drop it in to a higher level vi. Actually, I will create a higher level vi & call it "higher-level.vi" 😉
You can also replace the data collection vi with your method.. I will try to allow configuration of the header info as well... this is a good refresher exercise for myself, especially since I've been coding in CVI over the past year.. I like these examples to keep my mind refreshed with LV. 😄
Thanks!!
Ray