wiki:Docs/Prog/Started/Environment

Environment Setup

About

This document will discuss in detail how to setup your environment to program the Cardinal 825 Digital Weight Indicator.

Features of the Cardinal 825 Programming Environment

  • Subversion integration for instant access to the latest source code.
  • Full featured Eclipse IDE which is quickly becoming the standard for developers everywhere.
  • Mylyn integration with the Cardinal 825 Tech site for quick access to tickets and progress.
  • Full debugging capabilities (coming soon).

Required Files

The following files should be included on the 8GB USB flash drive that was sent with your order.

  • VMware Player - Required to run the Cardinal Fedora 825 Programming Environment.
  • Cardinal Fedora 11 825 programming package

Installing the Environment

  1. Insert the 8GB USB flash drive into your computer.
  2. Install VMware Player by double clicking on the icon in the directory of the flash drive.
  3. Follow the steps listed choosing the default values to install.

  1. Reboot your computer if required.

  1. Copy the Cardinal 825 Programming Environment package to your computer in any directory you wish.

Starting the Environment

  1. Start VMware Player by going to Start -> Programs -> VMware and choosing VMware Player

  1. Start the Cardinal 825 Programming Environment by choosing Open and choosing the Cardinal 825 Programming Environment.vmx file from the directory you extracted it to in "Installing the Environment step 5".

  1. VMware will start.

  1. Press Take Ownership when the prompt appears.

  1. If this error appears press No.

  1. VMware will power up Fedora Core 11.

  1. Login by clicking on user, entering password 123456 and clicking Login.

  1. The Cardinal 825 Programming Environment will start automatically.

Using the Environment

Welcome Screen

The welcome screen gives you basic information about the Eclipse IDE. You can choose to view the information by clicking on the individual images or simply close it by pressing the X button in the corner.

Project Explorer

The project explorer gives you an overview of projects that are in your workspace. The Cardinal 825 Programming Environment is set to use /home/user/Workspace as the default workspace. You can change this by selecting File > Switch Workspace.

On the initial startup you will notice eight projects which have been preloaded for you.

  • chkwgh - Checkweigher
  • dfc - DFC Batcher
  • HelloWorld - Tutorial application
  • ids - Truck / ID Storage
  • lib825 - 825 library
  • libapp - application library
  • libsql - SQL database library
  • mscale - Multi-scale

Task Repositories

Task repositories list the available bug tracking repositories. The Cardinal 825 Trac repository has been setup for you but you will need to enter your individual username and password for the Trac site (the one you used to login to the Wiki).

  1. Right-click on Cardinal 825 Trac and choose Properties.

  1. Uncheck anonymous and enter your validation credentials. When you are finished, press Validate Settings in the bottom-left.

  1. If you receive no errors you can press the "Save Password" checkbox and press Finish to save the settings.

Task Queries

Task queries allows you to generate custom queries to view tickets for the Cardinal 825.

  1. Right click on the Cardinal 825 Trac repository and choose New Query....

  1. We're going to create a query that will show all open tickets for the 825. Enter the information as shown in the screenshot and for Status choose all available except for closed. Press finish when you are done.

  1. A notification will appear to show you new tickets are available. This works fine but if you are forgetful like me you need a more permanent solution.

  1. Choose Window -> Show View -> Other...

  1. Choose Task List from the Tasks folder and press OK.

  1. Task List will now display on the bottom pane. Let's click and drag it next to the Task Repositories on the top-left.

  1. You will now have two categories. One is Uncategorized which is all tickets that we do not have a query for. The other is named * which is the query we just created. That's not a very intuitive name so let's rename it. Right-click on the * and choose rename. Enter All Tickets and press enter.

Subversion

Every project distributed with the Cardinal 825 Programming Environment comes attached to a Subversion repository. Subversion repositories allow you to get the most up to date source code with the click of a button.

  1. Right-click on the HelloWorld project and choose Team -> Update.

  1. You now have the latest available source code for the HelloWorld project.

Cardinal recommends creating your own repositories for your projects. For more information on doing so please see Google's Listing on Subversion Guides.

Last modified 15 years ago Last modified on 07/06/09 14:34:35

Attachments (32)

Note: See TracWiki for help on using the wiki.