Generates the point-by-point value of a pulse train signal. A pulse train signal is a signal whose value switches between zero and a specified amplitude. The current value depends on the current simulation time. Details Example
| Dialog Box Options |
| Block Diagram Inputs |
| Block Diagram Outputs |
| Parameter | Description |
|---|---|
| Polymorphic instance | Specifies whether this function is Scalar or Vector. The default value is Scalar. |
| Parameters | Lists all the parameters associated with this function. Select a parameter from this list to configure the parameter. When you select a parameter, the parameter and its associated Parameter source control appear in the Parameter Information section of the configuration dialog box. |
| Preview | Displays a graphical preview, if available, of the function output or configuration. |
| Parameter Information | Contains the parameters you can configure for this function. You must select a parameter from the Parameters list to make that parameter and its associated Parameter source control visible in the Parameter Information section of the configuration dialog box. |
| Parameter source | Specifies whether you configure this parameter using the Configuration Dialog Box or a Terminal on the simulation diagram. The default value is Configuration Dialog Box. If you select Terminal, LabVIEW displays an input for that parameter on the simulation diagram, and you can wire values to that input to configure this function programmatically. If you select Configuration Dialog Box, LabVIEW removes that input from the simulation diagram. You then must set the value for this parameter inside the configuration dialog box. |
| start time | Specifies the simulation time, in seconds, at which this function triggers the pulse signal. The default value is 0. |
| amplitude | Specifies the maximum amplitude of the pulse signal. The default value is 1. |
| duty cycle | Specifies the ratio, expressed as a percent, between the high and low levels of the pulse signal. The default value is 50. |
| period | Specifies the period, in seconds, of the pulse signal. The default value is 2. |
| Parameter | Description |
|---|---|
| start time | Specifies the simulation time, in seconds, at which this function triggers the pulse signal. The default value is 0. |
| amplitude | Specifies the maximum amplitude of the pulse signal. The default value is 1. |
| duty cycle | Specifies the ratio, expressed as a percent, between the high and low levels of the pulse signal. The default value is 50. |
| period | Specifies the period, in seconds, of the pulse signal. The default value is 2. |
| Parameter | Description |
|---|---|
| output | Returns the value of the signal evaluated at the current simulation time. The default value is 1. |
The following equations define the pulse train signal.
y = A * square
| where | ![]() |
| A is the amplitude | |
| f is the frequency | |
| t is the current simulation time | |
| p is the phase | |
| D is the duty cycle | |
| y is the output |
All input/output pairs of this function have direct feedthrough behavior.
Refer to the pulse VI in the labview\examples\simulation\Getting Started\Signal Generation directory for an example of using the Pulse Signal VI.