How to configure a hardware-triggered acquisition from a GigE Vision camera?

How can I configure a hardware-triggered acquisition from a GigE Vision camera?

NOTE:-

Matlabsolutions.com provide latest MatLab Homework Help,MatLab Assignment Help for students, engineers and researchers in Multiple Branches like ECE, EEE, CSE, Mechanical, Civil with 100% output.Matlab Code for B.E, B.Tech,M.E,M.Tech, Ph.D. Scholars with 100% privacy guaranteed. Get MATLAB projects with source code for your learning and research.

Image Acquisition Toolbox provides functionality for hardware-triggered acquisition from GigE Vision cameras. This is useful in applications where camera acquisition needs to be synchronized with another device (such as an instrument or another camera) by means of an external triggering signal. Other applications include controlling the acquisition frame rate with an external signal, or acquiring a multiple-exposure image sequence for high dynamic range (HDR) imaging.

This example shows how to use the videoinput gige interface to configure a camera acquisition to allow external triggering-signal control over the frame rate and over the exposure time.

Requirements and hardware setup

  • MATLAB R2016a or later, Image Acquisition Toolbox, and GigE Vision hardware support package
  • GigE Vision compliant camera with hardware triggering capability; this example uses a Basler acA1300.
  • Gigabit Ethernet adapter, which provides a direct camera network connection, configured as described in the “GigE Vision Quick Start Configuration Guide”
  • External triggering setup, which can provide a triggering signal to the camera trigger line input. For example, a DAQ device with digital output, an Arduino board, or a function generator instrument can be used to output a custom triggering signal. Refer to the camera usermanual for triggering signal voltage level / current requirements and for correct signal connections to the camera input lines.

Connect to camera Create a videoinput with the desired video format and get access to the camera device specific properties. When using the videoinput gige adaptor, the camera GenICam features and parameter values are represented as videoinput source properties.

v = videoinput('gige', 1, 'Mono8');
s = v.Source;
% Determine optimum streaming parameters as described in the
% "GigE Vision Quick Start Configuration Guide"
% s.PacketSize =
% s.PacketDelay =

Immediate acquisition By default, an immediate acquisition takes place when videoinput start function is executed, if a hardware triggering configuration is not explicitly specified.

For simplicity, this example performs an acquisition of a finite number of frames, and stores them in MATLAB base workspace.

% Set exposure time and mode
s.ExposureMode = 'Timed';
s.ExposureTimeAbs = 4000;
% The default videoinput trigger type is 'immediate', which is explicitly
% configured here for clarity.
triggerconfig(v, 'immediate');
% Specify number of frames to acquire
v.FramesPerTrigger = 30;
v.TriggerRepeat = 0;
% Start continuous buffered acquisition and wait for acquisition to complete
start(v);
wait(v, 10);
% Transfer acquired frames and timestamps from acquisition input buffer
% into workspace
[data, ts] = getdata(v, v.FramesAvailable);

Display acquired frames and plot acquisition timestamps.

figure;
imaqmontage(data)
figure;
plot(ts, '.')
xlabel('Frame index');
ylabel('Timestamp (s)');

FrameStart trigger Most GigE Vision cameras support a FrameStart hardware trigger mode, which is used to configure the camera to acquire a frame for each rising edge (or falling edge) signal applied to a camera line input.

SEE COMPLETE ANSWER CLICK THE LINK

--

--

--

Simple! That is me, a simple person. I am passionate about knowledge and reading. That’s why I have decided to write and share a bit of my life and thoughts to.

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Mobile App Development Cost in India

Dropbox zipfile with csv files to Pandas

Be your own customer no. 1 helps improving your product — on the example of e2eml

Top 6 need to know GitHub Terminal Commands

API and ISV with Low code development

Scala Days København

Getting started Ruby on Rails for Mac

Understanding args And kwargs In Python

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Technical Source

Technical Source

Simple! That is me, a simple person. I am passionate about knowledge and reading. That’s why I have decided to write and share a bit of my life and thoughts to.

More from Medium

Why do I receive the error “GETDATA timed out before FRAMES

[Tutorial] Control ordinary differential equations with deep reinforcement learning and DeepMind’s…

Data augmentation for neural network training — example for printed characters recognition

Why Python for Fintech Companies?