commands
List available commands for GigE Vision or GenICam compliant camera
Description
Examples
View Available Commands for GigE Vision Camera
Use the commands
function for a list of the available
commands for your camera.
Discover your cameras with gigecamlist
.
gigecamlist
ans = Model Manufacturer IPAddress SerialNumber ____________________ ___________________ _______________ ______________ 'MV1-D1312-80-G2-12' 'Photonofocus AG' '169.254.192.165' '022600017445'
Create a camera object and connect to the camera.
g = gigecam
g = 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.
Display the supported commands from the camera. You can click Show
Commands
in the command window output, or you can use the
commands
function.
commands(g)
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_Update
Use the executeCommand
function to execute any of these
commands.
View Available Commands for GenICam GenTL Camera
Connect to a GenICam™ GenTL camera, and create a video source object for it.
vid = videoinput("gentl");
src = getselectedsource(vid);
To get a list of supported commands for the camera, click Show
Commands
in the command output, or use the commands
function.
cmds = commands(src)
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 any of these commands.
Input Arguments
vobj
— Camera object or video source object
gigecam
object | videosource
object
Camera or video source, specified as:
A
gigecam
object representing a GigE Vision® camera.A
videosource
object, derived from avideoinput
object created for a GenICam compliant camera using the'gige'
or'gentl'
adaptor.
Data Types: gigecam
| videosource
Output Arguments
cmds
— Available commands for the camera or video source
string array | cell array of char
Available commands returned as:
A cell array of character vectors for a
gigecam
object input.A string array for a
videosource
object input.
The content of the output depends on the commands that are supported by your specific hardware.
Version History
Introduced in R2014b
See Also
gigecamlist
| gigecam
| videoinput
| getselectedsource
| snapshot
| executeCommand
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.
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- 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)