How To Connect ASPIC 3.30 and MS Excel

Similar documents
Make Excel Files Visual IO

Connectivity Guide KEPServerEX, DDE, and Excel

Tutorial 3 - Performing a Change-Point Analysis in Excel

Some useful shortcut keys applicable for both Excel and Word (16 to 19 is only for Excel): Sr.No. Shortcut Keys Description

APPLICATION NOTE. Running PC9000 with Dynamic Data Exchange. App. Note Code: 3C-Q. Copyright (C) 2000 Campbell Scientific, Inc.

KEPServerEX Client Connectivity Guide

Page 7A TRENDS Installation (for Excel 2007 or Excel 2010) Excel 2007 Excel 2010

Installation Instructions. Your Guide to Installing and Getting Started with WinSteam Version 4.0

DDE Client Driver PTC Inc. All Rights Reserved.

Kepware Technologies KEPServerEX, DDE, and Excel

DDE Client Driver Help Kepware Technologies

Visual basic tutorial problems, developed by Dr. Clement,

Creating a Directory with a Mail Merge from an Excel Document

Training Guide. Microsoft Excel 2010 Advanced 1 Using Conditional and Custom Formats. Applying Conditional Formatting

&XWOHU+DPPHU 173 Heatherdown Drive Westerville, OH PanelMate Power Series / PanelMate PC DDE Connectivity Communication Driver Manual

This document describes how to use the CAP workbook with Excel It applies to version 6b of the workbook.

Download the files from you will use these files to finish the following exercises.

KEYWORDS DDE GETOBJECT PATHNAME CLASS VB EDITOR WITHEVENTS HMI 1.0 TYPE LIBRARY HMI.TAG

Excel Tools Features... 1 Comments... 2 List Comments Formatting... 3 Center Across... 3 Hide Blank Rows... 3 Lists... 3 Sheet Links...

The Direct Excel Connection plugin PRINTED MANUAL

TROUBLESHOOTING THE BPMN MODELER. Solutions and FAQs

Networking With DDE. Automationdirect.com A-1 Developer s Manual

Creating Automated Dashboard Excel 2013 Contents

Bill DDE Excel over Ethernet Version 1.0P and more

Opening a Document: Printer Selection:

Saving a Workbook That Contains Macros

NiceForm User Guide. English Edition. Rev Euro Plus d.o.o. & Niceware International LLC All rights reserved.

Introduction to macros

Group Administrator. ebills csv file formatting by class level. User Guide

Microsoft Excel 2007 Macros and VBA

Chapter 7. Joining Maps to Other Datasets in QGIS

2. create the workbook file

Starting Excel application

Excel Tip: How to create a pivot table that updates automatically

USING the IEDATA add-in FROM THE SPREADSHEET MENU

Tutorial 2. Building a Database and Defining Table Relationships

Contents. Group 2 Excel Handouts 2010

Microsoft Excel Chapter 2. Formulas, Functions, and Formatting

Macros enable you to automate almost any task that you can undertake

Microsoft Word for Report-Writing (2016 Version)

Office 2016 Excel Basics 25 Video/Class Project #37 Excel Basics 25: Power Query (Get & Transform Data) to Convert Bad Data into Proper Data Set

LID1265 Custom names uploader

Sage Intelligence: Copying, Pasting and Renaming Reports 3. Sage Intelligence: Creating and Linking a Report 5

Macros enable you to automate almost any task that you can undertake

Eaton Corporation Cutler-Hammer Business Unit 811 Green Crest Drive Columbus, OH PanelMate PC DDE Connectivity Communication Driver Manual

Excel & Business Math Video/Class Project #39 Create Invoices in Excel with Data Validation Drop-down, VLOOKUP & IF Functions

Intermediate Microsoft Excel 2010 Tables and Printing

GDS provides the dll for the controllers with a simple interface, therefore development time is rapid.

CHAPTER 1 GETTING STARTED

any BI Query model. Export Data Quick and Dirty method NOT Quick and Slick method

1) Merge the cells that contain the title and center the title

Excel 2013 Workshop. Prepared by

Microsoft Excel 2010 Basics

Mastering the Actuarial Tool Kit

Explore commands on the ribbon Each ribbon tab has groups, and each group has a set of related commands.

Instruction Case Vba Excel Between Two Values

EXCEL CONNECT USER GUIDE

download instant at

Personal Budget Project. Objectives. By the end of this lesson, you will be able to:

LON DDE Server. for Microsoft Windows and InTouch Applications. User Manual Ver 1.x Rev 1.3 DR

