@Vincent_Jiang
Thank you for sharing the newly exported folder. I reviewed the model and identified the root cause, along with a simpler implementation approach.
I noticed that you are currently using a Progressive Selector block. While the solution below can also be implemented with the Progressive Selector, if you do not require gain ramping or smooth switching between modes, I would recommend using a standard Selector block instead to keep the implementation simple and easier to troubleshoot.
Why the signals are not visible
The reason the signals are not appearing is that they are not connected correctly.
The reference signals from both the Grid Following (GFL) and Grid Forming (GFM) controllers are bundled signals (D_0, D_1, D_2). A Selector block can only process a single signal at a time and cannot directly operate on a bundled signal. Therefore, the bundled references must first be separated before they can be routed through the selector.
To achieve this, we will use three individual selector paths, one for each reference signal. At the same time, we can also clean up the model layout to make it more readable.
Step 1: Name the Signals
- Bring the signals out of the GFL, GFM, and inverter reference blocks.
- Go to: Home → Tools → Name
- Select each signal line and assign a meaningful name.
This will make signal routing much cleaner and reduce the number of long crossing wires in the schematic.
Repeat this process for all reference signals.
Step 2: Create a Dedicated Scenario Area
- Copy the newly named reference signals and paste them into an empty section of the schematic. We’ll use this area as the scenario selection area.
- Next, right-click on each signal and press Ctrl + B to create a breakout.
- A breakout box similar to the one below will appear:
Step 3: Connect the Breakouts
- Connect the breakout blocks to the corresponding signals.
- While placing the breakouts, you may need to rotate them. Use: Ctrl + Alt + Y
- When connecting, a Bundle Connection dialog will appear. Simply click OK.
After connecting all references, your schematic should look similar to this:
Step 4: Add the Selector Blocks
- Add three Selector blocks, one for each reference signal (D_0, D_1, and D_2).
- Connect them as shown below. I also added control signal connectors to improve signal routing and keep the schematic organized.
Step 5: Run the Model and Verify the Results
- Run the simulation and verify each operating mode.
No Scenario Selected
GFL selected
GFM selected
You can also create a subsytem and save it as a personal library component.
I hope this clarifies the issue and helps you implement the scenario selection successfully. Please try the steps above and let me know if you encounter any difficulties or if the behavior differs from the results shown here.
Thanks