Simulink Realtime: Define Target Using Script-Line Not sltrtexplr
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Rashid
am 12 Aug. 2017
Bearbeitet: Brian Hannan
am 12 Aug. 2017
In xPC Target, one could define a target with the command
target = xpc('TcpIp',address,port);
As of release 2017a, it seems this has been removed and the
slrt('TargetName')
command is required instead. While this works fine, it requires setting up the target parameters using the GUI interface with the slrtexplr command to be the same for every host and every target. For communication with a number of different target/host pairs, this means manually going through and making sure that the GUI-controlled target definition matches for each pair, which is somewhat cumbersome.
Is there some way to define a target through the script-line interface, like with the xpc command above, instead of using slrtexplr?
0 Kommentare
Akzeptierte Antwort
Brian Hannan
am 12 Aug. 2017
Bearbeitet: Brian Hannan
am 12 Aug. 2017
Use
tg = slrt;
tg.TcpIpTargetAddress = '10.10.10.10';
tg.TcpIpTargetPort = '22222';
etc.
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Target Computer Setup finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!