SA13 - Install Fest - BizBikes
SA13 - Install Fest - BizBikes
SA13 - Install Fest - BizBikes
Overview
The BizBikes sample project illustrates a completely integrated data collection and reporting
environment using RSBizWare. The BizBikes database contains sample data so that you can
view reports in a learning mode without connecting to a data source. The BizBikes RSSql
configuration is setup to read data from an RSView32 project, which contains simulation logic to
process the components of bicycles through various workcells. This RSView project also contains
numerous controls to allow you to initiate events (e.g., breakdowns).
The instructions contained in this document walk you through the steps required to restore
BizBikes onto your computer. Note that the BizBikes project, unlike most production
implementations, is configured to run on a single computer for ease of installation.
The process to set up BizBikes is similar to the process required to move an RSBizWare
application from a development to a production environment.
The BizBikes application consists of the following components:
You will be following these steps to restore the BizBikes application. The main section of this
document provides detailed step-by-step instructions; if you are familiar with RSBizWare, refer to
Appendix B for a condensed list of the required steps and settings.
1. Install the BizBikes application files.
2. Restore the SQL Server database.
3. Restore the data collection configuration (RSSql).
4. Create an ODBC Data Source for the SQL Server database.
5. Set up the licenses and user account privileges.
6. Start the BizBikes application (simulation/data collection) and view reports.
7. Stop the BizBikes application.
2 of 36
RSBizWare Licenses: Historian Server (e.g., 1500 Tag), PlantMetrics Server (e.g., 100
Workcell), Historian Author, PlantMetrics Author, RSBizWare Runtime User
RSView32 License
3 of 36
4 of 36
3. Click OK in the message box, and click Close to close the WinZip window. The BizBikes
application files have been installed onto your computer.
5 of 36
6 of 36
Change the Host Name to the name of your computer (in this example, rsi-saratoga).
Change the User Name and Password to a user name and password with administrative
privileges on your computer.
Click the Host / User button to copy the host name, user name, and password to all
connectors used in the configuration.
Click Apply and Close, and answer Yes to all confirmation screens.
7 of 36
2. Scroll through the list of drivers, select SQL Server, and then click Finish.
8 of 36
3. Name the DSN BizBikesDSN and enter a Description as shown. For the Server, you can
simply enter a period ( . ), which will point to the local machine by default, or enter your
computer name. Click Next >.
4. Select the With SQL Server authentication radio button, enter the Login ID as
BizBikesUser and the Password as bizbikesuser. Click Next >.
9 of 36
5. Check the option to Change the default database to, and select BizBikes for the default
database. Click Next >.
10 of 36
7. Test your DSN by clicking on the Test Data Source button. You should see a Tests
Completed Successfully message. You can click OK several times to close these screens
and close the Administrative Tools window.
11 of 36
3. Enter the hostname (not IP address) of your computer, and click OK.
12 of 36
13 of 36
2. Expand the Server Manager tree to, right click on the Servers icon, and select Register
Server.
3. Be sure the Server Type: is set to Production Server, and the Hostname: is set to the
name of your local machine. Click OK.
4. Expand the Servers tree to show your Production Server. The icon will have a question
mark on it since it has not been configured. Click on the icon to open the configuration
screen.
5. The page below will appear at the right of your screen. Enter BizBikesDSN, which is the
DSN we just created as the Data Source, and enter the User ID (BizBikesUser) and
Password (bizbikesuser) you used to create the DSN.
14 of 36
6. Click on the Advanced >> button to expand the page. Enter C:\BizBikes\HTML as the
HTML Root folder. This is where the Production Server will store the HTML files that are used
for RSBizWare reports. (These files were previously restored from the BizBikesSetup step.)
Click the Apply button.
7. When prompted to restart the Production Server, click Yes. After the server has restarted,
your database will be initialized, and the FactoryTalk data model will be automatically
created. After a few moments, the Production Server stoplight should be green.
15 of 36
2. Be sure the Server Type is set to Scheduler, and the Hostname is set to the name of your
local machine. Click OK.
8. Expand the Servers tree to show your Scheduler server. The icon will have a question mark
on it since it has not been configured. Click on the icon to open the configuration screen.
9. In the Database Connection Properties frame, select the BizBikesDSN ODBC Data Source
Name (DSN) that we configured earlier, enter bizbikesuser for both the User ID and
Password, and then click Apply.
16 of 36
10. You will be prompted to restart the Scheduler Server. Click Yes. After a few moments, the
Scheduler stoplight should be green.
2. Be sure the Hostname is set to the name of your local machine, and click OK.
17 of 36
3. As before, select the BizBikesDSN ODBC Data Source Name (DSN) that we configured
earlier, enter BizBikesUser for both the User ID and Password, and then click Apply.
4. You will be prompted to restart the PlantMetrics Server. Click Yes. After a few moments, the
PlantMetrics Server stoplight should be green.
18 of 36
2. This dialog will appear, with the hostname of your computer already filled in. Click OK.
3. The system will detect RSSql configurations already on your computer. You can now expand
the RSSql Configurations tree and see the connectors associated with the BizBikes
configuration.
19 of 36
1. Under the Production Server, right click on Data Collection. Select Register RSSql
Configuration from the popup menu.
2. In the RSSql Registration Wizard, press Next > to get to the next step, which allows you to
select where the wizard will retrieve the RSSql configuration. Since RSSql is running on your
local computer, press Next >.
20 of 36
4. Press Yes on the notice that is shown indicating that the RSSql configuration has already
been registered in the database. Press Finish to complete the RSSql registration.
21 of 36
In the Enterprise Manager, under Administration, click on Activations. You should see the
following information displayed. Select the appropriate licenses for the Production Server and
click the Assign a License button. To use BizBikes, you must assign (at a minimum) a
PlantMetrics 10 Workcell License, and an RSBizWare Runtime User License.
2. If you have registered a Scheduler Server, select the Scheduler Server from the drop down
menu at the top of the form. You must assign one of the Client runtime licenses to be able to
use the Scheduler client.
22 of 36
23 of 36
2. Select the License & Activation tab, select the Production Server from the combo box, and
check the Authoring licenses you wish to assign (both Historian Author and PlantMetrics
Author in this case).
3. If you also wish to assign this user activation for Scheduler, select Scheduler from the Server
Type list. Check the Scheduler Full Client License. Click OK to close the dialog.
24 of 36
The RSView project simulates the BizBikes enterprise by running work orders for bicycles
through a series of operations in the BizBikes factory. The BizBikes RSSql configuration reads
from data points in the RSView project.
25 of 36
4. To start the data collection from the RSView simulated BizBikes enterprise, open the
RSBizWare Enterprise Manager. Expand the tree to open the RSSql Configurations, rightclick on the BizBikes RSSql configuration, and select Start Configuration. Data collection
can also be started from the Production Client (under Configuration/Manage RSSql) and
from the RSSql user interface.
Note:
The RSView32 BizBikes project must be started BEFORE starting data collection. If
you started data collection before starting RSView32, you must stop and re-start data
collection after starting RSView32.
5. Now we are going to start production in the BizBikes factory. From the RSView32 project
main screen, click the Overview button.
6. On the Overview graphic, click the green Start Area Production button to start the
simulation. Click Yes when prompted to confirm your action. Note the other icons to Stop
Area Production and Reset Part Counts.
26 of 36
7. To view reports configured in the BizBikes application, open an instance of Internet Explorer,
and type in the following URL: http://<YourHostName>:8080. Notice that by simply entering
your computers hostname, you are taken the Quick Web home page distributed with
RSBizWare, where you can navigate to all the BizBikes RSBizWare reports using a simple
tree interface.
Note:
All reports in the BizBikes application have been configured to use the RSBizWare
server name of localhost. Because localhost is resolved to the name of the machine
executing the report, the BizBikes application will only work on the machine running
the Production Server. If you attempt to view reports from a machine other than the
one running the Production server, they will not function properly. If you want to view
reports from a remote client, you can edit the report objects and assign your host
name rather than localhost. (A utility program, RSBizWareHTMLUpdate.exe, is
included in the C:\BizBikes\Utilities\RSBizWare folder. This program allows you to
update report object properties for objects on multiple RSBizWare reports. To use
this with BizBikes, update the settings for all of the .htm files in the
C:\BizBikes\html\Reports folder.) This note applies to both the Quick Web and
BizBikes.htm pages highlighted in the next section.
27 of 36
8. A home page also is installed with the BizBikes project. Open Internet Explorer, and type in
the following URL: http://<YourHostName>:8080/bizbikes.htm. This Front Page-generated
home page simulates a corporate intranet site, with links to production data and a suite of
informational web pages. This is an advanced interface to RSBizWare reports for those
users who are comfortable authoring web pages.
28 of 36
29 of 36
2. Activate RSView32 and click the Stop Area Production button on the Overview display.
Click Yes when prompted to confirm stopping all area production. This will stop data
simulation for the workcells.
3. At the bottom, right of the Overview display, click on Stop to stop the BizBikes project, and
click Yes to confirm stopping BizBikes.
30 of 36
to
exec sp_attach_db 'BizBikes', 'd:\bizbikes\sqlserver\database\bizbikes_data.mdf'
'd:\bizbikes\sqlserver\database\bizbikes_log.ldf'
You should now be able to run the SQL Script and restore the database.
31 of 36
3. After the BizBikes database and the RSSql configuration are restored, open the Microsoft
SQL Server Enterprise Manager, select the BizBikes database and open the RSSqlConfig
table as shown below.
Change the sConfigPath and sConfigLocalPath to the appropriate directory. The example
below shows the D: drive.
Note:
32 of 36
If you forget to do this, then in the step where you associate the RSSql configuration
with the Production Server, the wizard will think you have are registering a new
RSSql configuration rather than re-associating an existing configuration.
1. Run BizBikesSetup.exe from the RSBizWare CD to unzip the BizBikes files to the default
C:\BizBikes folder.
2. Run SQL Query Analyzer, connecting as sa. Open and run
C:\BizBikes\SQLServer\Scripts\BizBikesDBSetup.sql. Close SQL Query Analyzer.
3. Run RSSql.
a. Restore the C:\BizBikes\RSSql\Config\BizBikes.rsq configuration.
b. Select Define Connector and change the Host Name, User Name, and Password.
Click the Host/User button.
4. Create a System DSN.
a. Set the name to BizBikesDSN, connecting to your computer, or enter a period ( . ) to
point to the local machine.
b. Use SQL Server authentication, login ID BizBikesUser and password bizbikesuser.
c. Change the default database to BizBikes.
5. Open RSBizWare Enterprise Manager, and login as admin/admin.
a. Set the Server Manager to your computers name.
b. Register a Production Server pointing to BizBikesDSN with user/password
BizBikesUser / bizbikesuser. Open the Advanced section and set the HTML Root
to point to C:\BizBikes\html.
c. If you will be using Scheduler, register a Scheduler server (BizBikesDSN,
BizBikesUser/bizbikesuser).
d. Associate PlantMetrics Server with the Production Server (BizBikesDSN,
BizBikesUser/bizbikesuser).
e. Register the RSSql Server (BizBikes).
f. Register the RSSql Configuration with the Production Server.
6. Assign activations and licenses in the RSBizWare Enterprise Manager.
a. Open Administration > Activations. Select the appropriate activations (Historian
<n> Tag, PlantMetrics Server <n> Workcells, RSBizware Unlimited User Runtime
License) and click Assign a License. If you will be using Scheduler, assign a
Scheduler User Runtime license.
b. Open Administration > Users and Groups. Edit the admin user. Check Historian
Author and PlantMetrics Author licenses. If you will be using Scheduler, check the
Scheduler Full Client License.
33 of 36
2. Stop all RSBizWare services and the RSSql Compression Server by right-clicking on each of
the services and selecting Stop.
34 of 36
4. Choose the Delete the configuration and the configuration files option. Click OK.
5. Run Microsoft SQL Server Enterprise Manager and delete the BizBikes database.
35 of 36
36 of 36