11-14-2016 02:59 PM
The TCP Server VI has many variable which need to be sended to the client. But not all of this data is needed on each request. Some variables are requested more frequently compared to others. It is unnecerssary to send the all the data all the time. What is an elegant way of implementing this where the client asks for one or a multiple combination of these datasets?
Cluster of 8 x UNIT8 - Fuse information - 1Hz
UINT8 - Voltage - 5Hz
Cluster of 8 UINT32 - Motor speed - 100Hz
UINT32 - Elevation - 200Hz
etc....
11-14-2016 03:08 PM
You might want to have a look at the STM library that NI Systems Engineers put out. It basically uses a string to name what is being requested and/or supplied. So the client sends the command string to the server, the server recieves and deciphers the string and replies with the required data. Nothing really fancy needed.