Input to the simulation during runtime

Forum Forums Visual Components 4.0 Python Programming in VC Input to the simulation during runtime

This topic contains 2 replies, has 3 voices, and was last updated by harizon9 harizon9 9 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #6917
    Avatar
    haroon
    Participant

    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 ?

    #6989
    eme
    eme
    Moderator

    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?

    #7264
    harizon9
    harizon9
    Participant

    Hi,

    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!

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.