Hello,
I don't have time to do a prettier code. But in attach you can find the way of:
- generate points for a growing ramp from voltage min to voltage max
- selecting the period of this ramp
- generate points for a reducing amplitude ramp
Then connect the points to the anlogue output vi.
i hope this helps
Software developer
www.mcm-electronics.com
PORTUGAL