GPIB Functions
GPIB_get_power - Lecture de la puissance (dBm) sur une sonde de wattmètre.
Sequence d'appel
GPIB_get_power(id,type,channel)
Parametres
id : Numéro de l'adresse GPIB de l'instrument visé.
id est un entier compris entre 1 et 32.
type : Langage GPIB du wattmètre. type est un
entier.
channel : Canal de la sonde de mesurante. channel est
un entier.
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'.
Exemple
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;
Voir aussi