Jeffrey,
Sorry-- turned in just after posting that. Thought the bugs were intentional as a 'test' for students -- but maybe not. In any case this is the 'private' forum so probably ok to share.
It appears that it attempts to grab data from 2 linescan cameras so I commented out the set of loops associated with TFC_LineScanImage1 for now as I don't have a 2nd camera.
Second, it looks like the argument being passed to TFC_LineScanImage0 was incorrect in that if you did the math then i*8+j would not result in sequential values 0 to 127 but skipping and overlapping indices. The correction for that argument is "i*16+j".
In fact the dual loop thing isn't needed unless it was a copy from CW intended for something else-- you could just have a single loop 0 to 127 and make it much simpler to access the data, but I left in just in case.
I copied over the end of line condition (where it selectively prints out "\r\n") to the loops associated with TFC_LineScanImage0 and corrected the if condition to be (i==7) && (j=15) as the condition (i*8)+j==127 was also in error. (could have changed 8 to 16 here too but went a different more easy to read way).
So my final code for grabbing the data from camera and sending to terminal:
for(i=0;i<8;i++) // print one line worth of data (128) from Camera 0
{
for(j=0;j<16;j++)
{
TERMINAL_PRINTF("0x%X",TFC_LineScanImage0[(i*16)+j]);
if((i==7) && (j==15)) // when last data reached put in line return
TERMINAL_PRINTF("\r\n",TFC_LineScanImage0[(i*16)+j]);
else
TERMINAL_PRINTF(",",TFC_LineScanImage0[(i*16)+j]);
}
wait_ms(10);
}
Also, I used TeraTerm to capture the data-- no need for LabView. I copied over the values from the terminal display to a vi editor, saved as CSV, then in Excel converted the values to decimal.
Here is my Excel chart of 3 captures-- with line in field of view center, left and right:

Which pretty much matches my o-scope results. On to data processing!!