Main Content

release

R2026b

Class: dlhdl.Target
Namespace: dlhdl

Release the connection to the target device

Syntax

release(targetObject)

Description

release(targetObject) releases the connection to the target board.

Input Arguments

expand all

Instance of the target object, specified as a dlhdl.Target object.

Examples

expand all

  1. Create a dlhdl.Target object that has an Ethernet interface and SSH connection.

    hTarget = dlhdl.Target('Xilinx','Interface','Ethernet','IPAddress','192.168.1.101');
  2. Create a dlhdl.Workflow object and deploy the object to the target board.

    net = resnet18;
    hW = dlhdl.Workflow('Network',net,'Bitstream','zcu102_single', 'Target', hTarget);
    hW.deploy;
  3. Obtain a prediction.

    Use this image to run the code:

    % Load input images and resize them according to the network specifications
    image = imread('zebra.jpeg');
    inputImg = imresize(image, [224, 224]);
    imshow(inputImg);
    % Predict the outcome and optionally profile the results to measure performance.
    [prediction, speed] = hW.predict(single(inputImg), 'Profile', 'on' );
    
  4. Release the connection.

    hTarget.release;

Version History

Introduced in R2020b