executeCommand
Execute command on GigE Vision or GenICam compliant camera
Description
executeCommand(
executes the specified command on the camera represented by vobj,commandname)vobj, which
can be either a gigecam object or videosource
object.
Use the commands function to get the list of available
commands for your camera.
Examples
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 an object and connect to the
camera.
vobj = gigecam
vobj =
Display Summary for gigecam:
DeviceModelName: 'MV1-D1312-80-G2-12'
SerialNumber: '022600017445'
IPAddress: '169.254.192.165'
PixelFormat: 'Mono8'
AvailablePixelFormats: {'Mono8' 'Mono10Packed' 'Mono12Packed' 'Mono10' 'Mono12'}
Height: 1082
Width: 1312
Show Beginner, Expert, Guru properties.
Show Commands.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(vobj)
Available commands:
ADCBoardDeviceTemperature_Update
Average_Update
CameraHeadFactoryReset
CameraHeadReset
Correction_BusyUpdate
Correction_CalibrateBlack
Correction_CalibrateGrey
Correction_SaveToFlash
Counter_ImageReset
Counter_ImageUpdate
Counter_MissedBurstTriggerReset
Counter_MissedBurstTriggerUpdate
Counter_MissedTriggerReset
Counter_MissedTriggerUpdate
PLC_ts_trig_Arm
PLC_ts_trig_FIFOClear
SensorBoardDeviceTemperature_Update
SensorDeviceTemperature_UpdateExecute a command, such as setting a calibration correction.
executeCommand(vobj,"Correction_CalibrateGrey");Create a connection to a GenICam™ GenTL camera using the videoinput function, and
create an object for its video source.
vid = videoinput("gentl");
vobj = getselectedsource(vid);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(vobj)
ans =
18×1 string array
"ADCBoardDeviceTemperature_Update"
"Average_Update"
"CameraHeadFactoryReset"
"CameraHeadReset"
"Correction_BusyUpdate"
"Correction_CalibrateBlack"
"Correction_CalibrateGrey"
"Correction_SaveToFlash"
"Counter_ImageReset"
"Counter_ImageUpdate"
"Counter_MissedBurstTriggerReset"
"Counter_MissedBurstTriggerUpdate"
"Counter_MissedTriggerReset"
"Counter_MissedTriggerUpdate"
"PLC_ts_trig_Arm"
"PLC_ts_trig_FIFOClear"
"SensorBoardDeviceTemperature_Update"
"SensorDeviceTemperature_Update"Use executeCommand to execute the Correction_CalibrateGrey command.
executeCommand(vobj,"Correction_CalibrateGrey");Input Arguments
Camera or video source, specified as:
A
gigecamobject representing a GigE Vision® camera.A
videosourceobject, derived from avideoinputobject created for a GenICam compliant camera using the'gige'or'gentl'adaptor.
Data Types: gigecam | videosource
Name of command you want to execute on your camera, specified as a character vector or string.
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(vobj,"AutoFocus")
Data Types: char | string
Version History
Introduced in R2014b
See Also
gigecamlist | gigecam | videoinput | snapshot | commands
MATLAB Command
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
웹사이트 선택
번역된 콘텐츠를 보고 지역별 이벤트와 혜택을 살펴보려면 웹사이트를 선택하십시오. 현재 계신 지역에 따라 다음 웹사이트를 권장합니다:
또한 다음 목록에서 웹사이트를 선택하실 수도 있습니다.
사이트 성능 최적화 방법
최고의 사이트 성능을 위해 중국 사이트(중국어 또는 영어)를 선택하십시오. 현재 계신 지역에서는 다른 국가의 MathWorks 사이트 방문이 최적화되지 않았습니다.
미주
- América Latina (Español)
- Canada (English)
- United States (English)
유럽
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)