About Analyzer Events

OnChannelEvent


Description

Triggered by a channel event.

 VB Syntax

Sub app_OnChannelEvent(ByVal eventID As Variant, ByVal chanNum As Variant)

Variable

(Type) - Description

app

An Application (object)

eventID

Code number of the event which occurred

chanNum

Channel Number of the event

Return Type

Not Applicable

Default

Not Applicable

Examples

Sub pna_OnChannelEvent(ByVal eventID As Variant, ByVal channelNumber As Variant)
  If eventID=naEventID_CHANNEL_CREATED then
MsgBox "Channel" + chanelNumber + "was created"
End If
End Sub

C++ Syntax

HRESULT OnChannelEvent(VARIANT eventID, VARIANT channelNumber)

Interface

IApplication

Selected Channel Events

1792 naEventID_CHANNEL_SWEEP_COMPLETE

1793 naEventID_CHANNEL_TRIGGER_COMPLETE

1796 naEventID_SET_CHANNEL_DIRTY

1797 naEventID_CLEAR_CHANNEL_DIRTY

1801 naEventID_ALL_SWEEPS_COMPLETED_AND_PROCESSED

1805 naEventID_CHANNEL_CREATED

1806 naEventID_CHANNEL_DELETED

1876 naEventID_NO_SOURCE_ATTEN

1879 naEventID_FREQ_OFFSET_OVERRANGE_SO_TURNED_OFF

1883 naEventID_PORT_NUMBER_OUT_OF_RANGE

See Also

Errors and the SCPIStringParser Object


Last modified:

March 2, 2007

Added channel create and delete

Nov. 6, 2006

Added events