Clocks Analog Inputs Analog Outputs Digital Inputs Digital Outputs Encoder Inputs PWM Outputs Other Inputs Other Outputs Interrupts Watchdog Board-Specific Options Properties Targets See Also navigation bar

Quanser Hexapod2-USB

The Quanser Hexapod2-USB is a six degrees of freedom parallel link robotic motion platform capable of moving heavy loads (up to 100 kg) at high acceleration, within a small workspace. The QUARC driver name for this card is hexapod2_usb.

To select the Quanser Hexapod2-USB HIL board, select the QUARC hexapod2_usb board type from the drop-down list on the Main tab of the HIL Initialize block.

The Quanser Hexapod2-USB I/O channels are described below.

Clocks

There are currently no configuration options for the Quanser Hexapod2-USB clocks.

Analog Inputs

The Quanser Hexapod2-USB supports eight analog inputs. The analog inputs are user configurable to interface with various sensors etc.

The range of the analog inputs may be configured as ±5V or ±10V via the HIL Initialize block's Analog Inputs tab.

Warning

Interfacing with the analog inputs require opening the Quanser Hexapod2-USB base which expose high power electronics. Extreme caution is needed when dealing with opened base. Contact Quanser for support.

Analog Outputs

The Quanser Hexapod2-USB supports eight analog outputs. The analog outputs are user configurable to interface with various actuators etc.

In order to have analog outputs set to a particular voltage when the model is loaded or unloaded, the analog outputs must be configured on the HIL Initialize block's Analog Outputs tab. Set the Analog output channels field to all the analog output channels that will be used on the board for the current diagram. For example, enter 1:3 to indicate channels 1 through 3. Specify [0, 2, 7] to indicate channels 0, 2 and 7.

Set the Analog output maximums and the Analog output minimums field to the appropriate values for the desired analog output ranges. Valid ranges are 0-5V, 0-10V, 0-10.8V, ±5V, ±10V and ±10.8V .

Warning

Interfacing with the analog outputs require opening the Quanser Hexapod2-USB base which expose high power electronics. Extreme caution is needed when dealing with opened base. Contact Quanser for support.

Digital Inputs

The Quanser Hexapod2-USB supports seven digital inputs, which are used for diagnostics. The digital inputs are enumerated in the table below.

Channel

Description

0

Amplifier drive channel 0 status. 0 indicates no error.

1

Amplifier drive channel 1 status. 0 indicates no error.

2

Amplifier drive channel 2 status. 0 indicates no error.

3

Amplifier drive channel 3 status. 0 indicates no error.

4

Amplifier drive channel 4 status. 0 indicates no error.

5

Amplifier drive channel 5 status. 0 indicates no error.

6

E-stop error. 0 indicates no error.

Digital Outputs

The Quanser Hexapod2-USB supports nine digital outputs. The digital outputs are enumerated in the table below.

Channel

Description

6

Direction for motor 0. 0 indicates driving in positive direction.

7

Direction for motor 1. 0 indicates driving in positive direction.

8

Direction for motor 2. 0 indicates driving in positive direction.

9

Direction for motor 3. 0 indicates driving in positive direction.

10

Direction for motor 4. 0 indicates driving in positive direction.

11

Direction for motor 5. 0 indicates driving in positive direction.

12, 13

[0 1] to enable motors.

All other cominbations disable motors.

14

Internal LED to indicate status. 1 indicates amplifier is ready.

Encoder Inputs

The Quanser Hexapod2-USB supports eight encoder inputs (six are used by system and two are user configurable). Each channels provide a 24-bit count value. All channels only support 4X quadrature mode.

In order to set the encoder counters to a particular count when the model is loaded, the encoder inputs must be configured on the HIL Initialize block's Encoder Inputs tab. Set the Encoder input channels field to all the encoder channels that will be used on the board for the current diagram. For example, enter 0:7 to indicate channels 0 through 7 are used as encoder inputs.

The encoder inputs are sampled simultaneously when measured using a single HIL Read block.

Warning

Interfacing with the encoder inputs require opening the Quanser Hexapod2-USB base which expose high power electronics. Extreme caution is needed when dealing with opened base. Contact Quanser for support.

PWM Outputs

The Quanser Hexapod2-USB supports six PWM output channels. They are used to drive the motors.

Each output channel can be programmed with a duty cycle ranging from 0 to 100% inclusive.

The PWM outputs are updated simultaneously when written using a single HIL Write block. All eight PWM outputs may be updated simultaneously by writing all six channels with a single HIL Write block.

Other Inputs

The Quanser Hexapod2-USB supports 6 other input channels.

