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, pass hexapod2_usb as the card type argument to the hil_open function.

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_set_analog_input_ranges function.

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.

Use the hil_set_analog_output_ranges function to set 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 value, use the hil_set_encoder_counts function.

The encoder inputs are sampled simultaneously when measured using a single hil_read or hil_read_encoder call.

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, use the hil_watchdog_start function. Be sure to reload the watchdog periodically using the hil_watchdog_reload function to prevent the watchdog from expiring.

To configure the values to which the output channels are reset on watchdog expiry, use the hil_watchdog_set_analog_expiration_state, hil_watchdog_set_digital_expiration_state and hil_watchdog_set_pwm_expiration_state functions to set the analog, digital and PWM output values on watchdog expiration respectively.

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

Use the hil_watchdog_clear function to clear the watchdog state. Note that stopping the watchdog does not clear the watchdog state. The watchdog state must be cleared explicitly.

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 Raspberry Pi 3 Target

No

Not supported.

QUARC Linux Raspberry Pi 4 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