DGN Driver
2-82
■
printInt.
Writes the stream data buffers to the trace buffer in
integer format.
Tconf Name: device
Type: EnumString
Options:
"user", "sine", "random", "constant", "printHex",
"printInt"
Example:
myDgn.device = "user";
❏
Use default parameters
. Set this property to true if you want to use
the default parameters for the Device category you selected.
Tconf Name: useDefaultParam
Type: Bool
Example:
myDgn.useDefaultParam = false;
❏
Device ID
. This property is set automatically when you select a
Device category.
Tconf Name: deviceId
Type: Arg
Example:
myDgn.deviceId = prog.extern("DGN_USER",
"asm");
❏
Constant value
. The constant value to be generated if the Device
category is constant.
Tconf Name: constant
Type: Numeric
Example:
myDgn.constant = 1;
❏
Seed value
. The initial seed value used by an internal pseudo-
random number generator if the Device category is random. Used to
produce a uniformly distributed sequence of numbers ranging
between Lower limit and Upper limit.
Tconf Name: seedValue
Type: Int32
Example:
myDgn.seedValue = 1;
❏
Lower limit
. The lowest value to be generated if the Device category
is random.
Tconf Name: lowerLimit
Type: Numeric
Example:
myDgn.lowerLimit = -32767;
❏
Upper limit
. The highest value to be generated if the Device
category is random.
Tconf Name: upperLimit
Type: Numeric
Example:
myDgn.upperLimit = 32767;
❏
Gain
. The amplitude scaling factor of the generated sine wave if the
Device category is sine. This factor is applied to each data point. To
improve performance, the sine wave magnitude (maximum and
minimum) value is approximated to the nearest power of two. This is
done by computing a shift value by which each entry in the table is