Other input channels 14000 through 14005 are hardware velocity measurements for encoder inputs 0 through 5 respectively, in counts per second. These measurements are independent of the sample rate of the model and are unaffected by sample rate jitter. They reflect the instantaneous velocity of the encoder channel.

The fastest resolvable velocity is almost 100 million counts per second (without filtering). The slowest measurable velocity (besides zero) is approximately 6 counts per second.

The channels related to the encoders are all sampled simultaneously when measured using a single HIL Read block.

Other Outputs

The Quanser Hexapod2-USB card does not support other outputs.

Interrupts

The Quanser Hexapod2-USB card, or its driver, does not support any interrupt sources.

Watchdog

The Quanser Hexapod2-USB supports a watchdog timer for resetting the outputs on watchdog expiry. Namely, the analog, digital and PWM output channels will be reset to the user-defined values on watchdog expiry. Resetting of the outputs occurs without software intervention, and therefore may be used as a safety mechanism in the event of software failure.

To enable the watchdog, place a HIL Watchdog block in the diagram.

To configure the values to which the output channels are reset on watchdog expiry, set the corresponding fields in the Analog Outputs, Digital Outputs and PWM Outputs tabs of the HIL Initialize block.

Once the watchdog has expired, further I/O on the outputs is disabled until the watchdog state is cleared.

Use a HIL Watchdog Clear block to clear the watchdog state when the model is running. Restarting the model will also clear the watchdog state.

Board-Specific Options

The Quanser Hexapod2-USB card does not support any board-specific options.

Properties

The Quanser Hexapod2-USB driver currently supports the following read-only properties:

Property

Type

Description

PROPERTY_INTEGER_VENDOR_ID

Integer

Vendor identifier associated with the hardware

PROPERTY_INTEGER_PRODUCT_ID

Integer

Product identifier associated with the hardware

PROPERTY_INTEGER_NUMBER_OF_ANALOG_INPUTS

Integer

Number of total analog inputs available on the hardware

PROPERTY_INTEGER_NUMBER_OF_ENCODER_INPUTS

Integer

Number of encoder inputs available on the hardware

PROPERTY_INTEGER_NUMBER_OF_DIGITAL_INPUTS

Integer

Number of total digital inputs available on the hardware

PROPERTY_INTEGER_NUMBER_OF_OTHER_INPUTS

Integer

Number of total other inputs available on the hardware

PROPERTY_INTEGER_NUMBER_OF_ANALOG_OUTPUTS

Integer

Number of analog outputs available on the hardware

PROPERTY_INTEGER_NUMBER_OF_PWM_OUTPUTS

Integer

Number of PWM outputs available on the hardware

PROPERTY_INTEGER_NUMBER_OF_DIGITAL_OUTPUTS

Integer

Number of total digital outputs available on the hardware

PROPERTY_INTEGER_NUMBER_OF_OTHER_OUTPUTS

Integer

Number of other outputs available on the hardware

PROPERTY_INTEGER_NUMBER_OF_CLOCKS

Integer

Number of clocks available on the hardware

PROPERTY_INTEGER_NUMBER_OF_INTERRUPTS

Integer

Number of interrupts available on the hardware

PROPERTY_STRING_MANUFACTURER

String

Manufacturer of the device

PROPERTY_STRING_PRODUCT_NAME

String

Product name of the device

PROPERTY_STRING_MODEL_NAME

String

Model name of the device

PROPERTY_STRING_SERIAL_NUMBER

String

Serial number of the device

Targets

Target

Supported

Comments

QUARC Win32 Target

Yes

Fully supported.

QUARC Win64 Target

Yes

Fully supported.

QUARC Linux Nvidia Target

No

Not supported.

QUARC Linux QBot Platform Target

No

Not supported.

QUARC Linux QCar 2 Target

No

Not supported.

QUARC Linux QDrone 2 Target

No

Not supported.

QUARC Linux Raspberry Pi 3 Target

No

Not supported.

QUARC Linux Raspberry Pi 4 Target

No

Not supported.

QUARC Linux Raspberry Pi ARM64 Target

No

Not supported.

QUARC Linux RT ARMv7 Target

No

Not supported.

QUARC Linux x64 Target

No

Not supported.

QUARC Linux DuoVero Target

No

Not supported.

QUARC Linux DuoVero 2016 Target

No

Not supported.

QUARC Linux Verdex Target

No

Not supported.

QUARC QNX x86 Target

No

Not supported.

Rapid Simulation (RSIM) Target

Yes

Supported with no communication to the hardware.

Normal simulation

Yes

Supported with no communication to the hardware.

See Also

 

navigation bar