Main Content

downloadImage

Download SD card image or bitstream file

Description

例子

下载图(devAD936x,'boardName',DEVAD936XDEVICENAME将默认的SD卡图像下载到与无线电对象关联的无线电硬件读取器中的SD卡上devAD936x。通过指定无线电硬件的名称DEVAD936XDEVICENAME。董事会使用新图像重新启动。

下载图(devFMCOMMS5,'boardName',DevFMComms5DeviceName将默认的SD卡图像下载到与无线电对象关联的无线电硬件读取器中的SD卡上devFMCOMMS5。通过指定无线电硬件的名称DevFMComms5DeviceName。董事会使用新图像重新启动。

下载图(devAD936x,'boardName',DEVAD936XDEVICENAME,'IP地址',IP地址updates the default SD card image with the specified IP address and downloads the image onto the SD card inserted into the reader of the radio hardware. The board restarts with the new image. The function also updates theIP地址property of thedevAD936x无线电对象。

下载图(devAD936x,'boardName',DEVAD936XDEVICENAME,'IP地址',IP地址,,,,姓名,,,,Value使用一个或多个名称值对参数指定的其他选项。使用这些选项更改下载的SD卡图像中更新的IP地址的NetMask和网关。董事会使用新图像重新启动。该功能还更新了IP地址property of thedevAD936x无线电对象。

下载图(devFMCOMMS5,'boardName',DevFMComms5DeviceName,'IP地址',IP地址updates the default SD card image with the specified IP address and downloads the image onto the SD card inserted into the reader of the radio hardware. The board restarts with the new image. The function also updates theIP地址property of thedevFMCOMMS5无线电对象。

下载图(devFMCOMMS5,'boardName',DevFMComms5DeviceName,'IP地址',IP地址,,,,姓名,,,,Value使用一个或多个名称值对参数指定的其他选项。使用这些选项更改下载的SD卡图像中更新的IP地址的NetMask和网关。董事会使用新图像重新启动。该功能还更新了IP地址property of thedevFMCOMMS5无线电对象。

例子

下载图(___,,,,'SDCardLocation',SDCardLocation将SD卡图像下载到插入SD卡读取器的SD卡上的主机计算机上SDCardLocation。除了先前的语法描述中的任何一个输入参数外,还使用此名称值对。下载图像后,将SD卡插入指定的无线电硬件的读取器中,然后重新启动板。

下载图(___,'sdcardimage',SDCardImagedownloads a custom SD card image onto the SD card inserted into the reader of the radio hardware. Use this name-value pair in addition to the input arguments in any of the first two syntax descriptions. The board restarts with the new image.

下载图(___,'sdcardimage',SDCardImage,,,,'SDCardLocation',SDCardLocation将自定义SD卡图像下载到插入主机计算机指定的SD卡读取器中的SD卡上。下载图像后,将SD卡插入指定的无线电硬件的读取器中,然后重新启动板。除了前两个语法描述中的任何一个输入参数外,还使用这些名称值对。

下载图(___,“ fpgaimage”,fpgaimagedownloads the bitstream specified byfpgaimageonto the SD card inserted into the reader of the specified radio hardware. Use this name-value pair in addition to the input arguments in any of the first two syntax descriptions. The board restarts with the new image and the bitstream is downloaded to the radio hardware.

笔记

要将SD卡图像下载到插入无线电硬件读取器的SD卡上,必须在主机和无线电硬件之间存在以太网连接。

Examples

collapse all

Connect the radio hardware to the host over an Ethernet cable and insert an SD card into the card reader on the radio hardware. Make sure your radio hardware is configured for host-radio communication by following the steps inGuided Host-Radio Hardware Setup

为您的无线电硬件创建无线电对象。例如:

dev = sdrdev('ad936x'
dev = SDRDevAD936x with properties: IPAddress: '192.168.3.2' DeviceName: 'AD936x'

Download the default SD card image onto the SD card by using the object and the device name.

下载图像(开发,'boardName',,,,'ADI RF SOM'
## Loading SD card image. ## Rebooting board. ## Reboot complete.

Insert an SD card into the SD card reader on the host computer.

为您的无线电硬件创建无线电对象。例如:

dev = sdrdev('ad936x'
dev = SDRDevAD936x with properties: IPAddress: '192.168.3.2' DeviceName: 'AD936x'

Download the default SD card image onto the SD card by using the object, the device name, and by specifying the drive name of the SD card reader.

下载图像(开发,'boardName',,,,'ADI RF SOM',,,,'SDCardLocation',,,,'G:'
##复制到SD卡。

输入参数

collapse all

与基于AD936X的Zynq无线电硬件的接口,指定为COMM.SDRDEVAD936Xradio object. To create this object, use thesdrdev功能。

基于AD936X的名称Zynq无线电硬件,,,,specified as a character vector. Valid character vectors include:

  • 'ADI RF SOM'

  • 'ZC706 and FMCOMMS2/3/4'

  • 'ZedBoard and FMCOMMS2/3/4'

  • 'ZCU102 and FMCOMMS2/3/4'

FMCOMMS5 ZYNQ无线电硬件的接口,指定为comm.SDRDevFMCOMMS5radio object. To create this object, use thesdrdev功能。

fmComms5 Zynq无线电硬件的名称,,,,specified as'ZC706和FMCOMMS5'

IP address of the radio hardware, specified as a dotted-quad character vector.

主机上SD卡读取器的驱动名称,指定为字符向量。

Example:'SDCardLocation','Z:'

自定义SD卡图像的文件夹位置,指定为字符向量。要生成自定义SD卡图像,请参阅FPGA定位工作流程

Example:'sdcardimage','c:\ mywork \ hdl_prj \ sdr_prj \ sdcard_image'

Bitstream文件指定为'Default'or a character vector containing the extension。少量。When you specify'Default',,,,the default bitstream is downloaded onto the SD card. Otherwise, you can download a custom bitstream. To generate custom bitstreams, see步骤7.生成FPGA Bitstream和程序Zynq硬件of the hardware-software co-design workflow.

Example:'fpgaimage','c:\ mywork \ hdl_bitstreams \ system_wrapper.bit'

名称值参数

Specify optional pairs of arguments asname1 = value1,...,namen = valuen,,,,where姓名是参数名称和Valueis the corresponding value. Name-value arguments must appear after other arguments, but the order of the pairs does not matter.

在R2021a之前,请使用逗号分隔每个名称和值,并附上姓名用引号。

Example:'NetMask','/23','Gateway','192.168.2.1'指定网络接口的NetMask和网关。

网络接口的NetMask,指定为逗号分隔对'Netmask'以及使用CIDR格式的角色向量。

Example:'Netmask','/23'

网络接口的网关,指定为逗号分隔对'Gateway'和虚线Quad角色向量。

Example:“网关”,'192.168.2.1'

版本历史记录

Introduced in R2014b