Hello, I want to ask you a question. How do I get the values in the input and output ports of the robot through a Python script

12 For example: Input [0] and output[2]

You need to add boolean signal behaviours to ports in the signal map and then read or write the values of those signals. Take a look at vcBooleanSignalMap and vcBoolSignal in the VC help file.