主要内容

selectChannel

Specify channel for function generator output

    Description

    selectChannel(fginstr,ChanName) specifies the channel name from which the function generator produces its output waveform.

    example

    Examples

    collapse all

    Load an arbitrary waveform into a Quick Control function generator then enable and disable its output on a specified channel.

    fginstr = fgen('TCPIP0::172.28.0.0::inst0::INSTR','tkafg3k');
    selectChannel(fginstr,'1');
    f.Waveform = 'Arb';
    downloadWaveform(fginstr,waveformArray);
    enableOutput(fginstr)
    %    ⋮
    % Allow generator to operate until no longer needed.
    %    ⋮
    disableOutput(fginstr)

    Input Arguments

    collapse all

    Quick Control function generator instrument, specified as an FGen object.

    Example: fginstr = fgen()

    Data Types: object

    Channel name, specified as a string or character vector. Valid names are available in the FGen object ChannelNames property.

    Example: "1"

    Data Types: char | string

    Version History

    Introduced in R2012a