COM API

The Keysight N7620B Signal Studio for Pulse Building software provides an Application Programming Interface to its Component Object Model, or COM API. This API, known as COM Callable Wrapper (CCW), is automatically generated from N7620B .NET API during installation.

For help on classes, enumerations, methods, properties and events, please refer to .NET API help content.

You can find COM API example programs (for Visual Basic 6.0 users) in:

Windows 7

C:\Users\Public\Public Documents\Keysight\Pulse Building\Samples\VB6

Windows XP

C:\Documents and Settings\All Users\Keysight\Pulse Building\Samples\VB6

Example MatLab Script

The following example shows the use of the N7620B ProgID (CCWAPI.AgtPBProject) in a MatLab script.

1

project = actxserver('CCWAPI.AgtPBProject')

%create the project

2

invoke(project)

%display all methods

3

invoke(project, 'NewProject','c:\mine')

%create new project

4

pulselib = get(project,'PulseLibrary')

%get pulse library

5

invoke(pulselib)

%display all methods

6

invoke(pulselib,'CreateNewPulse','mine')

%create a pulse with default values

7

invoke(project,'SaveProject')

%save project

8

release(project)

%release handles

9

release(pulselib)