Skip to main content

Common Functions

File Transfer

You can directly drag and drop files from Host PC to Target (WPC device).

Drag and Drop File

For example: Drag the sample code from a folder on your computer directly to the list of target devices.

Run Script

Write or open main.py code in Editor. When finished, click the "Run script" button to execute the code, and the result will be displayed in Console.

Run Script

Example code:

import pywpc
print("Hello from main.py")
print("Hello from WPC Systems Ltd.")

Save Script

Edit code in Editor. If the file is not saved, an asterisk (*) will appear next to the filename.

After editing, click the "Save script" button. The system will pop up a confirmation window, please select "Yes" to confirm saving. The asterisk will disappear automatically after saving.

Save Script

Override main.py

This function allows you to overwrite main.py with the currently edited code (e.g., test.py).

Click the "Override main.py" button. The system will pop up a confirmation window, please select "Yes".

Override main.py

Close File

Click the red close button to close the file.

Close File