Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

Changing image size question

Hi!

I'm writing an imaging VI for Silicon Imaging SI-1300 CMOS camera (CameraLink) in LabView 7.0. I have PCI-1428 board and I use serial port communication to modify camera settings. In particular I adjust the ROI parameters by programminng registers of the camera (row start/column start/frame width/frame height).

Here is my question: what is a proper way to match the size for image that displays the acquired image with ROI size that I programmed? I try to do this by writting frame width/frame height values to properties nodes "acquisition window height/width" wired to IMAQ Configure List VI, but I'm getting "Error -1074397150 occurred at IMAQ Copy Acquired Buffer.vi" when I'm changing frame width/frame height parameters via COM port.

Also, is there any relevant application note or other document I can look?

Thank you!

Pavel
0 Kudos
Message 1 of 6
(4,380 Views)
Additional information for troubleshooting: SI-1300m camera has 1280H x 1024W maximum image size. However I can get reliable image acquisition only if the image heigth < 740 pixels. Once image heigth is more than 740 I'm getting an error "Did not recieved all video data within timeout period". Also I'm getting this error if image heigh is smaller that 740, but top offset shifts is below 740 pixels. The strange thing is that the camera works fine with other non-NI CameraLink board. Really need some advice. Thanks.

Pavel
0 Kudos
Message 2 of 6
(4,370 Views)
Hi Pavel,

When you have adjusted your settings for the camera and you acquire the image, you should have no problem displaying the results. If you are in Labview, the image should be acquired into a buffer of appropriate size. It is possible that I am misunderstanding, but the Labview buffer should be sized to the amount of pixels incoming.

A basic example of how to acquire an image can be found at:

..\Program Files\National Instruments\LabVIEW\examples\IMAQ\IMAQ High Level.llb\HL Grab.vi

If you are trying to resize an image you have already acquired, I would use the IMAQ extract VI, found on the functions palette at:
NI Measurements > Vision > Vision Utilities > Image Manipulation > IMAQ Extract


Hope this helps,

Robert
0 Kudos
Message 3 of 6
(4,335 Views)

quick question:  were you able to build a functioning icd camera file for the silicon imaging 1300M with 1428 board?  if so,  would you be willing to share with me?

thanks in advance.

steve

0 Kudos
Message 4 of 6
(4,134 Views)
were you able to create an icd files for si1300m?  if so,  can you share information about this?

thanks in advance,

s
0 Kudos
Message 5 of 6
(4,120 Views)
 
Hey Steve,
 
There is a great utility called the NI Camera File Generator that helps you create a camera file for your specific camera. This utility is a free download and it helps simplify the camera file generating process. Once you have the camera file generator installed, you can start from scratch or you can open an existing camera file and alter it, such as the camera file for the Silicon Imaging SI 3170M that can be found on the Industrial Camera Advisor. As long as you have the camera manual (which can be found on Silicon Imaging's website), you can add all the different attributes and features of the camera to your custom camera file. This is one option that you have. Another option is you can request a camera file from NI's Vision R&D by going to the Industrial Camera Advisor page, and Option 4 allows you to request a camera file be created for your specific camera. They will either accept or deny your request, but they will e-mail you with their decision. One more option that you have is that you can contact Silicon Imaging and see if they either have a camera file for your camera or if they would consider creating one for that camera. They actually provided the camera file for the 3170M so they might have one for the 1300M.
 
I hope this helps. Please let me know if there is anything else I can help with.
 
Regards,
DJ L.
0 Kudos
Message 6 of 6
(4,097 Views)