Update matrix from serial input and compute in parallel?

unhandled

#1

Say, I have an Arduino that continuously sends values of matrix elements:

Serial.print(i);
Serial.print(j);
Serial.print("=");
Serial.print(x);
Serial.println();

For example:

12=7
23=5

With these values, a 4x4 matrix should be updated:

┌0 7 0 0┐
│0 0 5 0│
│0 0 0 0│
└0 0 0 0┘

Next step: Repeatedly do time consuming calculations using the matrix, and generate geometry. This should happen in parallel to reading values.

Can this be done with Grasshopper? If so, where do I start?

I already played with Firefly’s Serial Read, but this component only reads one value when I run the solver.