PWM Generate block for PCI-6251, PCIe-6251, PXI-6251, and PXIe-6251 boards
Simulink® Real-Time™ Library for National Instruments
Use this block to generate variable frequency and pulse width output.
The M Series boards have two 32-bit counters that you can use to generate pulse trains.
M系列板有两个32位计数器,可用于生成脉冲序列。
Inputs are in counts of the 80 MHz reference frequency on the onboard clock.
输入以板载时钟上80 MHz参考频率的计数为单位。
H input is the number of counts that the output is high.
L input is the number of counts that the output is low.
If the H input goes to 0, the output stays low. If the L input goes to 0, the output stays high. If both are 0, the output goes low.
Initial high count
初始高计数
Enter the number of counts the output is high between the time the Simulink engine calls the mdlStart routine for this block and the first time it calls mdlOutputs.
输入从Simulink引擎为此块调用mdlStart例程到第一次调用mdlOutputs之间输出为高的计数数。
This length of time depends on the number of blocks in the model and the sorted order as determined by the Simulink software.
此时间长度取决于模型中块的数量和Simulink软件确定的排序顺序。
If you enter a value of 0, the output stays low until the first time the Simulink engine calls mdlOutputs.
如果输入的值为0,则在Simulink引擎第一次调用mdlOutputs之前,输出将保持较低水平。
Initial low count
初始低计数
Enter the number of counts the output is low between the time the Simulink engine calls the mdlStart routine for this block and the first time it calls mdlOutputs.
输入从Simulink引擎为此块调用mdlStart例程到第一次调用mdlOutputs之间输出低的计数数。
This length of time depends on the number of blocks in the model and the sorted order as determined by the Simulink software.
此时间长度取决于模型中块的数量和Simulink软件确定的排序顺序。
If you enter a value of 0, the output stays high until the first time the Simulink engine calls mdlOutputs, unless you have also set H to 0.
如果输入的值为0,除非您还将H设置为0,否则在Simulink引擎第一次调用mdlOutputs之前,输出将一直保持较高。
Sample time
取样时间
Enter the base sample time or a multiple of the base sample time (-1 means sample time is inherited).
输入基本采样时间或基本采样时间的倍数(-1表示继承采样时间)。
PCI slot (-1:autosearch)
PCI插槽(-1:自动搜索)
If only one board of this type is in the target computer, enter -1 to locate the board.
如果目标计算机中只有一个此类型的板,请输入-1以定位该板。
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].
如果目标计算机中有两个或多个此类型的板,请输入与该驱动程序块相关联的总线号和PCI插槽号。使用格式[总线编号,插槽编号]。
To determine the bus number and the PCI slot number, type:
要确定总线号和PCI插槽号,请键入:
tg = slrt;
tg=slrt;
getPCIInfo(tg, 'installed')
getPCIInfo(tg,“已安装”)