メインコンテンツ

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

モデル化

ハードウェア接続用のモデルの準備、およびハードウェア プロトコルをサポートするためのブロックの追加

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

ブロック

Digital OutputSet the logical value of a digital output pin
Digital InputRead the logical value of a digital input pin
RGB LEDSet the RGB LED to a desired color
Serial ReceiveReceive an [Nx1] array of byte data on the UART
Serial TransmitSend an [MxN] array of data to the UART
Analog OutputSend an analog output signal to PTE30 pin
Analog InputMeasure the voltage of an analog input pin
Servo WriteDrive the servo motor to the specified angle
Line Scan CameraRead the data from a line scan camera
Momentary SwitchRead the state of a momentary switch
DIP SwitchRead the state of a DIP switch
DC MotorDrive a DC motor in either direction
PotentiometerRead the state of a potentiometer
Battery ReadRead the battery voltage of a battery connected to the TFC Shield
Battery IndicatorDisplay the battery voltage level with LEDs on the TFC shield
I2C Controller ReadRead data from I2C peripheral device or I2C peripheral device register
I2C Controller WriteI2C 周辺デバイスまたは I2C 周辺デバイス レジスタにデータを書き込む
PWM OutputGenerate square wave on the specified output pin

トピック