:html
:Revision=2
<<
128.147
PSup-Object|PSup
--
The IP-Object PSup sets the supply voltage of the integrated power supply. The power supply is controlled by the DAC-channel 3 of the ME3000 Multifunction Card.

The maximum voltage (which is produced if the DAC voltage is +10V) must be specified correctly in the basic setup.
>>

<<
128.147.1
Functions of the PSup-Object|Functions
--
>>
<<
128.147.1.1
PSup.Get|Get
--
<!DEF>
function <!TW>PSup.Get : real;
<!TXT>
Returns the currently set value of the supply voltage.
>>
<<
128.147.1.2
PSup.Max|Max
--
<!DEF>
function <!TW>PSup.Max : real;
<!TXT>
Returns the maximum value which can be set for the supply voltage.
>>

<<
128.147.2
Procedures of the PSup-Object|Procedures
--
>>

<<
128.147.2.1
PSup.Set|Set
--
<!DEF>
procedure <!TW>PSup.Set (rVolt : real);
<!TXT>
Sets the supply voltage to <!PW>rVolt.

For the conversion, the basic setup value is used.

If the given voltage if below 0 or above the maximum possible voltage, the voltage will be set to 0 or the maximum voltage resp.
>>
<<
128.147.3
Calibration
--
The Power Supply calibration data is managed by the Calibration IP object.

The system name of the power supply in the calibration system is <!SW>PSUP 

Sine the power supply is controlled by channel 3 of the ME3000, thsi channel should be calibrated first.

The gain calibrationvalue of the DAC channel 3 of the ME3000 should be set to 1. Gain calibration is then done only by the power supply.

The software calibration of an DAC is based on two values:

<ul indent="15">
<li><b>Offset</b><br>
Value on the output terminal of the supply, when it is set to 0V<br>
</li>
<li><b>Gain</b><br>
Relation between the value on the output terminal of the (offset corrected) supply and the set point of the supply
</li></ul>

The calculation of the corrected set point of the supply uses this formula:
<!STBL>
<!>U<sub>DAW</sub> = (U<sub>Set</sub> - <!RW>Offset) * <!RW>Gain<!>
<!ETBL>

Way of calibration:
<!STBL>
<!>1.<!>ME3000, calibrate DAC 3<!>&nbsp;<!>
<!>2.<!>Reset calibration values<!><!RW>>Calibration.Off <tt>('PSup');</tt><!> 
<!>3.<!>Set supply to 0V<!><!RW>Psup.Set<tt> (0);</tt><!>
<!>4.<!>Measure voltage on terminals<!><tt>rMeas:=</tt><!RW>IEC.GetValue<tt> ('Calibrator', -9999)</tt><!>
<!>5.<!>Set this value as calibration offset<!><!RW>Calibration.Set <tt>('PSup', 'Offset', 0, rMeas);</tt><!>
<!>6.<!>Set supply to a value close to the end of the output range<!><!RW>PSup.Set<tt> (17);</tt><br>
<!>7.<!>Measure voltage on terminals<!><tt>rMeas:=</tt><!RW>IEC.GetValue<tt> ('Calibrator', -9999)</tt><!>
<!>8.<!>Calculate and set gain<!><!RW>Calibration.Set <tt>('PSup', 'Gain', 0, rSet/rMeas)</tt><!>
<!ETBL> 

For the commands <!RW>Calibration.Set and <!RW>Calibration.Get the following names and channels are defined:
<!STBL>
<!+>ValueName<!+>Chanalnumber(s)<!+>Description<!>
<!c>Offset<!c>0<!>Offset correction value<!>
<!c>Gain<!c>0<!>Gain correction value<!>
<!ETBL>
>>

