warning when connecting a cam

I get this warning wen connecting a cam
Warning: The BacklightCompensation property was unable to be set to the requestedvalue and has been adjusted. Check the current value before continuing your work.
can u tell why i get this

Réponses (2)

Jan
Jan le 25 Oct 2011

0 votes

The message means, that you have tried to set the BacklightCompensatoion to a value, which is not recognized. Without seeing the code, there is no chance to give a meaningful answer.

1 commentaire

Bryan
Bryan le 6 Août 2015
I've seen something similar, except in my case it was the ColorEnable property. This happens whether I use the imaq tool or do it programmatically. The warning comes up on the command that creates the videoinput object, e.g.:
vid = videoinput('winvideo', 2, 'RGB24_1280x1024');
Since, apart from querying the system as to what videoinput adaptors and formats are available, this is the first real command that does anything, I'm guessing this is a bug in the constructor for the videoinput class. Fortunately, it only throws a warning and not an error, and it's possible to proceed from that point. Is this similar to your experience?

Connectez-vous pour commenter.

Image Analyst
Image Analyst le 25 Oct 2011

0 votes

Is that in your code? Or is that what the imaqtool tells you? Are you even using imagtool to set your settings? The imaqtool adapter should have sliders to set the various parameters to only "legal" values and so you should never see that message if you used imaqtool. Of course if you did it yourself, you're free to pass any value whatsoever to the "BacklightCompensatoion" property, and it appears that you tried to use a value that is not allowed. For example it wants values in the range 0-300 and you passed in -20 or 569 or 3456. The adapter that imaqtool uses may have been written by your camera manufacturer, not the Mathworks, so you may have to contact them to obtain the legal values, or else check the software development kit documentation for that camera.

7 commentaires

Pat
Pat le 28 Oct 2011
the values are not changed,it works one other system,but in my system i get an error ..why it happens?
Image Analyst
Image Analyst le 28 Oct 2011
That does not seem like an answer to ANY of my questions above.
Image Analyst
Image Analyst le 28 Oct 2011
Pat: Check this out and then come back:
http://www.mathworks.com/matlabcentral/answers/6200-tutorial-how-to-ask-a-question-on-answers-and-get-a-fast-answer
Pat
Pat le 28 Oct 2011
sir i have read it ,in u r post u said i am using a valur which is not allowed ,if it is the solution ,it sholud not work on any system right,then why it works on one and not on another,i have not changed any values ,
Walter Roberson
Walter Roberson le 28 Oct 2011
You might have different startup scripts in the two systems, or you might have different MATLAB versions, or you might have different Windows versions. Also, is it the exact same camera in both situations, physically moved between the two systems?
Pat
Pat le 28 Oct 2011
walter matlab versions are same,and the camera is same.. moved physically,but i have no idea about startup scripts in two systems,
can u tell what to do...
Image Analyst
Image Analyst le 28 Oct 2011
Pat, look at my questions again - those are the sentences with a question mark after them. I'll repeat them here: "Is that in your code? Or is that what the imaqtool tells you? Are you even using imagtool to set your settings?" Now, did you answer any of them? I can't find anywhere where you mentioned if you were using imaqtool functionality or not. OK, let me try to rephrase this: "Are you running a script, or are you running the imaqtool utility?"

Connectez-vous pour commenter.

Catégories

Question posée :

Pat
le 25 Oct 2011

Commenté :

le 6 Août 2015

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by