Scilab Function
Last update : 03/11/2008

GPIB_get_power - Lecture de la puissance (dBm) sur une sonde de wattmètre.

Calling Sequence

power = GPIB_get_power(id,typ,ch)

Parameters

Description

type : Langage GPIB du wattmètre. Actuellement, 2 types d'instrutions sont pris en charge :

Wattmètre HP => type = 1

Wattmètre Anritsu => type = 2

channel : La valeur '1' correspond au canal 'A'. La valeur '2', au canal 'B'.

Examples

ch=x_choose(['A';'B'],['Choose a measurement channel';'to get mean power'])
if (ch~=0) then

      typ=1; // 1=HP
      id=10; // Adresse GPIB
      p=GPIB_get_power(id,typ,ch); // 1=A ; 2=B
      if (p~=[]) then x_message('Measured mean power : '+string(p)+' dBm'); end;

end;
  

See Also

GPIB_set_power_freq ,   GPIB_set_power_message ,  

Authors

Tibault Reveyrand - www.microwave.fr

Bibliography

Used Function