Quanser Aero 2
The Quanser Aero 2 is an integrated lab experiment. It is designed to help teach fundamental control concepts and theories on an easy-to-use and intuitive platform. The Quanser Aero 2 is also suitable for advanced aerospace research applications. For more information, visit the Quanser website for the Quanser Aero 2.
The QUARC driver name for this card is quanser_aero2_usb.
To select the Quanser Aero 2 HIL board, select the QUARC quanser_aero2_usb board type from the drop-down list on the Main tab of the HIL Initialize block.
The Quanser Aero 2 I/O channels are described below.
Clocks
There are currently no configuration options for the Quanser Aero 2 clocks.
Analog Inputs
The Quanser Aero 2 supports two analog inputs. The analog inputs measure the current to each motor in Amperes. Their maximum range is ±3A. Channel 0 is the current sense for motor 0 and channel 1 is the current sense for motor 1.
Analog Outputs
The Quanser Aero 2 supports two analog outputs. The analog outputs drive the motor voltages. Their maximum range is ±24V. Channel 0 drives motor 0 and channel 1 drives motor 1.
Digital Inputs
The Quanser Aero 2 supports six digital inputs, which are used for diagnostics. The digital inputs are enumerated in the table below.
Channel |
Description |
---|---|
0 |
Amplifier 0 fault. |
1 |
Amplifier 1 fault. |
2 |
Motor 0 stall detected. |
3 |
Motor 0 stall error. |
4 |
Motor 1 stall detected. |
5 |
Motor 1 stall error. |
In the event of a stall error, the motor's corresponding digital output channel must be toggled in order to properly clear the fault and resume actuation.
Digital Outputs
The Quanser Aero 2 supports two digital outputs. The digital outputs act as enables for the motor drive circuitry. Channel 0 enables motor 0 and channel 1 enables motor 1. When the output is low, the corresponding motor is disabled. When the output is high, the corresponding motor amplifier is enabled.
Encoder Inputs
The Quanser Aero 2 supports four encoder inputs. Each channel provides 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:3
to
indicate channels 0 through 3 are used as encoder inputs.
The encoder inputs are sampled simultaneously when measured using a single HIL Read block.
PWM Outputs
The Quanser Aero 2 card does not support PWM outputs.
Other Inputs
The Quanser Aero 2 supports ten other input channel, which are enumerated in the table below:
Channel |
Description |
---|---|
3000 |
Gyroscope for X-axis in rad/s. |
3001 |
Gyroscope for Y-axis in rad/s. |
3002 |
Gyroscope for Z-axis in rad/s. |
4000 |
Accelerometer for X-axis in m/s2. |
4001 |
Accelerometer for Y-axis in m/s2. |
4002 |
Accelerometer for Z-axis in m/s2. |
14000 |
Tachometer for encoder 0 in counts/s. |
14001 |
Tachometer for encoder 1 in counts/s. |
14002 |
Tachometer for encoder 2 in counts/s. |
14003 |
Tachometer for encoder 3 in counts/s. |
Other Outputs
The Quanser Aero 2 supports three other output channels, allowing the color of the LED panel to be controlled. Note that each channel supports fractional values between 0 and 1, allowing full RGB color. Refer to the table below for a list of the channels:
Channel |
Description |
Range |
---|---|---|
11000 |
Red component for LED color |
0 to 1.0 |
11001 |
Green component for LED color |
0 to 1.0 |
11002 |
Blue component for LED color |
0 to 1.0 |
Interrupts
The Quanser Aero 2 card, or its driver, does not support any interrupt sources.
Watchdog
The Quanser Aero 2 supports a watchdog timer for resetting the outputs on watchdog expiry. Namely, the analog, digital and other 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 Other 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 Aero 2 card does not support any board-specific options.
Properties
The Quanser Aero 2 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_FIRMWARE_MAJOR_VERSION |
Integer |
Major version number of the firmware (hardware) |
PROPERTY_INTEGER_FIRMWARE_MINOR_VERSION |
Integer |
Minor version number of the firmware (Aero 2 interface) |
PROPERTY_INTEGER_FIRMWARE_BUILD |
Integer |
Build number of the firmware (currently always zero) |
PROPERTY_INTEGER_FIRMWARE_REVISION |
Integer |
Revision number of the firmware (currently always zero) |
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 |
PROPERTY_STRING_FIRMWARE_VERSION |
String |
Firmware version of the PC interface |
Targets
Target |
Supported |
Comments |
---|---|---|
Yes |
Not supported. |
|
Yes |
Fully supported. |
|
No |
Not supported. |
|
No |
Not supported. |
|
No |
Not supported. |
|
No |
Not supported. |
|
Yes |
Support for this target is in beta. If you are using it, we would appreciate any feedback. |
|
Yes |
Support for this target is in beta. If you are using it, we would appreciate any feedback. |
|
No |
Not supported. |
|
No |
Not supported. |
|
No |
Not supported. |
|
No |
Not supported. |
|
No |
Not supported. |
|
No |
Not supported. |
|
No |
Last fully supported in QUARC 2018. |
|
Rapid Simulation (RSIM) Target |
Yes |
Supported with no communication to the hardware. |
Normal simulation |
Yes |
Supported with no communication to the hardware. |
See Also
Copyright ©2024 Quanser Inc. This page was generated 2024-10-17. Submit feedback to Quanser about this page.
Link to this page.