These are chat archives for BinPy/BinPy
examplesto show a stepper motor driver circuit using multivibrator, counter and this Stepper Motor along with an oscilloscope ... this gui doesnt work as expected when run as a code ... only works in line by line execution ... something to do with "qt's rule of app.exec must be in main thread" i.e GUI needs to work from
MainThreadcould you look into it ?
sm = StepperMotor("PaperFeeder", *[ Connector() for i in range(4) ]) # Note the error when initializing ( use ipython ) sm.rotate(steps = 10, rpm = 1) # This works for i in range(10): sm.rotate(rpm = 1) sleep(1) # Gui hangs and only when the for is exited the display is updated .... # This doesnt get updated at all if run as a code as the MainThread is terminated at the end of for
ERROR: Current Configuration is invalid. Restoring valid state from history. ERROR: Restoration Failed, History invalid. Restoring history to 1000. Preserving the current angle