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 Shared Sub SetWaveform(ByRef Data As Int16, ByVal DataLength As

Integer, ByVal arbitrary As Integer)

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 Shared Sub SetLevel(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 Shared Sub SetOutputAttenuation(ByVal attn As Integer)


Parameters:

attn – indicates attenuator:

OUTPUT_ATTENUATION_1 – 1:1

OUTPUT_ATTENUATION_10 – 1:10


Return value: -

3.3.4. SetOutputOnOff

Turns output on/off.

Public Shared Sub SetOutputOnOff(ByVal OnOff As Integer)

- 12 -