Is there a way to run a python script in VENUS and have it return a value to an existing variable in VENUS and set it during runtime?
Thanks!
1 Like
Stefan
2
I think this depends on whether you have Venus 6 or not.
In Venus 6 I believe you can use the built-in REST API exactly as you described. This post has some details.
Venus 4 is harder, there’s different ways of doing it that I’ve seen. The easiest might be going through COM objects. Check out the post below.
easiest way is to have your python script output the data to a file and have venus ingest that file.
1 Like
Stefan
4
Yes this is the way to go if the variable isn’t dependent on the actions of the robot (frankly the vast majority of cases)