メインコンテンツ

このページの内容は最新ではありません。最新版の英語を参照するには、ここをクリックします。

モデル化

ハードウェア接続用のモデルの準備

ハードウェア接続用の Simulink® モデルを準備し、ハードウェア プロトコルをサポートするためのブロックを追加し、各種アプリケーションを取り上げた参考例を参照します。

ブロック

すべて展開する

DC MotorRepresent connected DC motor and set motor speed
Digital OutputRepresent one pin as digital output and set logical value
Servo MotorRepresent connected servo motor and set angular position value
Competition SwitchRead switch positions of VEXnet Competition Switch and provide logical values for Autonomous and Driver modes
Gamepad AccelerometerRead analog value from VEX gamepad accelerometer
Gamepad ButtonRepresent one button on VEX gamepad and read logical value
Gamepad JoystickRepresent one control axis on x-yanalog VEX gamepad joystick and read values
LCD ButtonRead logical state of selected push button on LCD Display Module
LCD ScreenDisplay text and numerical value on specified line of LCD screen
Analog InputRead the value of a sensor attached to an analog input pin
Digital InputRead the digital value of an input pin
GyroscopeMeasure yaw rotation in degrees
Integrated Encoder ModuleMeasure the rotation of a motor in ticks
Optical Shaft EncoderMeasure the rotation of a motor in ticks
Ultrasonic SensorMeasure the distance to an object: 0.02 to 2.0 meters (m)
Arcade ModuleGet the right and left wheel speed values of a robot in an Arcade configuration
Field SimulatorView the simulation speed values of a two-wheel robot
Gamepad SimulatorLogitech F310 または Xbox コントローラーを使用した VEX ゲームパッドのシミュレーション値の取得
Gear TransmissionSet a scalar value (1 to 4) based on input values
Latch入力信号の変化に基づいて論理値をラッチ
Real TimeSlow down simulation time close to real time

トピック