View Single Post
  #1   Spotlight this post!  
Unread 01-30-2016, 02:28 PM
DGoldDragon28's Avatar
DGoldDragon28 DGoldDragon28 is offline
Programmer
FRC #1719 (The Umbrella Corporation)
Team Role: Programmer
 
Join Date: Jan 2016
Rookie Year: 2015
Location: Baltimore, MD
Posts: 10
DGoldDragon28 is an unknown quantity at this point
[HELP NEEDED] IMAQdx USB camera settings

Using the LifeCam-3000, we are attempting to send a feed to the SmartDashboard. To do this, we grab from it using the IMAQdx methods of com.ni.vision.NIVision. We also need to alter the exposure of the camera, so added the line:
Code:
(new USBCamera("cam0")).setExposureManual(20);
The issue is that using both on the same camera leads to the following error:
Code:
ERROR Unhandled exception: VisionException [com.ni.vision.VisionException: IMAQdxError: -1074360310: Camera is already in use.] at
[com.ni.vision.NIVision._IMAQdxOpenCamera(Native Method),
com.ni.vision.NIVision.IMAQdxOpenCamera(NIVision.java:30334),
edu.wpi.first.wpilibj.vision.USBCamera.openCamera(USBCamera.java:72),
edu.wpi.first.wpilibj.vision.USBCamera.<init>(USBCamera.java:63),
org.usfirst.frc.team1719.robot.Robot.robotInit(Robot.java:78),
edu.wpi.first.wpilibj.IterativeRobot.startCompetition(IterativeRobot.java:72),
edu.wpi.first.wpilibj.RobotBase.main(RobotBase.java:241)]
WARNING: Robots don't quit!
There is no way that we found to use the IMAQdx session to change the exposure, so we ask here for aid.
Reply With Quote