I'm currently trying to use robot framework to automate a test involving a solenoid. I'm doing this through custom keywords with the following python code to control the phidget
def click():
solenoid = DigitalOutput()
solenoid.setChannel(0)
solenoid.setDeviceSerialNumber(xxxxxx)
solenoid.openWaitForAttachment(5000)
solenoid.setDutyCycle(1)
time.sleep(1)
solenoid.setDutyCycle(0)
solenoid.close()
The python code works as expected and the issue comes when I attempt to call it through RBFW. I have the python file imported as a library. I attempted using a different relay and this worked for me for a couple attempts, then stopped working, although the python code worked the entire time. This is the error I get when I run it through robot framework:
PhidgetException: PhidgetException 0x03 (Timed Out)
No matching devices were found to open. Make sure your device is attached, and that your addressing parameters are specified correctly. If your Phidget has a plug or terminal block for external power, ensure it is plugged in and powered.