User Guide. Version 2.0. Excel Spreadsheet to AutoCAD drawing Utility. Supports AutoCAD 2000 through Supports Excel 97, 2000, XP, 2003, 2007

This book is about using Microsoft Excel to

Excel Formulas & Functions I CS101

Chapter 4. Microsoft Excel

RegressItMac installation and test instructions 1

Cuyahoga Community College Information Technology Services Automic Applications Manager Reference Document

MICROSOFT EXCEL KEYBOARD SHORCUTS

Candy is Dandy Project (Project #12)

VAPOR PRO COMMUNICATIONS

Microsoft Office Excel 2007: Basic Course 01 - Getting Started

Abstract. For notes detailing the changes in each release, see the MySQL for Excel Release Notes. For legal information, see the Legal Notices.

Macros in Excel: Recording, Running, and Editing

ArcGIS 10.x Basic Exercise GMU Libraries

Abstract. For notes detailing the changes in each release, see the MySQL for Excel Release Notes. For legal information, see the Legal Notices.

No part of this document may be used for any purpose other than for the purposes specifically indicated herein nor may it be reproduced or

Light Speed with Excel

CODE V COM Interface COM-1

Abstract. For notes detailing the changes in each release, see the MySQL for Excel Release Notes. For legal information, see the Legal Notices.

Forms iq Designer Training

Ms excel. The Microsoft Office Button. The Quick Access Toolbar

Viewer. Quick Reference Guide

TechRepublic : A ZDNet Tech Community

USB ph MONITOR. DataApex Clarity Control. Doc. #: DI Rev. A Praha, March 2013

Unit 12. Electronic Spreadsheets - Microsoft Excel. Desired Outcomes

1. Introduction to Microsoft Excel

Advanced Excel Selecting and Navigating Cells

Using OLE in SAS/AF Software

Basic Microsoft Excel 2007

Excel Simulations - 1

Pivot Tables in Excel Contents. Updated 5/19/2016

DataPro Quick Start Guide

Manipulator USER S MANUAL. Data Manipulator ActiveX. ActiveX. Data. smar. First in Fieldbus MAY / 06. ActiveX VERSION 8 FOUNDATION

Documenting Models in Word

Quick. Efficient. Versatile. Graphing Software for Scientists and Engineers.

JUN / 04 VERSION 7.1 FOUNDATION

PHLI Instruction (734) Introduction. Lists.

Reference Services Division Presents. Excel Introductory Course

1. PDF forms can be filled out on the computer if converted to Interactive Forms

Microsoft Office 2010: Introductory Q&As Access Chapter 2

Installing USB Drivers to Windows System

Transcription:

Kontron Czech s.r.o U Sirotcince 353/7 460 01 Liberec tel.: 485 108 636 fax: 485 100 273 sales@kontronczech.com www.kontron-czech.com How To Connect ASPIC 3.30 and MS Excel 1/11

Contents ASPIC 3.30 as DDE Client... 3 A) Setup of Aspic... 3 1. Server s setup... 3 2. Items setup... 4 B) Setup of MS Excel... 5 C) Running of communication... 5 ASPIC 3.30 as DDE Server... 6 A) Setup of Aspic... 6 Items setup... 6 B) Setup of MS Excel... 8 Local communication ASPIC 3.30 and MS Excel on the same computer... 8 Network communication ASPIC 3.30 and MS Excel on different computers in a network... 8 C) Running of communication... 9 D) Troubleshooting... 10 Network DDE Communication Necessary Settings... 11 Setting up a DDEShare for Windows 95/98... 11 Setting up a DDEShare for Windows NT/2000... 11 PF 009.0.001 February 2003 2/11

ASPIC 3.30 as DDE Client The scheme of communication between ASPIC 3.30 (DDE client) and MS Excel (DDE server) A) Setup of Aspic 1. Server s setup 1. Open the Servers Setup dialog from the menu Setup/Setup Servers... 2. Add new data source (e.g. named Excel) and set its properties: a) Set Server type as Common DDE server. b) Select server s location (Network, Local or Both). Note: Enter the name of network DDE application (definned on the target remote computer see the Settings of Network DDE Communication) into the DDE Share option. c) Fill the Server name according to Excel version used: for MS Excel 2000: for MS Excel 97: for MS Excel 95: Excel Excel.Sheet.8 Excel.Sheet.7 d) Enter the pathname to the Excel.exe into the Exe File field or use a button Browse Exe File for searching of this file. In case you want to work with existing xls file, add its pathname in quotation marks after the Excel.exe pathname. E.g. C:\Program Files\Microsoft Office\Office\Excel.exe D:\ASPIC330\Project\example.xls e) Fill the Topic field according to Excel version used: for MS Excel 2000: for MS Excel 9x: Name of MS Excel sheet in file. e.g. Sheet1 {path to file} *.xls PF 009.0.001 February 2003 3/11

