Information
Extends from Modelica.Icons.Package (Icon for standard packages).
Package Content
Name | Description |
JoystickInput
| Joystick input implementation for interactive simulations |
KeyboardKeyInput
| Keyboard input implementation for interactive simulations |
SpaceMouseInput
| SpaceMouse input implementation for interactive simulations |
KeyboardInput
| Keyboard input implementation for interactive simulations |
Types
| |
Joystick input implementation for interactive simulations
Information
This block reads data from the joystick ID (0 = first joystick appearing in windows control panel).
Multible blocks can be used in order to retrieve data from more than one joysticks.
Up to six axes and eight buttons are supported. The input values ranges between -1 and 1 and can be scaled by the
vector gain. Via the parameter sampleTime the input sampling rate is chosen.
Extends from Modelica_DeviceDrivers.Utilities.Icons.BaseIcon (Base icon for blocks providing access to external devices).
Parameters
Name | Description |
sampleTime | sample time for input update |
gain[6] | gain of axis output |
ID | ID number of the joystick (0 = first joystick attached to the system) |
Connectors
Name | Description |
axes[6] | |
pOV | |
buttons[8] | |
Keyboard input implementation for interactive simulations
Information
This block reads data from the keyboard. The monitored key is selected via the parameter keyCode.
Note, that keystrokes will not be captured and the focused window will process them.
Via the parameter sampleTime the input sampling rate is chosen.
Extends from Modelica_DeviceDrivers.Utilities.Icons.BaseIcon (Base icon for blocks providing access to external devices).
Parameters
Name | Description |
sampleTime | sample time for input update |
keyCode | Monitored Key |
Connectors
SpaceMouse input implementation for interactive simulations
Information
This block reads data from the 3Dconnexion SpaceMouse. It provides the six axis and up to sixteen button inputs. Note, that only the first SpaceMouse attached on the system can be read.The input values ranges between approx. -1 and 1 and can be scaled by the vector gain. Via the parameter sampleTime the input sampling rate is chosen.
Note for Linux
Using the SpaceMouse in Linux is possible, but requires that the Linux drivers offered by 3Dconnexion are installed and active (http://www.3dconnexion.com/).
Extends from Modelica_DeviceDrivers.Utilities.Icons.BaseIcon (Base icon for blocks providing access to external devices).
Parameters
Name | Description |
sampleTime | sample time for input update |
gain[6] | gain of axis output |
Connectors
Name | Description |
axes[6] | |
buttons[16] | |
Keyboard input implementation for interactive simulations
Information
This block reads data from the keyboard. The arrow keys, space and return are monitored.
Note, that keystrokes will not be captured and the focused window will process them.
Via the parameter sampleTime the input sampling rate is chosen.
Extends from Modelica_DeviceDrivers.Utilities.Icons.BaseIcon (Base icon for blocks providing access to external devices).
Parameters
Name | Description |
sampleTime | sample time for input update |
Connectors
Name | Description |
keyUp | |
keyDown | |
keyRight | |
keyLeft | |
keyReturn | |
keySpace | |
Automatically generated Tue Oct 1 14:26:57 2013.