Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

How to write image processing data (single value) from each image in an avi file, error 10 occurred at Open/Create/Replace File

Hello, I am trying to write a single value (from my image processing algoritm) from each image of an avi file, I can write the value for a single image, but when I acquire the avi and try to write, I get the following error message:
Error 10 occurred at Open/Create/Replace File in IPWD.vi
LabVIEW:  Duplicate path.
=========================
NI-488:  New I/O attempted with old I/O in progress.
I would really like some help to solve this problem..
Thanks in advance!
0 Kudos
Message 1 of 5
(3,618 Views)

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

Bruce Ammons
Ammons Engineering
0 Kudos
Message 2 of 5
(3,606 Views)

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.

0 Kudos
Message 3 of 5
(3,601 Views)

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

Bruce Ammons
Ammons Engineering
0 Kudos
Message 4 of 5
(3,590 Views)
Thanks Bruce,
I got it working now!
0 Kudos
Message 5 of 5
(3,563 Views)