The "See Also" Tab to the right just saved me the trouble it seems, i finally found the page that has the info
Somehow I missed this during my search, but to ansfer for anyone else who stumbles upon here later on:
% Ideally I could do something like:
% extern int IncTest;
function TestFunction()
global IncTest;
% Function
% .
% .
% .
IncTest = IncTest + 1; % Done at the end of function
end
Define IncTest as a global, and then in the Data and Ports menu set a new data variable to be named IncTest, and set the Scope to be Data Store Memory.
Funny enough, I did these two steps seperatly in previous attempts, but both together gets me exactly what I need.