upgrading to phidget 22: Stepper 1063, digital input
Posted: Tue Dec 07, 2021 4:58 pm
I have a 1063 (discontinued) stepper that I'm trying to upgrade from phidget21 to phidget22. The person who did the programming has left, and this is the first time I'm trying to really upgrade/maintain this code.
-I have two major features that don't seem to have translated well to phidget22. There is a digital input on the 1063 that we are using to see if the stepper has hit the limit switch. I can't get this to work using the phidget22 "DigitalInputGetState" and can't find anything else that might work. What should I be using to tell if this limit switch is depressed?
-The second issue is that the code extensively uses the "StepperGetCurrentPosition" with phidget21. Is there something in phidget22 that can work like this? I saw a post addressing this, topic 8725 (I can't post the link). My code uses the StepperGetCurrentPosition extensively - I have two of the steppers to run an x-y scan, and will leave it at a position, exit the program, and would like it to know where it is when I open the program the next time.
Any insight on how to get this old stepper to work with the phidget22 upgrade to the system, or should I just roll back everything to phidget21?
-I have two major features that don't seem to have translated well to phidget22. There is a digital input on the 1063 that we are using to see if the stepper has hit the limit switch. I can't get this to work using the phidget22 "DigitalInputGetState" and can't find anything else that might work. What should I be using to tell if this limit switch is depressed?
-The second issue is that the code extensively uses the "StepperGetCurrentPosition" with phidget21. Is there something in phidget22 that can work like this? I saw a post addressing this, topic 8725 (I can't post the link). My code uses the StepperGetCurrentPosition extensively - I have two of the steppers to run an x-y scan, and will leave it at a position, exit the program, and would like it to know where it is when I open the program the next time.
Any insight on how to get this old stepper to work with the phidget22 upgrade to the system, or should I just roll back everything to phidget21?