Modelica_DeviceDrivers.Blocks.InputDevices

Information

Extends from Modelica.Icons.Package (Icon for standard packages).

Package Content

NameDescription
Modelica_DeviceDrivers.Blocks.InputDevices.JoystickInput JoystickInput Joystick input implementation for interactive simulations
Modelica_DeviceDrivers.Blocks.InputDevices.KeyboardKeyInput KeyboardKeyInput Keyboard input implementation for interactive simulations
Modelica_DeviceDrivers.Blocks.InputDevices.SpaceMouseInput SpaceMouseInput SpaceMouse input implementation for interactive simulations
Modelica_DeviceDrivers.Blocks.InputDevices.KeyboardInput KeyboardInput Keyboard input implementation for interactive simulations
Modelica_DeviceDrivers.Blocks.InputDevices.Types Types  

Modelica_DeviceDrivers.Blocks.InputDevices.JoystickInput Modelica_DeviceDrivers.Blocks.InputDevices.JoystickInput

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

NameDescription
sampleTimesample time for input update
gain[6]gain of axis output
IDID number of the joystick (0 = first joystick attached to the system)

Connectors

NameDescription
axes[6] 
pOV 
buttons[8] 

Modelica_DeviceDrivers.Blocks.InputDevices.KeyboardKeyInput Modelica_DeviceDrivers.Blocks.InputDevices.KeyboardKeyInput

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

NameDescription
sampleTimesample time for input update
keyCodeMonitored Key

Connectors

NameDescription
keyState 

Modelica_DeviceDrivers.Blocks.InputDevices.SpaceMouseInput Modelica_DeviceDrivers.Blocks.InputDevices.SpaceMouseInput

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

NameDescription
sampleTimesample time for input update
gain[6]gain of axis output

Connectors

NameDescription
axes[6] 
buttons[16] 

Modelica_DeviceDrivers.Blocks.InputDevices.KeyboardInput Modelica_DeviceDrivers.Blocks.InputDevices.KeyboardInput

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

NameDescription
sampleTimesample time for input update

Connectors

NameDescription
keyUp 
keyDown 
keyRight 
keyLeft 
keyReturn 
keySpace 

Automatically generated Tue Oct 1 14:26:57 2013.