Go to Post The real question is has anybody ever learned anything actionable from a game hint or red herring. - Joe Ross [more]
Home
Go Back   Chief Delphi > Technical > Programming > NI LabVIEW
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #10   Spotlight this post!  
Unread 25-01-2016, 15:54
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,795
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: USB-Camera lower exposure

  1. Start with a default project (you can add other stuff if you want to).
  2. Look in Teleop.vi for the DB/Button 1 code (with the Sample Boolean 1 output)
  3. Copy that snippet of code to the Vision Processing.vi, inside the While loop
  4. Add a separate Case statement inside the While Loop
  5. Wire the same output that feeds the Sample Boolean 1 output to the Case
  6. Copy the Camera Set Expos into the Case True case.
  7. Wire the Set Expos to the pink camera ref that comes in the left of the While Loop
  8. Change the Set Expose input constant to "Hold current"

Once you've put the new code onto the roboRIO, go to the Dashboard Basic tab and press DB/Button 1 to make the camera Hold Current exposure setting.
This would only work once and assumes that the original Set Expos is still set to "Auto".
Once set to Hold current exposure, then if you push the button a second time you won't se any change.
To get it to change again you'd need to add another Set Expos to take it back to "Auto" long enough for the camera to adjust the exposure again, then you could Hold Current again.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 25-01-2016 at 16:01.
Reply With Quote
 


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 09:07.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi