Random Feeder
AlexRad
✭
in RobotStudio
Hello,
I am having trouble with a feeder smart component which is supposed to generate two kinds of objects(Piesa_M and Piesa_N) in a random order.
If the random number is >0,5 then Piesa_N is created, otherwise Piesa_M is created. But for example if the random number is >0,5 two times in a row , the Comparer Output is already set to 1 from last time so a new object fails to create.
Can someone please help me
Thanks,
Alex
I am having trouble with a feeder smart component which is supposed to generate two kinds of objects(Piesa_M and Piesa_N) in a random order.
If the random number is >0,5 then Piesa_N is created, otherwise Piesa_M is created. But for example if the random number is >0,5 two times in a row , the Comparer Output is already set to 1 from last time so a new object fails to create.
Can someone please help me
Thanks,
Alex
Tagged:
0
Comments
-
Hello,
Why don't you reset the output every time it creates new object or try and create a new SC.
/Adnan
0
Categories
- All Categories
- 5.5K RobotStudio
- 391 UpFeed
- 18 Tutorials
- 13 RobotApps
- 297 PowerPacs
- 405 RobotStudio S4
- 1.8K Developer Tools
- 249 ScreenMaker
- 2.7K Robot Controller
- 305 IRC5
- 59 OmniCore
- 7 RCS (Realistic Controller Simulation)
- 3 RobotStudio AR Viewer
- 773 RAPID Programming
- 17 Wizard Easy Programming
- 105 Collaborative Robots
- 4 Job listings