02-14-2009 10:02 PM
We have been able run the LabVIEW Two Color Servo Camera Demo V1 as a stand-alone project on our robot and have the servo pan/tilt unit successfully tracking the target. We are now trying to integrate this into our main project (which uses the Advanced framework), but cannot figure it out. We tried adding the Two Color Servo Camera Examplev1.vi directly into our Execute case in TeleOp.vi. When we run this, nothing related to the camera, or the original code works.
We realize this is probably not the way to integrate it. Is there a better way to do this?
02-16-2009 01:21 PM
Hi Richard,
Putting the Two Color Servo Camera Demo code into a case structure will cause some issues. If you look at the code you will notice that it contains while loops with false constants wired into them. This will cause you to never exit this case, making it look like your code has locked up.
A better place to put this code would be in a sub VI at the top level of the code, like where the vision loop currently is.
Have a great day,
Justin