I'm attempting to use the Support Package for Arduino Hardware to make an Ethernet shield equipped Arduino Due send data from multiple sensors over TCP/IP to a Simulink model running on the PC. I can run the example "arduinodue_tcpsend" which takes the output of a "Counter Limited" block with endpoints [0 255] and routes that to the input of the Arduino "TCP/IP Send" block.
Extending this example by using a "Mux" block to combine the outputs of two "Counter Limited" blocks and send the vector signal to the "TCP/IP Send" block produces the following error:
Error in port widths or dimensions. Output port 1 of 'arduinodue_tcpsend/TCP//IP Send/Data Type Conversion' is a one dimensional vector with 2 elements.
Error in port widths or dimensions. Input port 1 of 'arduinodue_tcpsend/TCP//IP Send/TCP Send' is a one dimensional vector with 1 elements.
Is there a simple workaround here? I noticed that the help documentation for the "Arduino Serial Transmit" block explicitly states that it "accepts vector or scalar uint8 data", but the documentation for the "Arduino TCP/IP Send" block says "accepts uint8 values". For my application, however, TCP/IP is highly preferable.