04-28-2011 11:49 AM
Hi,
I have a MC1362 CMOS camera from Mikrotron. I use a 1429PCIe framegrabber. I would like to be able to change the mode of my camera while running the labview code which drive this camera. This "mode" setting allow me to change the way the frames are send to the framegrabber, so change the size of the image and then doesn't fit anymore with the define buffer. Or, even if I send the command in serial to camera before defining the buffer, I still get an error and iyt is impossible to get the image. It looks like I have to set this settings first in the camera file (with camera file generator), and I cannot change it anymore after. Another option of this camera is the ability to create ROI on the hardware, which means I load only a part of the pixels from the camera, which makes it faster. If I try to change the ROI size during the acquisition, I get the same error message "-1074397150 occured at IMAG Extract Buffer.vi:1", basically for the same reason (if it is not set in the camera file, you cannot do it, even though the camera receive the proper serial command).
Is there a way to basically change the size of the image on the labview code, however this is not set in the camera file?
It looks to me like a framegrabber problem, but I am not a specialist!
Thanks for your future help!
Bests,
David
04-29-2011 04:59 AM
Hi,
Yes, you can change the image size withe an IMAQ property node.
But it can be done only when acquisition is stopped.
So if you want to change it, you will have first to stop acquisition whith the appropriate IMAQ function.
Be sure also that your width+left doesn't exceed sensor width and height+top doesn't exceed sensor height
Regards
04-29-2011 08:34 AM
Hi,
I will try that one.
Thanks a lot,
Regards,
David
08-03-2011 02:07 PM
Hi toto26,may I ask you a question?
I am using the camera file generator to set up a Basler camera 2x2048 pixel
My question is: in the camera file generator >>setting>>camera, is it possible to set the maximum width greater than the actual camera size? say, set 4096 in my case? if yes, what does the software do to display the 4096 pixels?
The reason I ask is, I am using this 2by2048 camera to take a spectrum, but I saw two identical spectrum in the 1st half (0 to1023) and 2nd half (1024 to 2047).
So I was thinking if the camera has in fact 1024 pixels and the software is doing some "copy" and "paste" to fulfill the requested size.
Thank you so much!
Mufei
08-17-2011 04:30 AM
Hallo,
If I understood your question correctly you can do that. I foud it uit that our software could handle the image size with 16 bits, 4872x3248 pixels (~30MBs). That means that you need more than 30MBs of contiguous memory and it might work better on a Vista or Windows 7.
To be sure I will contact the VS about your question but before that I need more information about what you exactly doing en need.
Regards,
08-17-2011 04:51 AM
I found another source about increasing the image size. He mentioned that you have to make sure the offset, height and width settings are configured in MAX for your image.
After that you need to open the camera file in notepad and change the
MaxImageSize setting to your image size. This may work for you.
Let me know how this turns out!