Hi everybody,
I'm currently working on InterfaceKit 0/16/16 connected to a RaspberryPi 3. All my scripts are in Python, and the libraries are compiled on the Rpi (the Hello World works, and DigitalInput and Output tests works too).
My problem is to run 2 scripts (one for inputs and the other one for outputs) in parallels. In other words, that's what I want to do :
- Run a script like a daemon which watch the inputs (with a infinite loop)
- When it works alone, all is right
- Running a one shot script to activate an output for a moment (few seconds), it doesn't works and say "Timed out".
- If the first script isn't started, the second one works fine
Following my many tests, I have some questions :
- Are there a solution to listen every inputs ? The variable PHIDGET_CHANNEL_ANY doesn't work and only watch channel 0. And if I put -1 (its value) it watch 0 again.
- Why 2 scripts can't be run in the same time to access to the InterfaceKit ? Are there a solution to do the same ?
- Is the infinite loop to watch inputs the best solution ?
If you need more informations to answer me, please let me know.
Thank you for your time.
Best regards