Measurement Computing PCI-CTR05 Counter FM & ARM

PCI-CTR05 Counter FM & ARM block (not recommended)


Simulink® Real-Time™ Library of Drivers No Longer Recommended for Use


The PCI-CTR05 has one AM9513A chip with 5 counters.

The PCI-CTR05 FM & ARM driver programs the AM9513A for FM (Frequency Modulation) signal generation (a square wave with fixed duty cycle and variable frequency). Additionally the driver allows to arm and disarm the counter by the second block input. For the corresponding counter channel, the PWM signal is output at the pin named OUT.

Scaling Input to Output

I/O Module Output

Block Input Data Type



Variable frequency: Double
Arm: Double

<0.5 disarmed
≥0.5 armed

Block Parameters


From the list, choose 1, 2, 3, 4, 5, 6, 7, 8, 9, or 10 to select which counter is used with this driver block. One block is required for each counter used.

Frequency base

From the list, choose F1=5MHz, F2=500kHz, F3=50kHz, F4=5kHz, or F5=500Hz to set the base frequency.

Output duty cycle

Enter a value between 0 and 1 to set the duty cycle of the square wave. The Duty Cycle is held fixed during execution of the real-time application.

Level sequence of square wave

From the list, choose either high-low or low-high:

  • If you choose high-low, the square wave period starts with the TTL high part followed by the TTL low part.

  • If you choose low-high, the square wave period starts with the TTL low part followed by the TTL high part.

In either case, the Output duty cycle defined in the setting above define the duration of the TTL high part.

Level when disarmed

From the list, choose either high or low. The counter is automatically disarmed when the real-time application is not running. If the application is running, the second input port controls whether the counter is armed or disarmed. This parameter sets the TTL level when the counter is disarmed.

Sample time

Enter the base sample time or a multiple of the base sample time. The sample time indicates the update rate of registration on the input (Duty Cycle)

PCI slot (-1:autosearch)

If only one board of this type is in the target computer, enter -1 to locate the board.

If two or more boards of this type are in the target computer, enter the bus number and the PCI slot number of the board associated with this driver block. Use the format [BusNumber,SlotNumber].

To determine the bus number and the PCI slot number, type:

tg = slrt;
getPCIInfo(tg, 'installed')

Was this topic helpful?