Hello, could you specify what you are trying to model? While the C-Script is very powerful I would be cautious in using it as it can cause you a lot of headache.
If you are simply looking for a variable frequency triangular waveform generator have a look at this ticket: Triangular wave with variable frequency - #2 by Bryan_Lieblick .