Search found 322 matches
- 10 Jul 2023, 11:09
- Forum: RevPiModIO
- Topic: Python RevPiModIO library sometimes fails to change output state
- Replies: 7
- Views: 24859
Re: Python RevPiModIO library sometimes fails to change output state
Hi Alex! It could really be that `shared_procimg=True` cause that problems. I just have a similar problem report with the flag on GitHub. If you do not need the `shared_procimg=True` because no other Python processes access the process image, I would ask you to remove it / set it to False. If you co...
- 10 Jul 2023, 07:37
- Forum: RevPiModIO
- Topic: Python RevPiModIO library sometimes fails to change output state
- Replies: 7
- Views: 24859
Re: Python RevPiModIO library sometimes fails to change output state
Hi Alex!
The use of RevPiModIO looks just right. You are probably using a single instance for your entire program, which is recommended.
For me, it would be important to know which parameters you use in the instance (autorefresh, shared_procimg, etc.).
Gruß
Sven
The use of RevPiModIO looks just right. You are probably using a single instance for your entire program, which is recommended.
For me, it would be important to know which parameters you use in the instance (autorefresh, shared_procimg, etc.).
Gruß
Sven
- 23 Jun 2023, 08:47
- Forum: RevPiModIO
- Topic: RTD value is not displayed well.
- Replies: 2
- Views: 3553
Re: RTD value is not displayed well.
Hi kimgama! You are using the "Memory-Values", which just define the type of your analog inputs. Just change your Code like this: # Change RTD_Value_* to AIn_* ai_value = rpi.io['AIn_1'].value / 10 ai_value2 = rpi.io['AIn_2'].value / 10 Now you get the temperature with a decimal place. Gre...
- 19 Jun 2023, 09:06
- Forum: Software
- Topic: Access & Modify Pictory Configuration
- Replies: 4
- Views: 2534
Re: Access & Modify Pictory Configuration
Hi mcww_rd
After copying a new piCtory configuration, did you reset the driver of the piBridge - or restart the Revolution Pi?
When a new config.rsc is created, e.g. `piTest -x` must be called so that the driver read and applies the new configuration.
Greeting
Sven
After copying a new piCtory configuration, did you reset the driver of the piBridge - or restart the Revolution Pi?
When a new config.rsc is created, e.g. `piTest -x` must be called so that the driver read and applies the new configuration.
Greeting
Sven
- 08 Jun 2023, 07:55
- Forum: RevPiModIO
- Topic: RevPiModIO 20ms Exceeded - Can not hold cycle time
- Replies: 2
- Views: 3754
Re: RevPiModIO 20ms Exceeded - Can not hold cycle time
Hi waisha. It looks like a resource problem on the RevPi. Of course, when the CPU is busy and the system starts to be unoperable, revpimodio2 can of course no longer maintain the cycle time and these warnings are issued. We now have to find out what is happening there. - In the command line, for exa...
- 08 Jun 2023, 07:21
- Forum: Software
- Topic: Autostart python folder
- Replies: 9
- Views: 2743
Re: Autostart python folder
Hi waischa. Did I understand you correctly that your Python program does not contain any GUI elements, so it could actually run on the command-line? Then you would have the possibility to use RevPiPyLoad. The service starts your program automatically and also monitors it. If it crashes, it can be re...
- 28 Apr 2023, 10:12
- Forum: Software
- Topic: RevPI Compact after flash Buster plc commander does not start
- Replies: 4
- Views: 2541
Re: RevPI Compact after flash Buster plc commander does not start
Hi novofer! This seems to have something to do with a too old version of the zeroconf library, which is available in Buster. We once created a backport package, which you can please test. Download: http://revpimodio.org/dnl/python3-zeroconf_0.26.1-1~bpo10+1_all.deb Download and installation via cli ...
- 10 Mar 2023, 19:27
- Forum: Software
- Topic: RevPi ModIO2 and OOP
- Replies: 2
- Views: 3302
Re: RevPi ModIO2 and OOP
Hi :D On the Revolution Pi should be only one instance of RevPiModIO. So you just have to pass your instance to the other classes and your program should work :D By that method you can write control classes independently of the instantiation of the RevPiModIO module. The control classes will work al...
- 06 Mar 2023, 08:16
- Forum: Hardware
- Topic: Emergency stop
- Replies: 1
- Views: 1684
Re: Emergency stop
That can be implemented exactly like this. Your emergency stop simply removes the 24 V from pin 4 on connector X2 (the top one). This only removes the voltage for the actuators (valves), the module and the inputs can continue to be used. Note: The internal status of the outputs is still set to High!...
- 23 Feb 2023, 16:29
- Forum: Hardware
- Topic: PiCtory settings for MIO pwm output
- Replies: 4
- Views: 3501
Re: PiCtory settings for MIO pwm output
Hi Makoto! In general your Python code is okay. Just add the rpi.exit() at the end to be sure all IOs are set as you want - Especially the .value = int(0) import revpimodio2 import time rpi = revpimodio2.RevPiModIO(autorefresh=True) rpi.io.PwmDutycycle_1.value = int(496) #49.6% duty cycle rpi.io.Dig...