title: CFE-Smart_Virtual_Platform-1: Switch used in virtual_platform_start_active_switches was not found in switches section
Related Config File Sections:
This error occurs when you use a switch in
virtual_platform_start_active_switches which is not defined in your
This is how it should look:
switches: s_ball_switch1: number: s_ball_switch2: number: s_ball_switch3: number: # Two switches should be active at start virtual_platform_start_active_switches: - s_ball_switch1 - s_ball_switch2
Alternatively, this could be a comma separated list:
switches: s_ball_switch1: number: s_ball_switch2: number: s_ball_switch3: number: # Two switches should be active at start virtual_platform_start_active_switches: s_ball_switch1, s_ball_switch2
Using spaces instead of commas
In MPF versions before 0.54 you could also use spaces instead of commas. Even though this syntax was never officially supported in lists it still was supported code. This was also used in previous versions of the documentation and the tutorial.
# INVALID SYNTAX virtual_platform_start_active_switches: s_ball_switch1 s_ball_switch2 # note the space instead of a comma
To fix this turn it into one of the two syntaxes above. See How to add lists to config files for details.
Need more help troubleshooting?
Have a look at our Troubleshooting section. It might give you some hints for certain classes of problems.
What if this did not fix your problem?
Is something missing here? Do you have a helpful hint for others experiencing this error?
Related How To guides
Something missing or wrong? You can fix it!
This website is edited by people like you! Is something wrong or missing? Is something out of date, or can you explain it better?
Please help us! You can fix it yourself and be an official "open source" contributor!
It's easy! See our Beginner's guide to editing the docs.
Page navigation via the keyboard: < >
You can navigate this site via the keyboard. There are two modes:
General navigation, when search is not focused:
- F , S , / : open search dialog
- P , , : go to previous page
- N , . : go to next page
While using the search function:
- Down , Up : select next / previous result
- Esc , Tab : close search
- Enter : go to highlighted page in the results