This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
resources:tools-software:linux-software:libiio:clients:matlab_simulink [02 Dec 2015 16:38] – [Downloads] Di Pu | resources:tools-software:linux-software:libiio:clients:matlab_simulink [05 Feb 2021 15:02] (current) – [Next Generation System Objects] Michael Hennerich | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== IIO System Object ====== | ====== IIO System Object ====== | ||
- | The **IIO System Object** is based on the [[http:// | + | <note warning> |
+ | |||
+ | The **IIO System Object** is based on the [[mw>/help/matlab/matlab_prog/ | ||
The **IIO System Object** is available in both MATLAB and Simulink: | The **IIO System Object** is available in both MATLAB and Simulink: | ||
* By calling it from a MATLAB script, it can be used for HIL simulation of [[mw> | * By calling it from a MATLAB script, it can be used for HIL simulation of [[mw> | ||
- | * By incorporating it into a [[http:// | + | * By incorporating it into a [[mw>help/ |
The IIO System Object is built upon the [[/ | The IIO System Object is built upon the [[/ | ||
Line 19: | Line 21: | ||
The configuration file for a device has the .cfg extension and the name must match the device name set in the block' | The configuration file for a device has the .cfg extension and the name must match the device name set in the block' | ||
- | * **data_in_device** - name of the Linux driver | + | * **data_in_device** - name of the Linux driver used for sending data to the device |
- | * **data_out_device** - name of the Linux driver | + | * **data_out_device** - name of the Linux driver used for reading data from the device |
- | * **ctrl_device ** - name of the Linux driver | + | * **ctrl_device ** - name of the Linux driver used for controlling and monitoring the device |
* **channel** - defines a control/ | * **channel** - defines a control/ | ||
* //channel name// - represents the name of the channel to be displayed on the corresponding Simulink block port | * //channel name// - represents the name of the channel to be displayed on the corresponding Simulink block port | ||
Line 94: | Line 96: | ||
* [[https:// | * [[https:// | ||
* [[https:// | * [[https:// | ||
- | * [[https:// | + | * [[https:// |
</ | </ | ||
Line 105: | Line 107: | ||
Target side: | Target side: | ||
- | - Get the latest libiio library by following the [[http:// | + | - Get the latest libiio library by following the [[/ |
PC side: | PC side: | ||
Line 112: | Line 114: | ||
- If used in MATLAB: Assign the IP address of the target to your object. | - If used in MATLAB: Assign the IP address of the target to your object. | ||
- If used in Simulink: Open the Simulink block and type the IP address of the target in the block. Please note even if the IP address in the System objects property window seems correct, it is a good idea to edit it and click ' | - If used in Simulink: Open the Simulink block and type the IP address of the target in the block. Please note even if the IP address in the System objects property window seems correct, it is a good idea to edit it and click ' | ||
+ | |||
+ | ====== Next Generation System Objects ====== | ||
+ | |||
+ | Starting with MATLAB R2018b, ADI is transitioning to a new system object infrastructure based on collaboration with MathWorks Inc. When installing the [[resources: |