From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
04-27-2012 10:38 AM
Hi Stefan,
I think it is because this is a webcam and always wants to run at the fastest rate. In IMAQdx we do iterate over the listed framerates and so I expect that this particular camera was only listing one per each resolution/format.
Eric
04-27-2012 10:52 AM
05-10-2012 12:30 PM
Hi Stefan,
I just came across the same problems as yours. So I tried to use LabVIEW to control a Philips webcam NPC900NC. I could configure it in MAX and vi, but only for some "basic" modes. I cannot change the frame rate of it above 30 FPS, which I can achieve in the camera's driver and in VC code. The VC code did this by calling functions in DirectShow. So I wondered if there is any way I can call the hidden functions of DirectShow in LabVIEW?
You mentioned that you solved this by creating an AcitveX control. Could you give more details on it? Thank you very much.
Regards,
Bo
(Windows XP 32-bit, LabVIEW 2009, IMAQdx)
05-11-2012 02:49 AM
05-11-2012 05:27 AM
Hi Stefan,
Thank you for your reply. It is really helpful. I will look up calling AM_MEDIA_TYPE function in LabVIEW then.
Thanks again for your help.
Regards,
Bo
05-11-2012 05:47 AM
AM_MEDIA_TYPE is a structure type:
http://msdn.microsoft.com/en-us/library/windows/desktop/dd373477%28v=vs.85%29.aspx
The member pbFormat contains a pointer to a VIDEOINFOHEADER structure:
http://msdn.microsoft.com/en-us/library/windows/desktop/dd407325%28v=vs.85%29.aspx
Its AvgTimePerFrame member contains the frame rate.
The AM_MEDIA_TYPE is used in SetMediaType and when filter pins are connected.
Stefan