:html
<<
128.187
FrequencyCounter-Object|FrequencyCounter
--
The IP-Object <!RW>
The frequency counter is used for frequency and counter measurements in the mcd test system.
advice: This module can only used with mcd io card.

Necessary constants in adressfiles

UMSBusses.dat:
// BusName	Type     	Offset  Data
UMSBus1  	UMSviaMcdPio	0       (Base=$310)


UMSCards.dat:
//Cardname    Adr (1..32)	Cardtype	Data (DataBitMask)		
FC1	      UMSBus1.32	FRQCOUNTER	(BackCh=$08)	


>>

<<
128.187.1
functions of the FrequencyCounter-Objects|functions
--
>>

<<
128.187.1.1
FrqCounter.Frequency|Frequency
--
<!DEF>
function <!TW>FrqCounter.Frequency (aFRQ : address; rCh : real; rTeiler : real; rTimeout : real) : real;
<!TXT>
Measured will be the frequency value from the frqCounter card. 
The channel will be selected by the rCh parameter.
The parameter rTeiler defines the internal splitter and effects measure time and accuracy.

<!PW>aFRQ : Cardname from adressfile UMSCards.dat (see above)

<!PW>rCh range : 1..4.

<!PW>rTeiler range : 1..32.

<!PW>rTimeout range : 0..32000.


Example:
<!CODE>
var rFrq : real;

begin

// splitter factor 21 for 1 MHz Signal
rFrq := FrqCounter.Frequency (fc1, 4 ,21,1000);

end;

<!TXT>
</li>
</ul>

>>


<<
128.187.1.2
FrqCounter.MeasHighTime|MeasHighTime
--
<!DEF>
function <!TW>FrqCounter.MeasHighTime (aFRQ : address; rCh : real; rTimeout : real) : real;
<!TXT>
Measured will the hightime from the signal in (usec) on frqCounter card. 
The channel will be set by rCh.

<!PW>aFRQ : cardname from Addressfile UMSCards.dat (siehe above)

<!PW>rCh : 1..4.

<!PW>rTimeout : 0..32000.


Example:
<!CODE>
var rHT : real;

begin

 rHT := FrqCounter.MeasHighTime (fc1, 4 ,1000);

end;

<!TXT>
</li>
</ul>

>>


<<
128.187.1.2
FrqCounter.MeasLowTime|MeasLowTime
--
<!DEF>
function <!TW>FrqCounter.MeasLowTime (aFRQ : address; rCh : real; rTimeout : real) : real;
<!TXT>

Measured will the lowtime from the signal in (usec) on frqCounter card. 
The channel will be set by rCh.

<!PW>aFRQ : cardname from Addressfile UMSCards.dat (siehe above)

<!PW>rCh : 1..4.

<!PW>rTimeout:  0..32000.


example:
<!CODE>
var rLT : real;

begin

 rLT := FrqCounter.MeasLowTime (fc1, 4 ,1000);

end;

<!TXT>
</li>
</ul>

>>


   
<<
128.187.1.3
FrqCounter.Counter.Get|Counter.Get
--
<!DEF>
function <!TW>FrqCounter.Counter.Get (aFRQ : address) : real;
<!TXT>
Returned will the Counter register. 


<!PW>aFRQ : cardname from addressfile UMSCards.dat (see above)


example:
<!CODE>
var rLM : real;

begin
 
 rLM := FrqCounter.Counter.Get (fc1);

end;

<!TXT>
</li>
</ul>

>>



<<
128.187.2
Procedures of frquency counter|Procedures
--
>>


<<
128.187.2.1
FrqCounter.Counter.Start|Counter.Start
--
<!DEF>
 <!TW>FrqCounter.Counter.Start (aFRQ : address;  rCh : real);
<!TXT>
The counter will be started. 



<!PW>aFRQ : cardname from Addressfile UMSCards.dat (siehe above)

<!PW>rCh : 1..4.


example:
<!CODE>


begin
 
 FrqCounter.Counter.Start(fc1,4);

end;

<!TXT>
</li>
</ul>

>>

