Can we update simulink Nvidia Jetson UDP block parameter at runtime?

3 views (last 30 days)
Need to update simulink Nvidia Jetson UDP send/receive block parameter at runtime.
After build and deploy a simulink model in jetson which is having Nvidia UDP send/receive block can we update its parameter(IP address) on runtime?
Is there any solution for it?

Answers (1)

Sumukh
Sumukh on 6 Nov 2024
The "Remote IP Address" block parameter in "UDP Send" block and "Local IP port" block parameter in the "UDP Receive" block are nontunable parameters, i.e., parameters whose value cannot be changed during simulation. This can be checked in two ways:
  1. During the simulation, the block parameter cannot be edited.
  2. The flag “read-only-if-compiled” describes the parameter attributes obtained programmatically. You can refer to the following documentation to understand more on nontunable parameters in Simulink: https://www.mathworks.com/help/simulink/ug/using-tunable-parameters.html#bu1up6v-1
If the intention behind changing the IP address during runtime is to pass multiple IP addresses to the block, a possible workaround is to use enabled/triggered/switch-case-action subsystem to place multiple send/receive blocks in a single model with different IP addresses. Kindly refer to the following MATLAB Answer from MathWorks Support Team to know more about the workaround:
I hope this answers your query.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!