Setting Numerical Values
For script arguments that expect a number, the following options are possible:
- Pass in the number directly.
oModule.EditVoltage('Voltage1', ['NAME:Voltage1', 'Voltage:=', 3.5])
- Pass in a string containing the number with units.
oModule.EditVoltage('Voltage1', ['NAME:Voltage1', 'Voltage:=', '3.5V'])
- Pass in a variable name.
var = 3.5
oModule.EditVoltage('Voltage1', ['NAME:Voltage1', 'Voltage:=', var]