11-15-2016 07:45 AM
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.
Solved! Go to Solution.
11-15-2016 07:48 AM
Instead of ignoring the error, tell the program to stop when that dialog box comes up. See where it has stopped at.
11-15-2016 08:50 AM
after clicking stop on the error dialog box, LabView doesn't show where the error is.
11-15-2016 10:47 AM
That is odd.
Try using the debug tools such as execution highlighting so you can track the flow and see when it pops up.
11-15-2016 11:47 AM
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
11-15-2016 12:52 PM
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.