User`s guide
From Video Device
19-3
The From Video Device block supports the use of model referencing. This feature lets
your model include other Simulink models as modular components.
For more information on these features, see the Simulink documentation.
The From Video Device block supports the use of code generation along with the
packNGo function to group required source code and dependent shared libraries. See the
next section.
Note: For an in-depth example of using this block, see “Saving Video Data to a File” on
page 9-6.
Code Generation
The From Video Device block supports generating code from the block. This enables
models containing the From Video Device block to run successfully in Accelerator, Rapid
Accelerator, and Deployed modes.
Code Generation with the Simulink Coder
You can use the Image Acquisition Toolbox, Simulink Coder, and Embedded Coder
®
products together to generate code (on the host end) that you can use to implement
your model for a practical application. For more information on code generation, see the
Simulink Coder documentation.
Note: If you are using a GigE Vision camera: you do not need to install GenICam to use
the GigE adaptor, because it is now included in the installation of the toolbox. However,
if you are using the From Video Device block and doing code generation, you would need
to install GenICam to run the generated application outside of MATLAB.
Shared Library Dependencies
The From Video Device block generates code with limited portability. The block uses
precompiled shared libraries, such as DLLs, to support I/O for specific types of devices.
The Simulink Coder software provides functions to help you set up and manage the build