Home
Encoder Input Encoder Reset (edge-triggered)

Encoder Reset (level-sensitive)

Resets the count value of an encoder in the Q8 data acquisition system.

Library

qctools

Description




The Encoder Reset Module for the Q8 series of I/O cards provides a mechanism for resetting the encoder count of any encoder input on an installed Q8 I/O card.

Parameters and Dialog Box




Board Number

The board number of the I/O card. If there is only one Q8 board in your system, then the board number should be zero. The second Q8 board in your system is board number 1, etc.

Channel(s) to Use

The channel numbers corresponding to each reset value For example, if there are 3 reset values then the entry [4,2,0] assigns value 1 to encoder input 4, value 2 to encoder input 2 and value 3 to encoder input 0. The channel numbers may range from 0 to 7, since there are 8 encoder channels on the Q8 I/O boards.

Reset Value(s)

Value(s) to which to reset the encoder count of each channel specified in the Channel(s) to Use parameter. If Channel(s) to Use is [3,2,0] as above, then an entry of [0,1000,0] for the Reset Value(s) will set encoder channels 3 and 0 to 0, and encoder channel 2 to 1000 when the input is non-zero. A scalar value applies to all channels.

Sample Time

A sample time must be specified for all discrete blocks. A value of -1 causes the block to inherit its sample time from its input. Use this value in triggered subsystems. A positive value specifies the sample time explicitly. Set the value to simget(bdoot,'FixedStep') to extract the sample time from the RTW Options dialog, under Solver/Fixed step size. A numeric value rather than 'auto' should be specified in this dialog field for this default to make sense.

       
Encoder Input Encoder Reset (edge-triggered)