I am using the raw ethernet blocks in xPC Target. Since I must run the Ethernet Receive block slower than the Network Buffer Management block, I am processing larger chunks of data from ethernet buffers. Since processing of the ethernet packets isn't occurring at the base rate of the model, TET isn't an indicator of how much processing can be done before getting into overload conditions. Hence I want to know how to determine the number of packets that can be safely processed without risking overloading the CPU and to display how much time the process actually takes. Is there some standard way of doing this?
One way is to calculate the exact time using clock statements from time.h into the S-function used for the application. However, in this ethernet application editing the S-functions would be too complicated.
Best Answer