Directly setting a VENUS Variable from a Python Script

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

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

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)