Use this parameter to define the number of levels in a data pattern. For
binary patterns use 2, for three-level data (binary + electrical idle) use 3.
The behavior of this command/query is slightly different in internal and
external pattern mode.
In internal pattern mode (:DIG:SOUR INT), the command form of this
parameter is used to set the number of levels for a pattern or a bitshape that
will be programmed subsequently (using :DIG:DATA or :DIG:TRAN
resp.).
The query form always returns the number of levels of the currently selected
pattern – which is not necessarily identical with the number of levels that
was previously set using the :DIG:NLEV command. (E.g. If this parameter
is set to 3, then a pattern with 2 levels is selected, the query will return 2).
In external pattern mode (:DIG:SOUR EXT), the value of this parameter
is used to distinguish between a binary level or 3 levels of external input
signal. The query returns the previously programmed value. Depending on
the value of this parameter, the external thresholds have to be programmed
accordingly (see :DIG:EXT:THRE)