12-11-2009 10:38 AM
Well Gerd, I splitted the files when I'm writing it, but now I don't know how to read the splitted files, I only can read the first one.
Sorry for the block diagram, but this program wasn't made by me.. and I'm a rookie at LabVIEW sorry for that =/
I really don't know how to do that, Could you help me?
with an example, or telling me what I have to change?
12-11-2009 10:45 AM
Hi EduU,
hit the original coder of that VI with big wooden club
You have to include the same logic as for splitting the data when writing:
On EOF error close the current file and open the next one. Use our examples as guideline...
12-11-2009 10:52 AM
Here is the Writing VI after the modify I did
Now it is spliting the file after each 10 seconds (only a test)
so Now in the Read VI i have to use the same logic, but how?
In this VI I open a file and can pass the image each second can back to the last second
can pass 5 seconds and back 5 seconds.. I can watch what i have wrote.
I will upload it here, and maybe you can help me more after you take a look on it!
Thanks
12-11-2009 11:09 AM
12-14-2009 04:28 AM
I already told you how:
if EOF error then open next file!
Include some proper error checking!
Well, you told me but I didn't understand
what is EOF ? and how can I open the next file??
Thanks for helping!
12-14-2009 04:48 AM
Hi EduU,
EOF = End Of File, you get an error message with exactly this status...
"how to open next file?"
Exactly the same way you open the first file
It works like the "saving" example: close the current file and open the next one...
12-14-2009 05:00 AM
Well, but in the saving example I was using a time of 18000 seconds = 5 hours
so I close the file and open another one...
and for read, how can I make the program knows, when it will have to open the next file?
12-14-2009 05:47 AM
12-14-2009 05:52 AM
Yes, I understand that
but could you make a simple vi with an example?
so I can see what you are talking about
and adjust it to my program!
please! thanks
12-14-2009 06:02 AM - edited 12-14-2009 06:05 AM
Hi EduU,
as I always said: open new file on EOF error:
It's a LV2009 snippet, but you can re-create it in LV7.1
And yes, the "new filename" wire is missing in the example - you want to learn LV, don't you?