beautypg.com

Functions which set the generation parameters, Setwaveform, Setlevel – Dataman 530 Series User Manual

Page 12: Setoutputattenuation, Setoutputonoff

background image


Development kit for DATAMAN 530

Programmer’s Guide

3.3. Functions which set the generation parameters

3.3.1. SetWaveform

Sets the shape of the waveform.

Public Declare Sub SetWaveform Lib "m530drvdk.dll" (ByRef data As

Integer, ByVal datalength As Long, ByVal arbitrary As Long)

Parameters:

data – pointer to the data

datalength – length of the data in samples

arbitrary – turns arbitrary length mode on/off. In case this mode is off, the

datalength must equal to 8192.

Return value: -

Remark: It is necessary to set frequency after setting the waveform (by using the
SetFrequency function).

3.3.2. SetLevel

Sets output level.

Public Declare Sub SetLevel Lib "m530drvdk.dll" (ByVal lvl As Double)


Parametre:

lvl – indicates the voltage between quantization levels 4095 and 2048 in volts


Return value: -

3.3.3. SetOutputAttenuation

Sets

output

attenuation to 1:1 or 1:10.

Public Declare Sub SetOutputAttenuation Lib "m530drvdk.dll" (ByVal attn As

Long)

Parameters:

attn – indicates attenuator:

OUTPUT_ATTENUATION_1 – 1:1

OUTPUT_ATTENUATION_10 – 1:10


Return value: -

3.3.4. SetOutputOnOff

Turns output on/off.

- 12 -