Contenuto principale

La traduzione di questa pagina non è aggiornata. Fai clic qui per vedere l'ultima versione in inglese.

Modellazione

Preparare il modello per la connessione hardware e aggiungere blocchi per supportare i protocolli hardware

Preparare i modelli di Simulink® per la connessione hardware, aggiungere blocchi per supportare i protocolli hardware ed esempi di riferimento con varie applicazioni.

Blocchi di comando

BatteryMeasure voltage level of battery in EV3 brick
DisplayDisplay label and integer on EV3 display
MotorControl power and direction of EV3 motor
SpeakerPlay tune from EV3 speaker
Status LightControl status light on EV3 brick
TimerMeasure elapsed time from timer in EV3 brick

Blocchi sensore

ButtonDetect status of EV3 brick button
Color SensorDetect color, reflected light, or ambient light using EV3 brick
EncoderMeasure incremental position and direction of motor connected to EV3 brick
Gyro SensorMeasure rate of rotation of gyro sensor connected to EV3 brick
Infrared SensorDetect button status on LEGO remote infrared beacon, measure beacon proximity and heading, and measure object proximity using infrared sensor connected to EV3 brick
NXT Touch SensorDetect status of EV3 brick NXT touch sensor
NXT Ultrasonic SensorMeasure distance between NXT ultrasonic sensor connected to EV3 brick and nearest object
NXT Gyro SensorMeasure rate of rotation of NXT gyro sensor connected to EV3 brick
NXT Sound SensorMeasure surrounding sound levels using NXT sound sensor connected to EV3 brick
Pixy2 Vision SensorRepresent connected CMUcam5 Pixy2 vision sensor and tracks object (color blob)
Touch SensorDetect status of EV3 brick touch sensor
Ultrasonic SensorMeasure distance between ultrasonic sensor connected to EV3 brick and nearest object

Blocchi del protocollo di comunicazione

I2C Register ReadController device reads data from the I2C peripheral device or I2C peripheral device register(s)
TCP/IP ReceiveRicevere dati su rete TCP/IP da host remoto
TCP/IP SendInviare dati su rete TCP/IP a un altro host remoto
UDP ReceiveReceive UDP packets from another UDP host on an Internet network
UDP SendSend UDP packets to another UDP host on Internet network

Argomenti

Esempi in primo piano