Visual TD Excel Add-In User Guide
Visual TD Excel Add-In User Guide
GUI-00115-00054 T, version 8
Contents
Welcome 1
Introduction .........................................................................................................................1
Welcome to the Visual T&D Excel Add-In ..........................................................1
Contacting Cooper Power Systems .......................................................................1
Getting Assistance .................................................................................................2
Installing the Visual T&D Excel Add-In .............................................................................3
Preliminaries ..........................................................................................................3
Loading the Add-In into Excel ..............................................................................3
Verify the Installation ............................................................................................3
Introduction
access the current and historical substation data in a Microsoft® Excel® workbook, either
locally or remotely;
create custom reports from the current and historical substation data;
perform advanced calculations on the substation data, using Visual T&D server calculation
functions as well as the tools provided by Excel;
Our sales department can answer general questions about using Visual T&D, and can assist you in
acquiring a license or give you pricing information.
Email: [email protected]
Phone: +1.418.834.0009
Fax: +1.514.227.5256
Email: [email protected]
Phone: +1.418.834.0009
Fax: +1.514.227.5256
Business hours are from 8 a.m. and 5 p.m. EST, Monday to Friday.
Preliminaries
The Visual T&D Excel Add-In is an add-in specially designed to be under the control of Microsoft
Excel 2000 or a newer version. Therefore, make sure the software is installed before you begin.
The Visual T&D Excel Add-In belongs to the Visual T&D family of products and is available as
an option at installation time. If you are not sure whether you installed the option, launch the
installation again.
Start Excel.
In the Add-Ins window, click Browse and select the VSSADDIN.XLL file you found above.
At this point, the list of available add-ins should contain the Visual T&D Excel Add-In.
Click About in the Visual T&D menu, to verify that you have the correct product version.
Overview
The Visual T&D Excel Add-In allows you include your substation's real-time and historical data
in the various Excel calculation and report formatting functions.
In this chapter, you will start by learning how to set up the Visual T&D server connection. You
will then familiarize yourself with the various data access functions provided by Visual T&D.
Note: Remember that the Visual T&D Excel Add-In and the server program may be
installed on different computers. All the functions remain available, regardless of
whether the server is installed locally or remotely.
To modify the list of available connections, you will use the Connections dialog box. This
window displays the list of connections that have been configured, as well as their respective
statuses.
Disabled When selected, indicates that the connection is not currently active.
Address Displays the name or IP address of the computer on which the server resides.
Add Displays a dialog box through which you can add a new connection.
Edit Displays a dialog box through which you can modify the properties of the
selected connection.
Address Specifies the name or IP address of the computer on which the server resides.
The Visual T&D server uses port 16102 by default. You can have it use another
port, however, in order to meet network security constraints. If you do need to
modify the port number to be used by the Visual T&D server, contact our
technical support group.
User Name Specifies the name of the user account to be used in establishing a connection to
the server.
Remember my If you put a checkmark, the password is saved for the next time you start Excel. If
password you do not put a checkmark, you will have to enter your password every time you
start Excel for the purpose of opening a connection with the Visual T&D server.
Note: You can use several instances of Excel to simultaneously edit or consult different
documents. Remember that each instance of the application loads into memory,
a copy of the Visual T&D Excel Add-In, which uses its own connections, and that
the server can accept a limited number of connections (4) on a given computer.
To avoid using several connections, you can open all your documents with the
same instance of Excel, using the File menu’s Open command.
Note: This document is mostly based on Microsoft Excel 2000. Some clarifications may
be specified for Microsoft Excel 2003 when significant changes were made
between those two versions.
Formulas
A formula is an equation that analyzes the data on a worksheet. Formulas perform mathematical
operations such as additions, multiplications or value comparisons. They can refer to cells on the
same worksheet, to cells on other worksheets within the same workbook, or to cells in other
workbooks.
Cell References
A formula can refer to constants and to other cells. The cell that contains the formula itself is
called the dependent cell when its value depends on the values of other cells. For example, cell B2
is a dependent cell if it contains the formula =C2.
By default, each time there is a change to the cell referred to in the formula, the dependent cell
changes as well.
If you use constants in the formula, rather than references to other cells (=30+70+110, for
example), the result changes only if you modify the formula.
Formulas can refer to cell ranges, or to names or labels representing cells or cell ranges.
Worksheet Functions
Functions are predefined formulas that perform calculations using specific values called
arguments, in a certain order (or structure). For example, the SUM function adds values or cell
ranges, while the PMT function calculates loan payments as a function of interest rate, term and
principal.
Arguments
Arguments can be numbers, text, or logical values such as TRUE or FALSE, arrays, error values
such as #N/A, or cell references. The selected argument must produce a valid value. Arguments
can also be constants, formulas or other functions.
Structure
The structure of a function begins with the name of the function, followed by a left parenthesis,
followed by the arguments separated by commas, and lastly, by a right parenthesis. If the function
starts a formula, type an equal sign (=) before the name of the function. When you create a
formula that contains a function, you can use the Formula Palette for assistance (see “Formula
Palette”, page 10).
Array
An array is used to create unique formulas that generate several results and that act on a group of
arguments spread out across various lines and columns. Excel supports two types of arrays:
formula arrays and constant arrays. A formula array is a rectangular area of cells that share a
common formula. A constant array is a group of constants that are laid out in a particular manner
and that act as an argument in a formula.
Array Formulas
Array formulas perform several calculations and return either a single result or multiple results.
For example, in a list of sales figures for various regions, you can use an array formula to calculate
the average sales figures for a particular region.
If you click the Edit Formula button on the formula bar, or the Paste Function
button on the toolbar, Excel inserts the equal sign for you.
Note: In Excel 2003, there is no Edit Formula button on the formula bar: use the Insert
Function button instead, which has the same aspect as the Paste Function
button in Excel 2000.
Press Enter.
Important Notes
You can enter a formula in an array of cells by selecting the cells, typing the formula, and
pressing Ctrl+Shift+Enter.
With Visual T&D functions, even if you are requesting numerous pieces of information
that will be displayed in an array of cells, you do not need to select the array of cells.
Simply enter the formula in the first cell of the array, and then press Enter. This can be
very useful for those functions where there is no way of knowing how much space will be
occupied by the results.
In the example below, a formula is typed in cell B2, requesting the units and description
With Visual T&D functions, if you need to edit a formula that is repeated in an array of
cells, simply select the first cell in the array and make the required modifications. Then
make sure to press Ctrl+Shift+Enter, or Excel will not allow you to continue.
You can also enter a formula in a range of cells by copying the formula located in another
cell.
A function name appears in the Functions zone located to the left of the Edit Formula button.
Click the arrow located to the right of the Functions zone, in order to view the list of
available functions.
Click on the function to be added to the formula. If the function is not in the list, click Other
functions to obtain a list of additional functions.
Formula Palette
Note: Excel 2000’s Formula Palette has no equivalent in Excel 2003. Use the Insert
Function instead (see “Inserting a Function (Microsoft Excel 2003)”, below).
The Formula Palette is a tool that makes it easy to create or modify formulas. It provides
information about functions and their arguments.
The palette appears under the formula bar when you click on the Edit Formula button in the
Note: Excel 2000’s Paste Function has been replaced by an insert function in Excel
2003 (see “Inserting a Function (Microsoft Excel 2003)”, below).
The Paste Function dialog box displays the list of functions available in Excel, grouped together
by category.
OR
OR
Excel 2000’s users will notice the similarity between this dialog box and Excel 2000’s
Function Palette. Specify the function-specific arguments, and then click OK to insert the
function in the cell.
Function Description
VssPtCurrVal Function used to access the current values (real-time) of the data points.
VssPtArchVal Function used to access the archived values of the data points in the historical
database.
VssPtCalcVal Function used to access the values that are calculated from archived values in the
historical database.
VssGetTriggerTime Function used to retrieve the trigger time as set by the last VssSetTriggerTime
VBA function call in a script.
VssAlarmAndEvent This function is used to retrieve the list of alarms and events.
Each function requires a group of parameters in order to be able to send a request to the server for
data. The parameters define the nature of the data to be displayed, the list of data points for which
the data is to be extracted, and the manner in which the data is to be displayed in the Excel
workbook.
Thus, each function requires 2 categories of arguments, which are the same for all functions:
The list of data names for which the data is being requested. The list must contain at least one
data point, but cannot exceed 100 data points.
The information to be displayed. This list specifies which information related to the data
(value, timestamp, quality, etc.) is to be displayed, and in what order. Each function has its
own display parameters, in addition to the parameters that are common to all functions.
Data point names are case-sensitive. It is therefore preferable to use the data point browser
(described later on in this chapter) to insert data point names as function arguments.
The cell format is not automatically adjusted by the Visual T&D Excel Add-In. You therefore
have to adjust the format of any cells containing timestamps, as the time in Excel is displayed
as a number of days.
You can specify the same display parameter more than once.
While the functions are suspended, the cells containing Visual T&D formulas display (Function is
suspended).
In the Visual T&D menu, click Suspend the execution of the functions.
The menu command contains a checkmark when the execution is, in fact, suspended.
Note: The standard Excel worksheet update procedures do not update the Visual T&D
data. You have to use the commands described below.
Note: Make sure you have a copy of the document before you remove the formulas, as
you will not be able to re-insert the formulas with Excel’s Undo command.
Object Description
Available Displays the list of data points that are available on the selected connection.
connections
Insert top to bottom Inserts the list of Selected points from top to bottom, starting at the selected
cell in the active workbook. Each data point name is placed in a cell, based on
its order of appearance in the list of selected points.
Insert left to right Inserts the list of Selected points from left to right, starting at the selected cell
in the active workbook. Each data point name is placed in a cell, based on its
order of appearance in the list of selected points.
Available points Displays the list of all the data points that are available on the selected
connection. Binary points are displayed in blue and analog points, in green.
Filter Filters the Available points by name. All points containing the text shown in
the box will be displayed.
Group Settings Displays the Group Settings tab of the Display Options dialog box, which you
can use to group the points differently so that you can change their order of
appearance in the Available points list.
Selected points Contains the list of data points that will be displayed on the worksheet.
Let us suppose, for example, that the components of the data point names are delimited by
underscores.
If you ask Visual T&D to group the points together by the beginning of their names, you will
obtain a result that looks like this:
If you open one of the folders, the data points will be displayed as follows:
If you repeat the exercise, but ask that Visual T&D group the points together by the ending of
their names, you will obtain a result that looks like this:
Click the Group Settings button of the Data Point Browser dialog box.
Include binary points Specifies whether binary points are to be included in the list of data points to
be grouped together.
Group data points Specifies whether or not the data points are to be grouped together.
If you do not put a checkmark, the remaining boxes will not be available.
with a common Specifies that the data points with the same characters at the beginning of
beginning their names are to be grouped together.
with a common ending Specifies that the data points with the same characters at the end of their
names are to be grouped together.
are delimited by Specifies that all the data point names have the same delimiter and that you
occurrence ... of are interested in the nth occurrence of the delimiter. For example, if the
character ... delimiter is an underscore and the data point names contain 3 underscores
separated by other characters, and you specify occurrence 2, you are referring
to the second underscore within the data point name. Visual T&D will group
together all the data points with identical characters preceding or following
the second underscore, depending on whether you requested that the data
points be grouped together by the common beginning or common ending of
their names.
have a fixed length Specifies that Visual T&D is to search for all data point names with
of ... characters n identical characters. For example, if you specify a value of 7, Visual T&D
will group together all the data point names for which the first or last 7
characters are identical, depending on whether you requested that the data
points be grouped together by the common beginning or common ending of
their names.
Preview This section of the dialog box displays a list of folders that Visual T&D
created based on your grouping criteria. When you open the different folders,
you will note that the binary points are displayed in blue and the analog
points, in green.
Available Displays the list of event types that are available on the selected connection.
connections
Insert top to bottom Inserts the list of Selected event types from top to bottom, starting at the
selected cell in the active workbook. Each event type name is placed in a cell,
based on its order of appearance in the list of selected points.
Insert left to right Inserts the list of Selected event types from left to right, starting at the selected
cell in the active workbook. Each event type name is placed in a cell, based on
its order of appearance in the list of selected points.
Filter All the names of the different event types that can be selected. If a group is
selected, by example “Visual T&D Events”, all event types of that group will be
selected.
Function VssPtProp
This function has the following arguments:
Data points The list of data point names for which the properties are being requested. This
argument is mandatory.
Display The display parameters, including the properties to be displayed. This argument
is mandatory.
Connection The name of the connection to which the data points belong. You can specify
the name of the server computer or its IP address. This argument is optional,
unless the requested data points belong to 2 different connections.
Examples
The formula is typed in cell B7 and is automatically propagated to cells C7 and D7, since 3 fields
of information is requested.
The order of the display parameters determines the order in which the information is put into the
cells.
The formula is typed in cell B9 and it was automatically propagated to array B9 through C11,
since 2 fields of information are requested for 3 different data points.
Function VssPtCurrVal
This function has the following arguments:
Argument Description
Data points The list of data point names for which the current values are being requested.
This argument is mandatory.
Value The engineering value for an analog point, or the state for a
binary point.
Quality The quality of the current value or state of the data point. If the
quality is good, a value of 1 is displayed. If the value is bad or
unsure, a value of 0 is displayed.
Time The timestamp of the current value or state of the data point.
The value is in local time and represents the time of the last
transition received for the data point.
Connection The name of the connection to which the data points belong. You can specify
the name of the server computer or its IP address. This argument is optional,
unless the requested data points belong to 2 different connections.
Examples
The formula is typed in cell A2 and it was automatically propagated to cells B2 through F2, since
6 fields of information are requested.
The order of the display parameters determines the order in which the information is put into the
cells.
The Time parameter was entered twice in the formula, in order to put the date and time in 2
consecutive cells. Please note that cells D2 and E2 are formatted, since Excel had generated the
date and time in numerical format.
The formula is typed in cell B2 and it was automatically put into to cells B2 through D4, since 3
fields of information are requested for each of the 3 data points.
Function VssCurrVal
This function is made available to provide compatibility with the old version of the Visual T&D
Excel Add-In. So unless you have an old version of the add-in, you should use the VssPtCurrVal
function.
The arguments for this function are the same as those for the VssPtCurrVal function. The Display
parameter can take on the following values, in addition to those described for the VssPtCurrVal
function:
Argument Description
The function can be inserted in a single cell or in a range of cells. The Visual T&D Excel Add-In
selects the range of cells required to display the requested information.
Function VssPtArchVal
This function has the following arguments:
Argument Description
Data points The list of data point names for which the transitions are being requested. This
argument is mandatory.
If the list contains multiple data points, the data for each point is grouped
together for the display.
Start Time Start time of the period for which the data is being requested. This argument is
mandatory.
End Time End time of the period for which the data is being requested. This argument is
mandatory.
Value The engineering value for an analog point, or the state for a
binary point.
Quality The quality of the current value or state of the data point.
Time The timestamp of the current value or state of the data point.
Bound Specifies whether the data at the beginning and end of the time range is to be
included (1) or excluded (0). If no data exists at the bounding times, the next
data outside of the range is shown. This argument is optional and has a default
value of 0.
Maximum The maximum number of transitions requested for each data point. A value of 0
specifies that the maximum number of transitions returned for each data point is
the limit imposed by the server. This argument is optional and has a default
value of 0.
Connection The name of the connection to which the data points belong. You can specify
the name of the server computer or its IP address. This argument is optional,
unless the requested data points belong to 2 different connections.
The order of the display parameters determines the order in which the information is put into the
cells.
The order of the display parameters determines the order in which the information is put into the
cells.
This function can be inserted in a single cell or in a range of cells. The Visual T&D Excel Add-In
selects the range of cells required to display the requested information.
If you request data for a point that has no historical data, the cells that display the information for
the data point will show a value of 0.
Function VssPtCalcVal
This function has the following arguments:
Argument Description
Data points The list of data point names for which the transitions are being requested. This
argument is mandatory.
Start Time Start time of the period for which the data is being requested. This argument is
mandatory.
End Time End time of the period for which the data is being requested. This argument is
optional.
If you do not specify an end time, the function returns all the available historical
data from the beginning of the period until the maximum number of transitions
has been reached.
Display The display parameters, including the calculated values to be displayed. This
argument is mandatory.
If you include this parameter in the list, it is always put into the
first column/line of the display.
Average The average value of the data for each sampling interval. The
average is calculated based on the values interpolated at the
beginning and end of each interval.
Average The text associated with the quality of the average data for the
Quality sampling interval.
String
Integral The integral value of the data for each sampling interval.
Integral The text associated with the quality of the integral data for the
Quality sampling interval.
String
Interpolative The text associated with the quality of the interpolative data
Quality for the sampling interval.
String
Maximum The text associated with the quality of the maximum good raw
Quality data for the sampling interval.
String
Maximum The time of the data item that has the maximum value for each
Actual Time sampling interval.
Maximum The text associated with the quality of the time of the data that
Actual Time has the maximum value for the sampling interval.
Quality
String
Maximum The milliseconds of the time of the data item that has the
Actual Time maximum value for each sampling interval.
Ms
Minimum The text associated with the quality of the minimum good raw
Quality data for the sampling interval.
String
Minimum The time of the data item that has the minimum value for each
Actual Time sampling interval.
Minimum The text associated with the quality of the time of the data that
Actual Time has the minimum value for the sampling interval.
Quality
String
Minimum The milliseconds of the time of the data item that has the
Actual Time minimum value for each sampling interval.
Ms
Standard The standard deviation for all the data included in each
Deviation sampling interval.
Standard The text associated with the quality of the standard deviation
Deviation data for the sampling interval.
Quality
String
Sum of The sum of the decrements for all the data included in each
decrements sampling interval.
Sum of The text associated with the quality of the sum of decrements
decrements for all the data for the sampling interval.
Quality
String
Sum of The sum of the increments for all the data included in each
increments sampling interval.
Sum of The text associated with the quality of the sum of increments
increments for all the data for the sampling interval.
Quality
String
Variance The text associated with the quality of the variance for the
Quality sampling interval.
String
End Quality The numeric representation of the quality of the last value for
the sampling interval.
End Quality The text associated with the quality of the last value for the
String sampling interval.
Interval: Count The number of units of the sampling interval. This argument is mandatory.
Interval: Units The units of the sampling interval. This argument is mandatory and can take on
the following values:
Connection The name of the connection to which the data points belong. You can specify
the name of the server computer or its IP address. This argument is optional,
unless the requested data points belong to 2 different connections.
A quality value is a 32-bit hexadecimal number that results from the combination of multiple
quality attribute values added together. For example, a quality value of 0x00020040, which is the
sum of 0x00020000 and 0x00000040, means that the corresponding value is respectively
“interpolated” and “uncertain”.
The following tables presents the quality attributes that can appear in a quality value.
0x00000040 Uncertain
0x00000058 Subnormal
0x000000C0 Good
0x00020000 Interpolated
0x00040000 Raw
0x00080000 Calculated
0x00100000 No Bound
0x00200000 No Data
0x00800000 Conversion
0x01000000 Partial
Examples
This function can be inserted in a single cell or in a range of cells. The Visual T&D Excel Add-In
selects the range of cells required to display the requested information.
If you request data for an event types or a point that has no historical event log, the cells that
display the information for the event will show a value of #NULL!.
Function VssAlarmAndEvent
This function has the following arguments:
Argument Description
Start Time Start time of the period for which the data is being requested. This argument is
mandatory.
End Time End time of the period for which the data is being requested. This argument is
mandatory.
Display The display parameters, including the calculated values to be displayed. This
argument is mandatory.
Value The engineering value for an analog point, or the state for a
binary point.
Time The timestamp of the current value or state of the data point.
Note The note associated to the event or the point of the event.
Reference The reference associated to the event when it’s a user log
event.
Maximum The maximum number of events returned from the server A value of 0 specifies
that all events are returned. This argument is optional and has a default value of
0.
Alarms only Indicates if only alarms (1) are returned or if all events are (0).This flag is
effective only for event of the type « Process-related events”.This argument is
optional and has a default value of 0.
All event types Indicates if all events types must be included (1) or only those specified (0).
This argument is optional and has a default value of 0.
Event types List of the events type to be returned by the request. This argument is not
considered if « All event types » is at 1. Otherwise, this argument is mandatory.
All data points Indicates if all data points (1) are returned or only those specified (0). This
argument is optional and has a default value of 0.
Data points List of the data points to be considered in the request Events not related to a
point will ignore this argument This argument is not considered if “All data
points” is at 1. Otherwise, this argument is mandatory.
Connection The name of the connection to which the request will be sent. You can specify
the name of the server computer or its IP address. This argument is optional,
unless the application is connected to 2 or more server.
The order of the display parameters determines the order in which the information is put into the
cells.
The Visual T&D Excel Add-In provides 3 menu commands for updating the data of the Visual
T&D functions.
Overview
Microsoft Excel allows you to create report models which you can use to generate periodic
reports, without altering the model. Models are contained in files with an XLT extension.
The Visual T&D Excel Add-In provides additional functions to help you create your report
models.
Creating a Model
Creating an Excel report model simply entails saving a workbook in Excel workbook format (XLT
file). For information regarding the use of report models, you can consult the Microsoft Excel
online help.
In Windows Explorer, double-click on the template file (.XLT). Excel automatically creates a
new workbook based on the template.
Make sure the Suspend the execution of the functions command of the Visual T&D menu
does not show a checkmark.
When the update is done, save the document with the File menu Save command. Excel will
ask you to assign a name to the workbook (you cannot modify the model this way).
In the Visual T&D menu, click Remove All Formulas, and save the document again. This
will ensure that when someone subsequently opens the file, the report data will remain as it
was when you saved it, rather than being updated with new information from the server.
Overview
You can easily automate the generation of your reports, based on the models you have created.
Reports can be generated on a periodic basis, or when a specific event occurs. In both cases, a
Visual Basic for Applications (VBA) script must be used specifically for the generation. The
difference between both methods is how and when the script will be executed.
The periodic execution of a script can be planned using Windows scheduled tasks or Visual T&D
Explorer’s Task Manager. Event-triggered report generation should be automated using Visual
T&D Explorer’s Task Manager.
The most interesting feature of event-triggered report generation is the possibility to use the trigger
time to specify the range of data to include in the report. For example, an operator may be
interested to know the sequence of events that occurred 15 minutes prior to a breaker trip event,
and 5 minutes after. This is feasible using event-triggered report generation.
This chapter outlines the steps required to automate the generation of a report.
Note: This is a Visual T&D-specific VBA function. It is not available in Excel, but it can
be used in scripts.
The VssSetTriggerTime function is used to set the trigger date and time in a script prior to calls to
the VssGetTriggerTime function. Your script should take the trigger time as an argument, or
should know how to retrieve the trigger time by itself.
Argument Description
Trigger Time The date and time at which the event triggered the report generation. This
argument is mandatory.
Is Local Indicates if the trigger time should be interpreted by Excel as UTC time (0) or
local time (1). This argument is mandatory.
Function VssGetTriggerTime
The VssGetTriggerTime function is used to retrieve the trigger date and time as set by the
VssSetTriggerTime.
The VssGetTriggerTime function should be used as an argument for other Excel Add-In functions,
such as VssPtArchVal and VssPtCalcVal, in a report model. The report model can then be used in
a script as the template for the generated report.
Argument Description
Date and Get the trigger date and time as set by VssSetTriggerTime.
Time Milliseconds must be obtained via a second call, using the Ms
argument (see below).
Example
In a report model, to display MAPLE_RTU_025_BUS_VA point’s transitions that were recorded 3
hours (0.125 of a day) prior to the event, you should type the following formula in a cell:
=VssPtArchVal(B1, VssGetTriggerTime()-0.125; VssGetTriggerTime(); "time,
value, quality"; 0)
The trigger time. This parameter is optional and used for event-triggered report generation
(see “Using the Trigger Time in Scripts and Report Models”, page 39 for more details).
Note: The script shown adds the date and time of the report generation to the output
file name, in order to avoid overwriting the same file each time the report is
generated.
Save the example file under a name of your choice with a VBS extension.
wscript <script name> <template name> <destination path> <output file name>
Example:
wscript "D:\Reports\my script.vbs" "D:\Reports\Template 1.xlt"
"D:\Reports\Output\" "Report 1.xls"
Make sure the report was indeed generated in the destination folder.
Note: If you experience any problems with script files, feel free to contact our technical
support. However, the script should work if you follow the preceding instructions
carefully.
Click Start, then All Programs, then Accessories, then System Tools, and then Scheduled
Tasks.
Click Browse, and locate wscript.exe, which normally resides in WINNT\system32\ on your
hard disk.
Specify the frequency at which the task is to be run, as well as the start date and time, and
click Next.
Enter your user name and password information, and click Next.
Put a checkmark in the Open advanced properties for this task when I click Finish box,
and click Finish.
In the wscript window, enter a space after the path shown in the Run box, followed by the
command line described in the previous section, as shown in the example below.
When you have finished creating the scheduled task, you can verify that the task will be executed
properly as follows:
When the command has finished executing, verify that the report was indeed generated in the
destination folder.
For example, a user may want to automate the generation of a report when a breaker opens. The
report would contain all transitions and the sequence of events prior, and after, the breaker event.
This is made possible using the Task Manager, by creating a task that executes a report-generation
VBA script. This task must then be configured to be triggered by the breaker’s opening event.
Task management is explained more in details in the Visual T&D Explorer User Manual.
Overview
This chapter presents a few tricks and tips to make it easier for you to use the Visual T&D Excel
Add-In, and to create reports and templates.
Function TODAY()
This Microsoft Excel function, which is part of the broader Date and Time function, displays
today's date and time. You can use the function to create a daily report template. Simply refer to
the cell in which you have placed the function, in order to specify the interval for which you want
to obtain the data.
You can add or subtract a number of days to or from the result of the function, in order to obtain
the interval for today, yesterday, and so on.
Function NOW()
This Microsoft Excel function, which is part of the broader Date and Time function, displays the
current date and time. You can use the function to create a report template in which you refer to
the function to indicate the report generation date.
However, you should avoid using the result of this function as an argument for Visual T&D
functions. Each time Excel updates a worksheet, all formulas that refer to cells containing the
NOW() function are transmitted as requests to the Visual T&D server. Furthermore, the Visual
T&D Excel Add-In forces an update of the worksheet whenever the results are ready for display.
This situation could potentially lead to an avalanche of updates.
Using the Excel Merge & Center function, which you access via the toolbar button , can
cause problems using Visual T&D functions. To avoid problems using this function, make sure
you do not merge two cells containing Visual T&D functions. Furthermore, do not use more than
one Visual T&D function in a given formula, except for the VssGetTriggerTime function that may
be used as an argument to another function (see “Function VssGetTriggerTime”, page 40).