DAQmx Create Timing Source (Not Available in LabVIEW 7.0)
Creates a timing source for a Timed Loop. The timing source is based on signals a device generates. The instances of this polymorphic VI correspond to the type of signal to use for the timing source. Wire the timing source out output to the source input of the Input Node of a Timed Loop to use this timing source with that Timed Loop.
Timing sources send ticks to a timed loop. Those ticks determine when the Timed Loop executes. By default, the Timed Loop executes each time it receives a tick from a timing source, but other Timed Loop settings can affect when it executes. For example, if you set period in the Loop Configuration dialog to 2, the Timed Loop executes on every other tick the timing source sends.
Refer to NI-DAQmx 7.4 and Later Single-Point Real-Time Applications for an overview of real-time architectures and applications.
The DAQmx Timing Source properties include additional timing source configuration options.
Use the pull-down menu to select an instance of this VI.
Place on the block diagram. | Find on the Functions palette. |
Control Loop From Task
Creates a timing source that uses a combination of the sample clock and the specified sleep time to determine when to send ticks to a Timed Loop. You must create an analog input task that uses sample clock timing and wire that task to the task/channels in input of this VI. Do not use the DAQmx Start Task VI to start the task. The Timed Loop starts the task automatically. National Instruments recommends that you use this instance instead of the Signal From Task instance for best performance with Timed Loops.
task/channels in is the name of the task or a list of virtual channels to which the operation applies. If you provide a list of virtual channels, NI-DAQmx creates a task automatically. | |||||||
sleep time (us) specifies in microseconds the amount of time the Timed Loop sleeps after each sample clock pulse. The default sleep time is 0. This input is ignored on all OSes other than Pharlap. | |||||||
error in describes error conditions that occur before this VI or function runs. The default is no error. If an error occurred before this VI or function runs, the VI or function passes the error in value to error out. If an error occurs while this VI or function runs, the VI or function runs normally and sets its own error status in error out. Use the Simple Error Handler or General Error Handler VIs to display the description of the error code. Use error in and error out to check errors and to specify execution order by wiring error out from one node to error in of the next node.
|
|||||||
timing source name is the name to assign to the timing source this VI creates. | |||||||
task out is a reference to the task after this VI or function completes execution. | |||||||
timing source out is the name of the timing source this VI creates. Wire this output to the source input of the Input Node of a Timed Loop. If you specified a name for the timing source in the timing source name input, this output contains the same name. If you did not specify a name for the timing source, NI-DAQmx creates a name and sets this output to that name. | |||||||
error out contains error information. If error in indicates that an error occurred before this VI or function ran, error out contains the same error information. Otherwise, error out describes the error status that this VI or function produces. Right-click the error out indicator on the front panel and select Explain Error from the shortcut menu for more information about the error.
|
Frequency
Creates a timing source that sends ticks to a Timed Loop at a constant frequency. NI-DAQmx uses the counter you specify to generate the signal for the timing source.
counter specifies the name of the counter to use for the timing source. The DAQmx physical channel constant lists all physical channels, including counters, for devices installed in the system. You also can wire a string that contains a name of a counter to this input. | |||||||
frequency specifies in hertz the frequency at which you want to send ticks to the Timed Loop. | |||||||
error in describes error conditions that occur before this VI or function runs. The default is no error. If an error occurred before this VI or function runs, the VI or function passes the error in value to error out. If an error occurs while this VI or function runs, the VI or function runs normally and sets its own error status in error out. Use the Simple Error Handler or General Error Handler VIs to display the description of the error code. Use error in and error out to check errors and to specify execution order by wiring error out from one node to error in of the next node.
|
|||||||
timing source name is the name to assign to the timing source this VI creates. | |||||||
timing source out is the name of the timing source this VI creates. Wire this output to the source input of the Input Node of a Timed Loop. If you specified a name for the timing source in the timing source name input, this output contains the same name. If you did not specify a name for the timing source, NI-DAQmx creates a name and sets this output to that name. | |||||||
error out contains error information. If error in indicates that an error occurred before this VI or function ran, error out contains the same error information. Otherwise, error out describes the error status that this VI or function produces. Right-click the error out indicator on the front panel and select Explain Error from the shortcut menu for more information about the error.
|
Digital Edge (Counter)
Creates a timing source that sends ticks to a Timed Loop on rising or falling edges of a digital signal. NI-DAQmx uses the counter you specify to detect the edges of the digital signal. Use this VI to base a timing source on an external digital signal or on an internal digital signal not included in the Signal From Task instance of the DAQmx Create Timing Source VI.
source specifies the terminal to which you connect the digital signal you want to use for the timing source. A DAQmx terminal constant lists all terminals available on devices installed in the system. You also can specify a source terminal by wiring a string that contains a terminal name. | |||||||
counter specifies the name of the counter to use for the timing source. The DAQmx physical channel constant lists all physical channels, including counters, for devices installed in the system. You also can wire a string that contains a name of a counter to this input. | |||||||
edge specifies on which edges of the digital signal you want to send ticks to the Timed Loop.
|
|||||||
error in describes error conditions that occur before this VI or function runs. The default is no error. If an error occurred before this VI or function runs, the VI or function passes the error in value to error out. If an error occurs while this VI or function runs, the VI or function runs normally and sets its own error status in error out. Use the Simple Error Handler or General Error Handler VIs to display the description of the error code. Use error in and error out to check errors and to specify execution order by wiring error out from one node to error in of the next node.
|
|||||||
timing source name is the name to assign to the timing source this VI creates. | |||||||
edge count specifies the number of edges of the digital signal that must occur for the timing source to send a tick to the Timed Loop. For example, if you set this value to 3, the timing source sends a tick to the Timed Loop on every third edge of the digital signal. | |||||||
timing source out is the name of the timing source this VI creates. Wire this output to the source input of the Input Node of a Timed Loop. If you specified a name for the timing source in the timing source name input, this output contains the same name. If you did not specify a name for the timing source, NI-DAQmx creates a name and sets this output to that name. | |||||||
error out contains error information. If error in indicates that an error occurred before this VI or function ran, error out contains the same error information. Otherwise, error out describes the error status that this VI or function produces. Right-click the error out indicator on the front panel and select Explain Error from the shortcut menu for more information about the error.
|
Digital Change Detection
Creates a timing source that sends ticks to a Timed Loop on rising and/or falling edges of one or more digital lines. You can use this instance of this VI only with devices that support digital change detection. Use the Digital Edge (Counter) instance of the DAQmx Create Timing Source VI with other devices. That instance uses a counter and cannot detect edges on multiple lines.
rising edge physical channels specifies the names of the digital lines or ports on which to detect rising edges. The DAQmx physical channel constant lists all lines and ports for devices installed in your system. You also can wire a string that contains a list or range of digital lines or ports to this input. | |||||||
falling edge physical channels specifies the names of the digital lines or ports on which to detect falling edges. The DAQmx physical channel constant lists all lines and ports for devices installed in your system. You also can wire a string that contains a list or range of digital lines or ports to this input. | |||||||
error in describes error conditions that occur before this VI or function runs. The default is no error. If an error occurred before this VI or function runs, the VI or function passes the error in value to error out. If an error occurs while this VI or function runs, the VI or function runs normally and sets its own error status in error out. Use the Simple Error Handler or General Error Handler VIs to display the description of the error code. Use error in and error out to check errors and to specify execution order by wiring error out from one node to error in of the next node.
|
|||||||
timing source name is the name to assign to the timing source this VI creates. | |||||||
timing source out is the name of the timing source this VI creates. Wire this output to the source input of the Input Node of a Timed Loop. If you specified a name for the timing source in the timing source name input, this output contains the same name. If you did not specify a name for the timing source, NI-DAQmx creates a name and sets this output to that name. | |||||||
error out contains error information. If error in indicates that an error occurred before this VI or function ran, error out contains the same error information. Otherwise, error out describes the error status that this VI or function produces. Right-click the error out indicator on the front panel and select Explain Error from the shortcut menu for more information about the error.
|
Signal From Task
Creates a timing source that uses the signal you specify to determine when to send ticks to a Timed Loop. You must create a task that can generate the signal and wire that task to the task/channels in input of this VI. Do not use the DAQmx Start Task VI to start the task. The Timed Loop starts the task automatically.
task/channels in is the name of the task or a list of virtual channels to which the operation applies. If you provide a list of virtual channels, NI-DAQmx creates a task automatically. | |||||||||
signal is the signal to use for the timing source.
|
|||||||||
error in describes error conditions that occur before this VI or function runs. The default is no error. If an error occurred before this VI or function runs, the VI or function passes the error in value to error out. If an error occurs while this VI or function runs, the VI or function runs normally and sets its own error status in error out. Use the Simple Error Handler or General Error Handler VIs to display the description of the error code. Use error in and error out to check errors and to specify execution order by wiring error out from one node to error in of the next node.
|
|||||||||
timing source name is the name to assign to the timing source this VI creates. | |||||||||
task out is a reference to the task after this VI or function runs. If you wired a channel or list of channels to task/channels in, NI-DAQmx creates this task automatically. | |||||||||
timing source out is the name of the timing source this VI creates. Wire this output to the source input of the Input Node of a Timed Loop. If you specified a name for the timing source in the timing source name input, this output contains the same name. If you did not specify a name for the timing source, NI-DAQmx creates a name and sets this output to that name. | |||||||||
error out contains error information. If error in indicates that an error occurred before this VI or function ran, error out contains the same error information. Otherwise, error out describes the error status that this VI or function produces. Right-click the error out indicator on the front panel and select Explain Error from the shortcut menu for more information about the error.
|