This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

National Instruments PXI-6040E Pulse Generation

PXI-6040E Pulse Generation block


Simulink® Real-Time™ Library for National Instruments®


The input to the block is a two-element vector. The first element is the number of counts (of the 20 MHz source clock) that the counter maintains at a low level. The second element is the number of clock ticks for a high level. For example, to generate a pulse train at 1 kHz with 25% low and 75% high, use the vector

[5000 15000]

Block Parameters


From the list, choose Counter 0, Counter 1, or Both to select the counter(s) to be used with this driver block. In each case, one block is required for each physical board.

Sample time

Enter the base sample time or a multiple of the base sample time (-1 means sample time is inherited).

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')

See Also

External Websites

Was this topic helpful?