From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Need help with error: Error 7 occurred at Open File+.vi:Open File

Solved!
Go to solution

Hi all, my project is about motion tracking. Its suppose to store coordinates of the objects and save camera footage as AVI file whenever there's movement. However, whenever I run the program I get this error: 

 

Error 7 occurred at Open File+.vi:Open File

Possible reason(s):

LabVIEW: File not found. The file might be in a different location or deleted. Use the command prompt or the file explorer to verify that the path is correct.

 

If I ignore the error, the program still runs fine but I would like to avoid this error anyway or at least avoid the error dialog from popping out. LabVIEW doesn't point me to where the problem is so I'm having a hard time debugging it. Can anyone take a quick look? Sorry beginner here. I just started using LabVIEW a few weeks ago.

0 Kudos
Message 1 of 6
(4,117 Views)

Instead of ignoring the error, tell the program to stop when that dialog box comes up.  See where it has stopped at.

0 Kudos
Message 2 of 6
(4,115 Views)

after clicking stop on the error dialog box, LabView doesn't show where the error is.

0 Kudos
Message 3 of 6
(4,091 Views)

That is odd.

 

Try using the debug tools such as execution highlighting so you can track the flow and see when it pops up.

0 Kudos
Message 4 of 6
(4,072 Views)

so this happened.

The program will select the case where it doesnt detect any movement thus it will just project the webcam onto the display. No error occurs here. I run it again, while moving my hands in front of the webcam at the same time so that the program will enter the "movement detected" case to check for errors. However, it still entered the "no movement" case again. Any ideas? I have set the movement detection to go through at least 8 frames to produce a positive result. Waiting for it to finish 8 times takes way too long. 

If there's no choice, I might have to wait 8 frames then haha 

0 Kudos
Message 5 of 6
(4,058 Views)
Solution
Accepted by topic author Cres2608

Sure.  Highlight execution is going to run much slower, so any interaction with real world signals, like waving your hand in from of a webcam, is going to be much slower.

 

Instead of doing that, try modifying your code.  Instead of that logic, just change it to a boolean control that drives the case structure so you can simulate that the motion logic has happened.

Message 6 of 6
(4,044 Views)