You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
drs.set_slave_add and drs.get_slave_add were replaced by a property. Set the slave address with drs.slave_addr = 5 and get with address = drs.slave_addr
drs.set_timeout and drs.get_timeout are also proprerties. Set with drs.timeout = 5 and get with timeout = drs.timeout
drs.closed_loop is now drs.close_loop (verb form) to indicate that is an action.
drs.get_param_bank returns a dictionary instead of a nested list. Printing behavior stays the same.
drs.read_vars_x functions return a dictionary, as well as printing the values. Somewhere in the future, implicit looping (n=10000 loops 10000 times for example) will be removed.
All commands run through validation. In case validation fails, a descriptive exception will be raised, which can be used to trace the problem.
Connecting to a given device is done during instantiation of the class. This means that instead of running drs = pydrs.SerialDRS() and then drs.connect(), you should run drs = pydrs.SerialDRS("COM1", 3000000) for example.