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 static extern void SetWaveform(out Int16 Data, int DataLength, int

arbitrary);

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 static extern void SetLevel(double lvl);


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 static extern void SetOutputAttenuation(int attn);


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 static extern void SetOutputOnOff(int OnOff);

- 12 -