Input to the simulation during runtime

I want the Python API to take in an input

It gives EOF error with input() or raw_input()
How to take a value then from a user as soon as simulation button is pressed ?

Do you mean a keyboard input? I’m not sure if it works the same way inside VC as it would in a standard python application. Need to do some testing.

Has anyone else done this before?

Can you describe your use case?


We tried with CSV files and it worked great.

We created a standard c# .NET application with text boxes, sliders etc. when you input something, it will update a specific CSV file.

You can then read this CSV file continuously during the simulation and update the simulation as required.

Good luck!