05-10-2008 10:23 AM
05-11-2008 08:29 PM
I am guessing that you are trying to read from the avi file and write to it at the same time, which is not possible. If you need to make changes to an avi file such as adding data to it, you need to read from one file and write it back to a new file.
Bruce
05-12-2008 01:12 AM
Hello Bruce and thanks for your reply.
I am trying to write a text file, containing the data from my image processing algorithm.
I need to write a numerical value for each frame of the avi file, and this is when i get the error.
05-12-2008 11:28 AM
Looking at the vi you attached helps a little bit.
Do you want to have a separate file for each frame of the avi? If so, you should generate the filenames automatically instead of having the user enter each filename.
If you use the same filename repeatedly, it will generate your error. Create expects the file not to exist. If you want to replace it, use Create/Replace as the creation mode.
If you want all your values in a single file, you can either open and close the file outside the loop and do the write inside the loop, or accumulate all the data into an array and write the entire array to the file in a single step.
Bruce
05-15-2008 01:29 AM