Frequency
- Updated2023-02-17
- 4 minute(s) read
Frequency
Generates a clock that runs at a custom frequency and duty cycle.
Once you generate a clock in a terminal, you cannot use that terminal for other operations until you clear the clock with Clear Clock or close the session with Close. When you invoke this function, the digital signal on the specified terminal is driven low until the clock starts.
Inputs/Outputs

duty cycle
The desired duty cycle of the clock generated on the specified terminal.

frequency
The desired frequency of the clock generated on the specified terminal.

session in
The session that you obtain from Initialize.

terminal
The line you would like to generate the clock on.
You cannot use this line for other operations until you clear the generated clock using Clear Clock or close the session.

start time
The time to start the generated clock.
This time is synchronized with the board time of the module you use to create the clock.
Default value: immediate

stop time
The board time when to stop the generated clock.
This time is synchronized with the board time of the module you use to create the clock.
Default value: never

error in (no error)
error in (no error) accepts error information wired from VIs previously called. Use this information to decide if any functionality should be bypassed in the event of errors from other VIs.
The pop-up option Explain Error (or Explain Warning) gives more information about the error displayed.

status
status is either TRUE (X) for an error, or FALSE (checkmark) for no error or a warning. The pop-up option Explain Error (or Explain Warning) gives more information about the error displayed.

code
code identifies the error or warning. The pop-up option Explain Error (or Explain Warning) gives more information about the error displayed.

source
source specifies the origin of the error or warning. The pop-up option Explain Error (or Explain Warning) gives more information about the error displayed.

session out
The session handle that you obtain from Initialize.

coerced frequency
The actual frequency at which the clock is generated.

coerced duty cycle
The actual duty cycle at which the clock is generated.

error out
error out passes error or warning information out of a VI to be used by other VIs.
The pop-up option Explain Error (or Explain Warning) gives more information about the error displayed.

status
status is either TRUE (X) for an error, or FALSE (checkmark) for no error or a warning. The pop-up option Explain Error (or Explain Warning) gives more information about the error displayed.

code
code identifies the error or warning. The pop-up option Explain Error (or Explain Warning) gives more information about the error displayed.

source
source specifies the origin of the error or warning. The pop-up option Explain Error (or Explain Warning) gives more information about the error displayed.