niSync Create Clock (VI)
- Updated2024-03-29
- 8 minute(s) read
niSync Create Clock (VI)
Installed With: NI-SyncGenerates a clock synchronized to the board time of the module you specify with instrument handle. Once you generate the clock in the specified terminal, you cannot use that terminal for other operations until you clear the clock with niSync Clear Clock or close the session with niSync Close.
When you invoke this VI, the digital signal on the specified terminal is driven low until the clock starts. After you create the clock, you can route it to other modules and devices using niSync Connect Clock Terminals. Depending on the instance you select, you can modify the clock's duty cycle, number of ticks, or the frequency at which it runs.
![]() |
Note This property is supported only on certain targets; refer to Target Support for Timing Properties for more information. |
niSync Create Clock (Time)
When you create a clock using this instance, you can specify how long the clock runs at a high logic level and how long it runs at a low logic level.
![]() |
low time specifies, in seconds, how long you want the generated clock to run at the low logic state.
|
||
![]() |
high time specifies, in seconds, how long you want the generated clock to run at the high logic state.
|
||
![]() |
instrument handle specifies the instrument handle that you obtain from niSync Initialize. |
||
![]() |
terminal specifies the line you would like to generate the clock on. You cannot use this terminal for other operations until you clear the generated clock using niSync Clear Clock or you close the session with niSync Close. |
||
![]() |
error in (no error) describes error conditions that occur before this node runs. This input provides standard error in functionality. |
||
![]() |
start time specifies when to start the generated clock. This time is synchronized with the board time of the module you use to create the clock. The default value is immediate, which generates the clock as soon as the VI is invoked. |
||
![]() |
stop time specifies when to stop the generated clock. This time is synchronized with the board time of the module you use to create the clock. The default value is never, in which case the clock will not stop until you invoke niSync Clear Clock or close the session. |
||
![]() |
instrument handle out returns the instrument handle that you obtain from niSync Initialize. |
||
![]() |
coerced low time returns the actual duration, in seconds, of the generated clock's logic low state. |
||
![]() |
coerced high time returns the actual duration, in seconds, of the generated clock's logic high state. |
||
![]() |
error out returns error conditions that occur after this node runs. This output provides standard error out functionality. |
niSync Create Clock (Ticks)
Using this instance, you can generate a clock that runs for a specified number of high and low ticks every cycle.
![]() |
low ticks specifies the number of ticks the generated clock should spend in the low logic state. You can view the length of a tick using the Clock Resolution parameter of the niSync Property Node. |
![]() |
high ticks specifies the number of ticks the generated clock should spend in the high logic state. You can view the length of a tick using the Clock Resolution parameter in the niSync Property Node. |
![]() |
instrument handle specifies the instrument handle that you obtain from niSync Initialize. |
![]() |
terminal specifies the line you would like to generate the clock on. You cannot use this terminal for other operations until you clear the generated clock using niSync Clear Clock or you close the session with niSync Close. |
![]() |
error in (no error) describes error conditions that occur before this node runs. This input provides standard error in functionality. |
![]() |
start time specifies when to start the generated clock. This time is synchronized with the board time of the module you use to create the clock. The default value is immediate, which generates the clock as soon as the VI is invoked. |
![]() |
stop time specifies when to stop the generated clock. This time is synchronized with the board time of the module you use to create the clock. The default value is never, in which case the clock will not stop until you invoke niSync Clear Clock or close the session. |
![]() |
instrument handle out returns the instrument handle that you obtain from niSync Initialize. |
![]() |
error out returns error conditions that occur after this node runs. This output provides standard error out functionality. |
niSync Create Clock (Frequency)
Using this instance, you can generate a clock that runs at a custom frequency and duty cycle.
![]() |
duty cycle specifies the desired duty cycle—the ratio of high ticks to low ticks—of the generated clock.
|
||
![]() |
frequency specifies the desired frequency of the generated clock.
|
||
![]() |
instrument handle specifies the instrument handle that you obtain from niSync Initialize. |
||
![]() |
terminal specifies the line you would like to generate the clock on. You cannot use this terminal for other operations until you clear the generated clock using niSync Clear Clock or you close the session with niSync Close. |
||
![]() |
start time specifies when to start the generated clock. This time is synchronized with the board time of the module you use to create the clock. The default value is immediate, which generates the clock as soon as the VI is invoked. |
||
![]() |
stop time specifies when to stop the generated clock. This time is synchronized with the board time of the module you use to create the clock. The default value is never, in which case the clock will not stop until you invoke niSync Clear Clock or close the session. |
||
![]() |
error in (no error) describes error conditions that occur before this node runs. This input provides standard error in functionality. |
||
![]() |
instrument handle out returns the instrument handle that you obtain from niSync Initialize. |
||
![]() |
coerced frequency returns the actual frequency of the generated clock. |
||
![]() |
coerced duty cycle returns the actual duty cycle of the generated clock. |
||
![]() |
error out returns error conditions that occur after this node runs. This output provides standard error out functionality. |