I need to send measurements via ethernet from an embedded board to a PC application developed in c# which will plot and save it.
The data in the board is formatted in the following way:
typedef struct
{
float current[200];
float ctrl_voltage[200];
float speed;
float position;
}logData_t;
logData_t embedded_data[6];
I am able to receive embedded_data
in the c# application in a byte[] buffer
, the question is, how do I convert this buffer
in a format similar to the one shown above so that I can access the different fields in a consistent way?
Thank you for the suggestions.