주요 콘텐츠

이 페이지는 기계 번역을 사용하여 번역되었습니다. 최신 내용을 영문으로 보려면 여기를 클릭하십시오.

모델링

R2025b
하드웨어 연결을 위한 모델 준비, 하드웨어 프로토콜 지원을 위한 블록 추가

하드웨어 연결을 위한 Simulink® 모델을 준비하고, 하드웨어 프로토콜 지원을 위한 블록을 추가하고, 다양한 응용 사례를 다루는 예제를 참조합니다.

블록

Digital Output blockDigital OutputSet the logical value of a digital output pin
Digital Input blockDigital InputRead the logical value of a digital input pin
RGB LED blockRGB LEDSet the RGB LED to a desired color
Serial Receive blockSerial ReceiveReceive an [Nx1] array of byte data on the UART
Serial Transmit blockSerial TransmitSend an [MxN] array of data to the UART
Analog Output blockAnalog OutputSend an analog output signal to PTE30 pin
Analog Input blockAnalog InputMeasure the voltage of an analog input pin
Servo Write blockServo WriteDrive the servo motor to the specified angle
Line Scan Camera blockLine Scan CameraRead the data from a line scan camera
Momentary Switch blockMomentary SwitchRead the state of a momentary switch
DIP Switch blockDIP SwitchRead the state of a DIP switch
DC Motor blockDC MotorDrive a DC motor in either direction
Potentiometer blockPotentiometerRead the state of a potentiometer
Battery Read blockBattery ReadRead the battery voltage of a battery connected to the TFC Shield
Battery Indicator blockBattery IndicatorDisplay the battery voltage level with LEDs on the TFC shield
I2C Controller Read blockI2C Controller ReadRead data from I2C peripheral device or I2C peripheral device register
I2C Controller Write blockI2C Controller WriteWrite data to I2C peripheral device or I2C peripheral device register
PWM Output blockPWM OutputGenerate square wave on the specified output pin

도움말 항목