Search Results

by Raphisfa
Mon Jul 03, 2023 1:59 am
Forum: Python
Topic: setTargetPosition Variable Speeds
Replies: 3
Views: 17401

Re: setTargetPosition Variable Speeds

Hi, when I am in ControlMode 1 how do i affect the direction of moving. I read at the API Page that I have to work with minVelocity/maxvelocity but I don't know how to implement that correctly?

Thanks, Raphi :D
by Raphisfa
Mon Jun 26, 2023 7:07 am
Forum: Python
Topic: STC1002 running without setTargetPosition
Replies: 1
Views: 12452

Re: STC1002 running without setTargetPosition

currently using 'mot4.setControlMode(1)' which works, but I can't let it go in the other direction. Any ideas how to make it run in the other direction :?:
by Raphisfa
Mon Jun 26, 2023 12:31 am
Forum: Python
Topic: STC1002 running without setTargetPosition
Replies: 1
Views: 12452

STC1002 running without setTargetPosition

Hello everyone, so i got this code: #! /usr/env/python from Phidget22.Phidget import * from Phidget22.Devices.DigitalInput import * from Phidget22.Devices.Stepper import * import time #Stepper moving up def motorHoch(): mot4 = Stepper() mot4.setHubPort(0) mot4.setDeviceSerialNumber(682067) mot4.open...
by Raphisfa
Mon Jun 12, 2023 6:54 am
Forum: Python
Topic: stepper moving with getState
Replies: 2
Views: 12859

Re: stepper moving with getState

Thanks. edited the code a bit and it works now. now i want to loop this: def onStateChangeTop(self, state): print("State [" + str(self.getHubPort()) + "]: " + str(state)) if state == 1: print("Top: OK") motorStart() print("gestartet") else: print("Top: St...
by Raphisfa
Mon May 22, 2023 3:09 am
Forum: Python
Topic: stepper moving with getState
Replies: 2
Views: 12859

stepper moving with getState

Hi I am trying to let my stepper run as long as my Digital Input which is a Button is unpressed. When its unpressed i get: State [3]:1 ok but my stepper is not moving only a little "clack" to hear. #! /usr/env/python from Phidget22.Phidget import * from Phidget22.Devices.DigitalInput impor...