Refer to the I/O Methods, that includes the following parameters, which you can use to configure the NI 9361 measurement modes.
Note  The counters operate based on the module's timebase of 100 MHz. Each timebase tick corresponds to 10 ns.
  • Configure Edge Counting—Configures the corresponding counter for any edge counting application. The Method Node returns an error if invoked while the module is in running state. The Initial Count and Reset Count are in edges.
    Table 356. Configure Edge Counting Method Parameters
    Parameters Description
    Terminal Source input terminal of the counter.
    Initial Count Initial counter value once the counter is armed.
    Active Edge Sets the triggering edge of the input signal. Rising indicates the counter would count on every rising edge and vice versa.
    Direction Sets the count direction to either count up, count down or to be externally controlled.
    Direction Terminal Configures the external terminal that is used to control the count direction. This needs to be set when Direction is configured to "Externally Controlled". If not set, the parameter value defaults to DI0 terminal.
    External Direction Count Up When Configures whether the counter would count up when the Direction Terminal is 'HIGH' or to count up when the Direction Terminal is 'LOW'. If not set, the parameter value defaults to count up when high.
    Reset Enable Enables or disables Hardware Reset.
    Reset Terminal Configures the reset terminal that is used to reset the counter. This needs to be set when Hardware Reset is enabled. If not set, the parameter value defaults to DI0 terminal.
    Reset Count Sets the count value to load to the counter upon reset. If not set, the parameter value defaults to zero.
    Reset Active Edge Sets the triggering edge of the reset signal. If not set, the parameter value defaults to reset on the rising edge.
    Pause Enable Enables or disables the pause trigger.
    Pause Terminal Configures the pause terminal that is used to pause the counter. This needs to be set when pause trigger is enabled. If not set, the parameter value defaults to DI0 terminal.
    Pause When Configures the pause trigger to either pause the counter when the pause terminal is 'HIGH' or 'LOW'. If not set, the parameter value defaults to pause when high.
  • Configure Edge Counting Simple—Configures the corresponding counter for simple edge counting. The simple configuration for edge counting sets Direction to Count Up and disables both Reset and Pause. The Method Node returns an error if invoked while the module is in running state. The Initial Count is in edges.
    Table 357. Configure Edge Counting Simple Method Parameters
    Parameters Description
    Terminal Source input terminal of the counter.
    Initial Count Initial counter value once the counter is armed.
    Active Edge Sets the triggering edge of the input signal. Rising indicates the counter would count on every rising edge and vice versa.
  • Configure Period—Configures the corresponding counter for period measurement. The Method Node returns an error if invoked while the module is in running state.
    Table 358. Configure Period Method Parameters
    Parameters Description
    Terminal Source input terminal of the counter.
    Starting Edge Configures the triggering edge of the input signal.
    Measurement Time Configures the amount of time over which to measure and average the period of the input signal. This value is specified in units of counter timebase ticks. Set to 0 to disable the Measurement Time, in which case the measurement will be completed using only the Divisor setting.
    Divisor Configures the number of periods of the input signal to measure and average to determine the input signal period. Set to 0 to disable the Divisor, in which case the measurement will be completed using only the Measurement Time setting.
    Maximum Measurable Period Configures the maximum (slowest) period input signal that can be measured. If the actual input signal period is longer than this value, the measurement will timeout and the counter returns a value of 0. This value is specified in units of counter timebase ticks. Set this value to 0 to disable enforcing the maximum period.
    Note  Setting both Measurement Time and Divisor to 0 is invalid, and will cause the counter to always return a value of 0.
  • Configure Period Simple—Configures the corresponding counter for simple period measurement. The simple configuration for period measurement sets Measurement Time to 0 and Divisor to 1. The Method Node returns an error if invoked while the module is in running state.
    Table 359. Configure Period Simple Method Parameters
    Parameters Description
    Terminal Source input terminal of the counter.
    Starting Edge Configures the triggering edge of the input signal.
    Maximum Measurable Period Configures the maximum (slowest) period input signal that can be measured. If the actual input signal period is longer than this value, the measurement will timeout and the counter returns a value of 0. This value is specified in units of counter timebase ticks. Set this value to 0 to disable enforcing the maximum period.
  • Configure Pulse—Configures the corresponding counter for pulse measurement. The Method Node returns an error if invoked while the module is in running state.
    Table 360. Configure Pulse Method Parameters
    Parameters Description
    Terminal Source input terminal of the counter.
    Starting Edge Configures the triggering edge of the input signal.
    Maximum Measurable Period Configures the maximum (slowest) period input signal that can be measured. If the actual input signal period is longer than this value, the measurement will timeout and the counter returns a non-zero value for the high pulse and a value of 0 for the low pulse if the actual signal is high during timeout. The counter returns a non-zero value for the low pulse and a value of 0 for the high pulse if the actual signal is low during timeout. This value is specified in units of counter timebase ticks. Set this value to 0 to disable enforcing the maximum period.
  • Configure Pulse Width—Configures the corresponding counter for pulse width measurement. The Method Node returns an error if invoked while the module is in running state.
    Table 361. Configure Pulse Width Method Parameters
    Parameters Description
    Terminal Source input terminal of the counter.
    Starting Edge Configures the triggering edge of the input signal.
    Maximum Measurable Period Configures the maximum (slowest) period input signal that can be measured. If the actual input signal period is longer than this value, the measurement will timeout and the counter returns a value of 0. This value is specified in units of counter timebase ticks. Set this value to 0 to disable enforcing the maximum period.
  • Configure Two Edge Separation—Configures the corresponding counter for two edge separation measurement. The Method Node returns an error if invoked while the module is in running state.
    Table 362. Configure Two Edge Separation Method Parameters
    Parameters Description
    First Terminal First source input terminal of the counter.
    First Edge Configures the triggering edge of the first signal.
    Second Terminal Second source input terminal of the counter.
    Second Edge Configures the triggering edge of the second signal.
    Maximum Measurable Separation Configures the maximum separation between the first input signal and the second input signal that can be measured. If the actual input signal separation is longer than this value, the measurement will timeout and the counter returns a value of 0. This value is specified in units of counter timebase ticks. Set this value to 0 to disable enforcing the maximum separation.
  • Configure Quadrature Encoder Position—Configure the corresponding counter for quadrature encoder measurement. Z indexing can be enabled or disabled. The Method Node returns an error if invoked while the module is in running state.
    Table 363. Configure Quadrature Encoder Position Method Parameters
    Parameters Description
    A Terminal A input terminal of the counter.
    A Invert Polarity Configures the module to invert the A signal.
    B Terminal B input terminal of the counter.
    B Invert Polarity Configures the module to invert the B signal.
    Initial Position Initial counter value once the counter is armed.
    Decoding Type Configures the decoding type to either x1, x2 or x4.
    Z Index Enable Enables or disables the Z Index.
    Z Terminal Configures the Z terminal for the Z index. This needs to be set when Z Index is enabled. If not set, the parameter value defaults to DI0 terminal.
    Z Invert Polarity Configures the module to invert the Z signal. If not set, the parameter value defaults to not inverting the Z signal.
    Z Index Value Configures the counter value to be loaded when the Z Index is triggered. If not set, the parameter value defaults to not zero.
    Z Index Phase Configures the Z Index phase in which the Z index would be triggered. If not set, the parameter value defaults to trigger when A signal is low and B signal is low.
  • Configure Two Pulse Encoder—Configures the corresponding counter for any two pulse encoder measurement. The Method Node returns an error if invoked while the module is in running state. The Initial Position and Reset Position values are in encoder counts.
    Table 364. Configure Two Pulse Encoder Method Parameters
    Parameters Description
    A Terminal A input terminal of the counter.
    A Invert Polarity Configures the module to invert the A signal.
    B Terminal B input terminal of the counter.
    B Invert Polarity Configures the module to invert the B signal.
    Initial Position Initial counter value once the counter is armed.
    Reset Enable Enables or disables Hardware Reset.
    Reset Terminal Configures the reset terminal that is used to reset the counter. This needs to be set when Hardware Reset is enabled. If not set, the parameter value defaults to DI0 terminal
    Reset Position Sets the count value that would be loaded to the counter upon reset. If not set, the parameter value defaults to zero.
    Reset Active Edge Sets the triggering edge of the reset signal. If not set, the parameter value defaults to reset on rising edge.
  • Configure Two Pulse Encoder Simple—Configures the corresponding counter for any two pulse encoder measurement. The simple configuration for two pulse encoder measurement disables Reset. The Method Node returns an error if invoked while the module is in running state. The Initial Position value is in encoder counts.
    Table 365. Configure Two Pulse Encoder Simple Method Parameters
    Parameters Description
    A Terminal A input terminal of the counter.
    A Invert Polarity Configures the module to invert the A signal.
    B Terminal B input terminal of the counter.
    B Invert Polarity Configures the module to invert the B signal.
    Initial Position Initial counter value once the counter is armed.
  • Configure Quadrature Encoder Velocity—Configures the corresponding counter for quadrature encoder velocity measurement. The Method Node returns an error if invoked while the module is in running state.
    Table 366. Configure Quadrature Encoder Velocity Method Parameters
    Parameters Description
    A Terminal A input terminal of the counter.
    A Invert Polarity Configures the module to invert the A signal.
    B Terminal B input terminal of the counter.
    B Invert Polarity Configures the module to invert the B signal.
    Decoding Type Configures the decoding type to either x1, x2 or x4.
    Measurement Time Configures the amount of time over which to measure and average the period of the input signal. This value is specified in units of counter timebase ticks. Set to 0 to disable the Measurement Time, in which case the measurement will be completed using only the Divisor setting.
    Divisor Configures the number of encoder count periods to measure and average to determine the encoder input period (velocity). Set to 0 to disable the Divisor, in which case the measurement will be completed using only the Measurement Time setting.
    Maximum Measurable Count Period Configures the maximum (slowest) period between encoder input counts that can be measured. If the actual time between encoder counts is longer than this value, the measurement will timeout and the counter returns a value of 0. This value is specified in units of counter timebase ticks. Set this value to 0 to disable enforcing the maximum period.
    Note  Setting both Measurement Time and Divisor to 0 is invalid, and will cause the counter to always return a value of 0.
  • Configure Two Pulse Encoder Velocity—Configures the corresponding counter for two pulse encoder velocity measurement. The Method Node returns an error if invoked while the module is in running state.
    Table 367. Configure Two Pulse Encoder Velocity Method Parameters
    Parameters Description
    A Terminal A input terminal of the counter.
    A Invert Polarity Configures the module to invert the A signal.
    B Terminal B input terminal of the counter.
    B Invert Polarity Configures the module to invert the B signal.
    Measurement Time Configures the amount of time over which to measure and average the period of the input signal. This value is specified in units of counter timebase ticks. Set to 0 to disable the Measurement Time, in which case the measurement will be completed using only the Divisor setting.
    Divisor Configures the number of encoder count periods to measure and average to determine the encoder input period (velocity). Set to 0 to disable the Divisor, in which case the measurement will be completed using only the Measurement Time setting.
    Maximum Measurable Count Period Configures the maximum (slowest) period between encoder input counts that can be measured. If the actual time between encoder counts is longer than this value, the measurement will timeout and the counter returns a value of 0. This value is specified in units of counter timebase ticks. Set this value to 0 to disable enforcing the maximum period.