You should always start with LabVIEW:
1. Put the 2D array and col, row on the front panel
2. Put a CLF node on the diagram, and wire the 2D array, row, and col the the CLF node
3. Right click the CLF node, let LabVIEW create the C code for you
4. Open the C code in you C compiler, and finish the coding.
George Zou
George Zou