2. Items setup 1. Press button to open Aspic s configuration dialog (Stations, buffers and variables setup). 2. Select the Excel server in the New station combobox. 3. Press the Add button for adding of a station. Enter its name (cannot contain characters: /*- +:;\"\'(){}[]@,<>!%& =#\\). 4. In the left tree, select the Station level. 5. Press the Add Buffer button for adding of a buffer. 6. Select the Buffer level. Note: Check Network option for communication with remote computer and select the target computer (using Browse button). Note: If you change the server parameters in the Servers Setup dialog box (Setup/Setup Servers menu item) and if you keep the server name, you should update the station setup by pressing the " " button. 7. Press the Add Variable button for adding variables. 8. Select the Variable level. 9. Set Variable s properties. On the Types tab enter one from following possibilities into the DDE Item option choose the Excel version. MS Excel 2000 The cell number for MS Excel specified by the cell row number (R) and the cell column number (C). e.g. R1C1 MS Excel 9x The cell number for MS Excel specified by the sheet name, the cell row number (R) and the cell column number (C). e.g. Sheet1!R1C1 PF 009.0.001 February 2003 4/11

Data transfer from DDE client to server (ASPIC 3.30 MS Excel) 1. In the Aspic s development mode insert a Value object from object library. 2. Check its property Input / Control. 3. In the Aspic s monitoring mode enter data into the object Value. OR In the Aspic s monitoring mode open the Input/Overview dialog and enter data into the Value box. Press the Commit button or check the Autocommit option for setting of the new value. B) Setup of MS Excel Any special setup of MS Excel isn t necessary. C) Running of communication Press the button for starting Aspic s monitoring mode. The Excel file specified in Aspic will be opened automatically and data entered in specified cells will be transferred into Aspic. PF 009.0.001 February 2003 5/11

ASPIC 3.30 as DDE Server The scheme of communication between ASPIC 3.30 (DDE server) and MS Excel (DDE client) A) Setup of Aspic Items setup 1. Press button to open Aspic s configuration dialog (Stations, buffers and variables setup). 2. Select the _System or _Memory server type in the New station combo-box. 3. Press the Add button for adding of a station. Enter its name (cannot contain characters: /*- +:;\"\'(){}[]@,<>!%& =#\\). 4. In the left tree, select the Station level. MEMORY stations contain variables for Aspic math module (for entering values and storing calculated results). SYSTEM stations contain variables, whose values are set directly by Aspic. These variables contain various types of information about the monitoring system status (such as system time, disk usage, system errors). 5. Press the Add Buffer button for adding a buffer. 6. Select the Buffer level. PF 009.0.001 February 2003 6/11

7. Press the Add Variable button for adding of a variable. 8. Select the Variable level. 9. Set Variable s properties. On the Types tab select type of system variable from the Type combo box (only for _System server type). Identification of the Aspic DDE server Application: Topic: Communication Format: Format of Communicated Data: ASPIC Parameter CF_TEXT Corresponds to the output type of the variable in the Aspic program that is in role of DDE server. Float signed floating point (real) value having the form [sign] d.ddd [E [sign] ddd] Long signed decimal integer String non-formatted string of characters PF 009.0.001 February 2003 7/11

B) Setup of MS Excel Local communication ASPIC 3.30 and MS Excel on the same computer Select a cell in MS Excel, where you want to receive values from Aspic. Enter the following formula in this cell: =ASPIC Parameter!Variable where Parameter is a name of topic used by MS Excel for connection with Aspic, Variable is a variable name in Aspic. If the name contains spaces, it must be included in apostrophes (e.g. Variable 1 ). Otherwise it is not necessary. Network communication ASPIC 3.30 and MS Excel on different computers in a network Select a cell in MS Excel, where you want to receive values from Aspic. Enter the following formula in this cell: = \\COMPUTER\NDDE$ ASPIC!Variable where COMPUTER is the name of the remote computer ASPIC is a share name, under which the computer offers Aspic to be shared in the network Variable is a variable name in Aspic. Names with spaces must be included in apostrophes. Please follow the Network DDE Communication Necessary Settings chapter to setup network DDE communication. Example of data transfer from ASPIC to MS Excel Data communication from DDE client to server (MS Excel ASPIC 3.30) To establish two-way communication between MS Excel and ASPIC 3.30 (DDE server) setup the one-way communication as described above and then follow these rules. 1. Create Macro Create a macro of the following script in MS Excel using Visual Basic Editor (Tools/Macro/Visual Basic Editor). You will be able to send a value from a MS Excel cell into Aspic. To enter more values, repeat 4 th and 5 th lines of macro and change the cell s address and Aspic s variable name. Sub SetValue() Dim Chan As Integer Chan = DDEInitiate("ASPIC", "Parameter") Set rangetopoke = Worksheets("Sheet1").Range("A1") DDEPoke Chan, "Variable", rangetopoke DDETerminate Chan End Sub PF 009.0.001 February 2003 8/11

where SetValue is the macro s name; Sheet1 is the name of the sheet where the cell (called A1 in the script above) is found from which the data are communicated; Variable it the name of the variable in Aspic. 2. Create Button You can create a button to start the macro easily: Select the Command Button object on the the Control Toolbox bar. MS Excel is switched into Design Mode ( button). You can now work with objects (create, edit etc.). Define the button s shape using mouse button. You can edit the button s size and text if you go to Edit/CommandButton Object/Edit in the menu while the object (the button) is selected. Open the script in MS Visual Basic Editor with the newly created section by double clicking on the button created. Enter the name of the macro for data transfer (SetValue is used in this example). The other part of the script looks perhaps like this: Private Sub CommandButton1_Click() SetValue End Sub Save the script in VB editor and after terminate the Design Mode in MS Excel (click the button) Now you can use the Set Value button to data transfer from a MS Excel cell into Aspic. Note: We recommended you to consult User Guides for MS Excel and MS Visual Basic Editor for more detailed description about working with these programs. Example of data transfer from MS Excel to ASPIC C) Running of communication Press the button for starting of Aspic s monitoring mode (Aspic as DDE server isn t started-up automatically after first client connection). Start MS Excel and update values. For data communication from MS Excel to ASPIC 3.30 start both programs, enter values into cells defined in Visual Basic s macro and press created button. PF 009.0.001 February 2003 9/11

D) Troubleshooting Aspic cannot be started from MS Excel Symptom: Reason: Remedy: When MS Excel is started as first program, the "Remote data not accessible. Start application Aspic.EXE?" message appears. Pressing the Yes button opens the "Cannot run Aspic.EXE. The program or one of its components is damaged or missing." message. MS Excel is not able to start DDE server (Aspic). Start firstly Aspic in communication mode and after that open.xls file. Data are not transferred into MS Excel Symptom: Reason: Remedy: Data transmission to MS Excel does not take place on starting the Aspic in communication mode. MS Excel is not able to detect Aspic's communication mode. a) Update the link using the Edit / Link menu in MS Excel or b) Close and reopen the.xls file or c) Open the.xls file while Aspic's communication mode is on. PF 009.0.001 February 2003 10/11

Network DDE Communication Necessary Settings Correct DDE network communication can be established if sharing via network (NetDDE) is defined. Use the standard DDESHARE.EXE program. This program can be started, for example, using the Run dialog box in the Start Menu, where you type the program name (DDESHARE) and press OK. Setting up a DDEShare for Windows 95/98 To ensure correct operation, NETDDE.EXE program, which has been started from the command line, must be run. The user himself can always choose the Share Name. To maintain clarity it is recommended to use the standard sample: Share Name: Application name: Topic Name: Sharing Option: Access Type: ASPIC ASPIC Parameter check Full Setting up a DDEShare for Windows NT/2000 To ensure correct operation, Windows NT Network DDE services (Control Panel / Services) must be run. Share Name ASPIC Application Name Topic Name Old Style ASPIC Parameter New Style ASPIC Parameter Static ASPIC Parameter Check Select Check Allow start application Grant access to all items in section Trust Share for Share Name ASPIC: Start Application Enable Initiate to Application Enable (when needed) Note: If you don t succeed connecting to ASPIC over a network through NetDDE, please contact your network supervisor to check user settings. In User Manager for Domains (Windows NT 4.0) (in Start Menu/Programs/Administrative Tools), the user logon restriction has to be set to unrestricted for all stations (not restricted to just some stations) on the network server. PF 009.0.001 February 2003 11/11