|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
|||
|
|||
|
We need help figuring out what this error means and how to fix it:
Code:
Error when getting image from the camera: IMAQdxError: -1074360306: No acquisition in progress. at edu.wpi.first.wpilibj.CameraServer.capture(CameraServer.java:222) edu.wpi.first.wpilibj.CameraServer$2.run(CameraServer.java:192) java.lang.Thread.run(Thread.java:745) Last edited by Team 3023 : 31-03-2016 at 16:39. |
|
#2
|
||||
|
||||
|
Re: Camera Trouble
Can we see your code? It is very difficult to debug code without seeing it.
What camera are you using? |
|
#3
|
|||
|
|||
|
Re: Camera Trouble
CameraServer server;
public void robotInit() { oi = new OI(); dt= new DriveTrain(); am = new ArmMovements(); server = CameraServer.getInstance(); server.setQuality(50); server.startAutomaticCapture("cam0"); |
|
#4
|
||||
|
||||
|
Re: Camera Trouble
Are you using GRIP?
Is this the only place that you are accessing the camera? Are there any other errors? |
|
#5
|
|||
|
|||
|
Re: Camera Trouble
No
Yes No |
|
#6
|
||||
|
||||
|
Re: Camera Trouble
Still wondering which camera you're using? (Axis, Microsoft Lifecam, etc...)
|
|
#7
|
|||
|
|||
|
Re: Camera Trouble
Do you know that it is named cam0? You can check by logging into the rio's maintenance page and see what name it lists for the camera. We've had issues with cameras not being named as expected. Wrap all your camera code in try..catch blocks so camera errors don't bring down your whole program.
|
|
#8
|
||||
|
||||
|
Re: Camera Trouble
Have you tried imaqdxStartAcquisition()?
|
|
#9
|
||||
|
||||
|
Re: Camera Trouble
I second Ninjastahr 's suggestion. I was having an issue with a Genius webcam and switched from the CameraServer class to NIVision. (thanks, jojoguy10!). Check out the "Intermediate Vision" example.
|
|
#10
|
|||
|
|||
|
Re: Camera Trouble
Just from reading the error
"No Acquisition in progress" sounds like you either aren't telling your camera to capture in the code, or you are having a physical problem on your camera preventing it from capturing images |
|
#11
|
||||
|
||||
|
Re: Camera Trouble
A few questions:
Is this on the FMS or your own connection(e.g. Practice router or tether)? What camera are you running? I'm not a programmer nor a professional, just an electrical/control systems troubleshooter. My team had a similar issue, however I can't think of the error off the top of my head. |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|