Skip to Main Content Skip to Search
Product Documentation

adivdsp - Create handle object to interact with VisualDSP++ IDE

Syntax

IDE_Obj = adivdsp
IDE_Obj = adivdsp('propname1',propvalue1,'propname2',propvalue2,…,'timeout',value)
IDE_Obj = adivdsp('my_session')

IDEs

This function supports the following IDEs:

Description

If the IDE is not running, IDE_Obj = adivdsp opens the VisualDSP++ software for the most recent active session. After that, it creates an object, IDE_Obj, that references the newly opened session. If the IDE is running, adivdsp returns object IDE_Obj that connects to the active session in the IDE.

adivdsp creates an interface between MATLAB software and Analog Devices VisualDSP++ software. The first time you use adivdsp, supply a session name as an input argument (refer to the next syntax).

IDE_Obj = adivdsp('sessionname','name','procnum','number',...) returns an object handle IDE_Obj that you use to interact with a processor in the IDE from MATLAB.

Use the debug methods with this object to access memory and control the execution of the processor.

The adivdsp function interprets input arguments as object property definitions. Each property definition consists of a property name followed by the desired property value (often called a PV, or property name/property value, pair). Although you can define any adivdsp object property when you create the object, there are several important properties that you must provide during object construction. These properties must be properly delineated when you create the object. The required input arguments are as follows:

After you build the adivdsp object IDE_Obj, you can review the object property values with get, but you cannot modify the sessionname and procnum property values.

To connect to the active session in IDE, omit the sessionname property in the syntax. If you do not pass sessionname as an input argument, the object defaults to the active session in the IDE.

Use listsessions to determine the number for the desired DSP processor. If your IDE session is single processor or to connect to processor zero, you can omit the procnum property definition. If you omit the procnum argument, procnum defaults to 0 (zero-based).

IDE_Obj = adivdsp('propname1',propvalue1,'propname2',propvalue2,…
,'timeout',value)
sets the global time-out value to value in IDE_Obj. MATLAB waits for the specified time-out value to get a response from the IDE application. If the IDE does not respond within the allotted time-out period, MATLAB exits from the evaluation of this function.

If the session exists in the session list and the IDE is not already running, IDE_Obj = adivdsp('my_session') connects to my_session. In this case, MATLAB starts VisualDSP++ IDE for the session named my_session.

The following list shows some other possible cases and results of using adivdsp to construct an object that refers to my_session.

Examples

These examples demonstrate some of the operation of adivdsp.

IDE_Obj = adivdsp('sessionname','my_session','procnum',0);

returns a handle to the first DSP processor for session my_session.

IDE_Obj = adivdsp without input arguments constructs the object IDE_Obj with the default property values, returning a handle to the first DSP processor for the active session in the IDE.

IDE_Obj = adivdsp('sessionname','my_session'); returns a handle to the first DSP processor for the session my_session.

See Also

listsessions

  


Related Products & Applications

Learn more about Simulink through this collection of videos, articles, technical literature and the Getting Started with Simulink Guide.

 © 1984-2012- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS