PXI

cancel
Showing results for 
Search instead for 
Did you mean: 

Setting Camera Attributes through the PCI-1428 using MATLAB

Hi,
 
I am trying to acquire an image through MATLAB's Image Acquisition Toolbox using a PULNIX camera connected to a National Instruments PCI-1428 Frame Grabber Board.  I have been successfull in obtaining an image; however I would like to also set some specific camera attributes for taking the image (exposure time, gain, etc) which I am unable to do.  I can view and set camera attributes through the National Instruments Measurement and Automation Software; however, when trying to set any 'device specific properties' within MATLAB's Image Acquisition Toolbox I am only getting what I believe are settings for the Frame Grabber board.
 
The specifications of my hardware, software and drivers are as follows:
 
Frame Grabber Board: National Instruments PCI-1428
Camera: PULNIX 1400CL
MATLAB Version: 2008a
MATLAB Image Acquisition Toolbox Version: 3.1
NI-IMAQ version: 4.0
 
The 'device specific properties' I obtain when using the 'get(getselectedsource(object))' command in MATLAB are as follows:
 
General Settings:
    Parent = [1x1 videoinput]
    Selected = on
    SourceName = Channel 0
    Tag =
    Type = videosource
  Device Specific Properties:
    AcquisitionDoneDriveLine = none
    AcquisitionDoneDrivePolarity = activeHigh
    AcquisitionInProgressDriveLine = none
    AcquisitionInProgressDrivePolarity = activeHigh
    FrameDoneDriveLine = none
    FrameDoneDrivePolarity = activeHigh
    FrameStartDriveLine = none
    FrameStartDrivePolarity = activeHigh
    HSyncDriveLine = none
    HSyncDrivePolarity = activeHigh
    VSyncDriveLine = none
    VSyncDrivePolarity = activeHigh
 
Can I somehow set camera attributes from MATLAB? (Specifically exposure time and gain)
 
Or, is there a way to setup my configuration within the National Instruments Measurement & Automation Software and then export this configuration to MATLAB?
 
I know this may not be a National Instruments issue but any help or redirection would be appreciated.
 
Many thanks,
 
Tom
0 Kudos
Message 1 of 2
(3,070 Views)
Duplicate Post. Please follow the thread on the machine vision forum:

Setting Camera Attributes in MATLAB using the PCI-1428 Frame Grabber
http://forums.ni.com/ni/board/message?board.id=200&message.id=18041&jump=true#M18041

~Nate
0 Kudos
Message 2 of 2
(3,049 Views)