setexp function

Setter function to set a variable of an experiment object