This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.


NAII 76LD1 L/D block


Simulink® Real-Time™ Library for NAII

Scaling Input to Output

Hardware Input

Block Output Data Type





Block Parameters

Channel vector

Enter a vector of numbers to specify the measurement (input) channels. For example, to use the L/D channels 1 and 3, enter

[1, 3]

The channel numbers can occur in arbitrary order. The maximum allowable channel number can be 0, 2, 4, or 8 depending on the board type.

Wiring vector (2 for 2-wire;3 for 3-wire or 4-wire)

Enter the wire type for each of the channels in Channel vector. This entry must be either a scalar or a vector that is the same length as the Channel vector entry. Specify the wiring vector as follows:

  • 2 — Specifies that the corresponding channel is 2-wire

  • 3 — Specifies that the corresponding channel is 3-wire or 4-wire

    For example, for a Channel vector entry of [1, 3], a Wiring vector entry of

    [2, 3]

    specifies that channel 1 is 2-wire and channel 3 is 3-wire or 4-wire.

Output format

From the list select an output format for all channels:

  • position — A signal width of 1 that contains the linear position.

  • position-status — A signal width of 2 that contains the linear position and status.

  • position-velocity — A signal width of 2 the contains the linear position and velocity.

  • position-velocity-status — A signal width of 3 that contains the linear position, velocity, and status.

The following notes apply to these formats:

  • The position and velocity values are each normalized to be between –1 and 1.

  • Position and velocity are returned in radians and radians per second, respectively.

  • The status value is encoded in a 3-bit integer that is returned as a double. The status value consists of the following status information for the channel:

    • Test status, weight of 1

    • Signal status, weight of 2

    • Reference status, weight of 4

    Each status is a binary value (0 is OK, 1 is FAILURE). The driver encodes these binary values into a single signal. For example, a status value of 5 (100), means the test status is OK and both signal status and reference status are FAILURE. If the board does not provide a reference/excitation, the test status and reference status do nothing.

    When you request a format with status, you also enable the automatic background (bit D2 of the Test Enable Register) testing.

Latch all channels before reading position data

Select this check box to latch all channels before reading them. The channels are sampled at the same time. Note that selecting this option incurs a small additional resource overhead.

Excitation frequency (360-10000)

Enter the frequency for the on-board reference/excitation signal.

Excitation voltage (0, 2-28, or 115)

Enter the voltage of the on-board reference/excitation signal.

Sample time

Enter the base sample time or a multiple of the base sample time (-1 means sample time is inherited).

PCI slot (-1:autosearch)

If only one board of this type is in the target computer, enter -1 to locate the board.

If two or more boards of this type are in the target computer, enter the bus number and the PCI slot number of the board associated with this driver block. Use the format [BusNumber,SlotNumber].

To determine the bus number and the PCI slot number, type:

tg = slrt;
getPCIInfo(tg, 'installed')

See Also

External Websites

Was this topic helpful?