There is a relay library for digsilent* i have a manual to create relays and components at digsilent* but its on spanish