+1 vote
111 views
in Communication protocols by Alejandro Letrado Castellanos (19 points)
Hello, I'm currently using the Ethernet VE for transmiting lots of information to a online server, this is for a further analysis of the data from my side.
I have to use several "Eth VE Send blocks" for different data.

I want to know if it is possible to have a count of the number of messages the Typhoon send. Also I may change to the new Ethernet UDP/TCP communication and if it is possible this counter also with this other protocol.

Also, since I use several blocks I want to declare the IP in the model initialization script, how can I do it? Because I always got an error no mather what I use in the declaration.

Thank you in advance.

1 Answer

0 votes
ago by Luka Jovančić (236 points)

Hello Alejandro,

To answer the first question, currently there is no way to actively monitor the amount of sent messages other than monitoring elapsed time and dividing it by the sample time at which messages are sent from the send block. The UDP send and TCP send blocks also have a status function which returns how many messages weren't sent in case that is useful in your case. Perhaps you could also count received messages on the server which receives them.

As for defining IPs in the model initialization script there seems to be a bug currently so this cannot be done. One workaround is to have the send blocks be in a subsystem that way you can use the pre_compilation code in the mask editor to define IP addresses. I will attach an Example model so you can get a better idea of how this can be done.

Welcome to the Typhoon HIL user forum. Please check self-service support resources before posting a question.

HIL Specialist 2.0 courses
Documentation
Knowledgebase (Legacy)
Video support on demand
Youtube tutorials

For subscription-based support visit Typhoon HIL Support Center
...