Main Content

executeCommand

Execute command on GigE Vision camera

Description

example

executeCommand(g, 'commandname') executes the specified command for the GigE Vision® camera g, where g is the object created using the gigecam function, and 'commandname' is the name of the command to execute.

Use the commands function to get the list of available commands for your camera.

Examples

collapse all

Use executeCommand to execute any of the commands found by the commands function, which tells you what commands are available for your camera to use.

Use the gigecamlist function to ensure that MATLAB® is discovering your camera.

gigecamlist
ans = 

	Model              Manufacturer           IPAddress       SerialNumber
  ____________________   ___________________   _______________    ______________

  'MV1-D1312-80-G2-12'   'Photonofocus AG'     '169.254.192.165'  '022600017445'

Use the gigecam function to create the object and connect it to the camera.

g = gigecam

Get the list of supported commands from the camera. You can click Show Commands in the property list that is displayed when you create the object, or you can use the function:

commands(g)

Execute a command, such as setting a calibration correction.

executeCommand(g, 'Correction_CalibrateGrey');

Input Arguments

collapse all

Name of command you want to execute on your GigE Vision camera, specified as a character vector. Use the commands function to get the list of available commands for your camera. Then use executeCommand to execute any of the available commands.

Example: executeCommand(g, 'AutoFocus')

Data Types: char | string

Version History

Introduced in R2014b