The code below set the 'current limit' of an instrument.  Modify the code to set the 'voltage limit'.
' Set the current limit of device power supply to a value
Public Function SetLimt(dpsnum As NAME_1, currlim As Single) As Boolean
TheHdw.DPS.Chans(dpsnum).CurrentLimit=currlim
SetLimit = True
Exit Function Respond with at most 300 words.
user