Changing Network Sample Rate

How do I change the EtherCAT network sample rate? I tried just using controller->SampleRateSet(500) but it looks like I also need to recreate the ENI file? I do not see any options related to sample rate in rsiconfig so I’m not sure how to achieve this.

2025-06-19 11:01:18.613 (  18.798s) [main thread     ]   RapidCodeWrapper.cpp:171    ERR| Network message 121: (i) 00:00:01.170   EtherCAT   RMPNetworkFirmware.cpp:833  EtherCAT starting with cycle period=0.002000 [sec]
2025-06-19 11:01:18.613 (  18.798s) [main thread     ]   RapidCodeWrapper.cpp:171    ERR| Network message 122: (i) 00:00:01.170   EtherCAT             EtherCAT.cpp:251  EtherCAT Configuration file Cycle Time set to 1000 microseconds
2025-06-19 11:01:18.613 (  18.798s) [main thread     ]   RapidCodeWrapper.cpp:171    ERR| Network message 123: /!\ 00:00:01.384   EtherCAT             EtherCAT.cpp:769  State changed from Initialisation to Stopped

Hi @edco,

You want to create an ENI file with the new sample rate.

Fresh system without a network running.
Use SampleRateSet
Discover the Network.
Generate a new ENI file.
Start the network.

I believe RapidENI will generate an ENI file at the controller’s current sample rate.

1 Like

The RMP sample rate is in the rsiconfig generated settings.xml, you can see it here: