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

Page 12: Setoutputattenuation, Setoutputonoff

Advertising
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.

void __declspec(dllimport) __stdcall SetWaveform(short *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.

void __declspec(dllimport) __stdcall 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.

void __declspec(dllimport) __stdcall 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.

void __declspec(dllimport) __stdcall SetOutputOnOff(int OnOff);

- 12 -

Advertising