Hello Eberhard,
You can do it by using C function in the Schematic Editor.
In C function you get the signal processing sampling time by using the variable "execution_rate".
Then you can do something like,
counter++;
t_set = 1/freq/execution_rate;
if(counter < t_set/2)
{
out = amp + offset;
}else
{
out = 0 + offset;
if(counter >= t_set)
{
counter = 0;
}
}
Where counter can be an int var, freq, amp and offset are inputs of the C function.