:Revision=1
:html
<<
128.141
NfGen - Low frequency generator|NfGen
$NoSort
--
>>

<<
128.141.1
Functions of the NfGen objec|Functions
--
No supported functions yet.
>>
<<
128.141.2
Procedures of the NfGen object|Procedures
--
>>

<<
128.141.2.1
NfGen.Setup|Setup
--
<!DEF>
procedure <!TW>NfGen.Setup (aCard : address; rFrequency, rVoltage : real);
<!TXT>
Initialises the NFGen-Card <!PW>aCard.

 <!PW>rFrequency defines the frequency of the sine wave (<!PW>rFrequency <> 0), or creates a DC signal (<!PW>rFrequency = 0).

 <!PW>rVoltage defines the effective voltage of the sine wave resp. the voltage of the DC signal.

Examples:

Sine wave 50Hz, 2V effective
<!CODE>
NfGen.Setup (NfGenCard, 50, 2);
<!TXT>

Sine wave 1kHz, 2V Peak-Peak
<!CODE>
NfGen.Setup (NfGenCard, 1000, 2/(2*math.sqrt(2)));
<!TXT>

DC-Signal -0.5V 
<!CODE>
NfGen.Setup (NfGenCard, 0, 0.5);
<!TXT>
>>

<<
128.141.2.2
NfGen.Buffer|Buffer
--
<!DEF>
procedure <!TW>NfGen.Buffer (aCard : address; rBufferOnOff : real);
<!TXT>
Switches the internal buffer of the NFGen card <!PW>aCard on or off as in <!PW>rBufferOnOff defined.
>>

<<
128.141.2.3
NfGen.Channel.Set|Channel.Set
--
<!DEF>
procedure <!TW>NfGen.Channel.Set (aCard : address; rChannelNr : real [; rAlone : real]);
<!TXT>
Switches the output channel <!PW>rChannelNr (1..16) of the NFGen card <!PW>aCard on.

If <!PW>rAlone is <!RW>TRUE(default), other channels will be switched offt. If <!PW>rAlone is <!RW>FALSE, the channel will be added to the other already switched on channels.
>>

<<
128.141.2.4
NfGen.Channel.Clr|Channel.Clr
--
<!DEF>
procedure <!TW>NfGen.Channel.Clr (aCard : address; rChannelNr : real);
<!TXT>
Switches the output channel <!PW>rChannelNr (1..16) of the NFGen card <!PW>aCard off.

If <!PW>rChannelNr is 0, all channels will be switched off.
>>

<<
128.141.2.5
NfGen.Channel.Word|Channel.Word
--
<!DEF>
procedure <!TW>NfGen.Channel.Word (aCard : address; rChannels : real);
<!TXT>
Sets the output multiplexer of NFGen card <!PW>aCard to the bit pattern given in <!PW>rChannels (1..65535).

If <!PW>rChannels is 0, this will switch off all channels.
>>


