Forum Discussion
Altera_Forum
Honored Contributor
21 years agoNaN is for Not a Number. It seems like you might have a memory corruption, like something is setting the Total_output value to something other than zero between the time you initialized the value and tried to print the value.
If you happen to have an FS/2 black box, you could set a trigger to go off when the memory location of Total_output is written. This could indicate what code is overwriting your value.