Associating a Waveform with an FEI Device
Two processes can be used to associate a waveform with an FrontEnd Interfaces (FEI) device:
- Write code that creates an allocation and creates the connection between the allocated device and the waveform or component that is to receive or produce the data.
- Create a usesdevice relationship artifact in the waveform.
The benefit of creating a usesdevice relationship artifact is that the deployment of the waveform can be tied to the availability of hardware resources. If the usesdevice relationship cannot be established at deployment time, then the waveform deployment will fail. Also, when the waveform is torn down, the allocation created for this deployment is undone automatically.
To create a usesdevice relationship artifact on the waveform:
Create a waveform
Find and place the usesdevice relationship artifact, which is located under the Advanced tab:
When the artifact is dragged onto the canvas, a menu of target devices is shown. The devices shown are the result of a scan of
$SDRROOT
.Either select the desired device or select the Generic FrontEnd device, which does not have any ports (so a connection cannot be defined), but it allows an allocation to be associated with the deployment.
After selecting a device, a series of wizards are displayed. In the wizards, define the usesdevice relationship ID to use and the parameters for the allocation itself.
The usesdevice relationship ID is the identifier used in the waveform description to reference the usesdevice relationship artifact. It is an architectural detail that is not relevant to the developer, so use the default value given.
If the device has ports, connect them to the appropriate component: