In this example we are using the PSoC Thermostat project we released yesterday to showcase how to use the Workspace Explorer to manage numerous examples. In this project you will notice that we have 5 separate projects all building on themselves to create a PSoC Thermostat example. Each project is identical with minor additions.
This example is used as a teach Lab on how to use PSoC. They teach the lab using these 5 examples incorporating numerous mix signal and digital communication peripherals.
Forum Post Attachments:
At the bottom of this post we are including the following items:
- Example Project Zip File
- Zip File of Images
- Project Schematic
- Component Configurations
The user can download the example project at the bottom of this post. The project uses the following list of Creator Components:
- ADC SAR Sequencer
The main.c firmware is included in the example project. Please review the commented sections for more details.
In this example we wanted to show users how they can manage multiple projects under the same workspace. This can be valuable when trying to work across two similar examples, testing tweaks to existing projects, or building multiple projects. For this example I wanted to walk the user through creating a Workspace and managing projects under that workspace.
The user can create a workspace when creating a new project. When creating a new project select the ‘+’ button to access the advanced settings. Name your project, select a location to save that project, and then select to ‘Create New Workspace’ and name that new Workspace. Continue with your normal selections to create a new project.
Once you have a Workspace created you will be able to add new projects into that workspace. To do this simple navigate to the ‘Start’ tab to create a new project. Select the location for your new project, select ‘Add to Current Workspace, and then continue with your normal project selections. This will create a new project in that same workspace.
You will see that in the example we’ve supplied for this post we have 5 examples in the workspace. This example is similar to the Thermostat example we provided in yesterday’s post.
Now that you have multiple projects in the Workspace you will want to move between those projects. To do this you will need to set the active project. You can do this by highlighting the project and then right-clicking on the project and selecting the ‘Set As Active Project’. This will bold the project name indicating that it is the active project.
When in your Workspace, if you wish to copy an existing project to expand on the content you can simply right-click on the project and select ‘Copy’. Then click in the Workspace and then right-click to paste the example. Creator will create a copy of that program and add it to the workspace. Then right-click on the project and select ‘Rename’ to change the name of the project.
In the attached example the projects were copied, renamed, and expanded to form a set of labs for users to learn Creator. In labs 4 and 5 the user will need to add in the PWM and I2C components, initializing the components to the stated configuration. This lab is used to teach the flow of Creator. Please feel free to use the examples as a guide to your project.
There’s no specific hardware for this example, instead we are learning about how to use the Creator tool to support multiple workspaces using an existing example.
Test Your Project:
This example centers on supporting and teaching users how to create multiple designs within a single workspace.
I hope this example can help you in your design.