FTB-2 и FTB-2 Pro. Руководство пользователя - часть 16

 

  Главная      Учебники - Разные     FTB-2 и FTB-2 Pro. Руководство пользователя

 

поиск по сайту            правообладателям  

 

 

 

 

 

 

 

 

содержание      ..     14      15      16      17     ..

 

 

FTB-2 и FTB-2 Pro. Руководство пользователя - часть 16

 

 

Тестирование сетевых соединений
Выполнение проверки связи
3. В окне IP Testing Tools (Средства тестирования IP) выберите
вкладку Ping.
4. Введите целевой URL- или IP-адрес. Можно нажать кнопку По
умолчанию, чтобы использовать ping-адрес устройства по
умолчанию. Значение по умолчанию невозможно изменить.
5. Задайте другие параметры:
количество пакетов для отправки;
размер пакетов;
время ожидания;
предел времени существования.
Снимите флажок Разрешить фрагментацию, если
необходимо отправлять пакеты на хост полностью.
231
Тестирование сетевых соединений
Выполнение трассировки маршрута
6. Нажмите кнопку Старт.
Проверку связи можно остановить в любой момент, нажав кнопку Стоп.
Выполнение трассировки маршрута
Трассировка маршрута позволяет определить среднее количество
узлов, требуемых для достижения конечного хоста. Данный тест часто
используется для устранения неполадок в работе сети (для
определения проблем маршрутизации или блокировок доступа
брандмауэрами).
Утилита трассировки маршрута позволяет выполнять следующие
действия.
Ввести адрес удаленного хоста.
Задать максимальное допустимое время достижения пакетом
удаленного хоста.
Задать максимальное допустимое количество переходов для
достижения удаленного хоста (TTL)
Определить, необходимо ли преобразование доменных имен для
IP-адреса.
После завершения теста его результаты можно экспортировать. Позже
можно импортировать созданный текстовый файл (с символами
табуляции в качестве разделителей) непосредственно в Microsoft Excel.
232
Тестирование сетевых соединений
Выполнение трассировки маршрута
Для трассировки маршрута выполните следующие действия.
1. В окне IP Testing Tools (Средства тестирования IP) выберите
вкладку Трассировка маршрута.
2. Введите целевой URL- или IP-адрес. Можно нажать кнопку По
умолчанию, чтобы использовать адрес для трассировки маршрута
по умолчанию в устройстве. Значение по умолчанию невозможно
изменить.
233
Тестирование сетевых соединений
Выполнение трассировки маршрута
3. Задайте другие параметры:
время ожидания;
предел времени существования.
Установите или снимите флажок Определять IP-адреса, чтобы
получить имя хоста для соответствующего IP-адреса узлов.
4. Нажмите кнопку Старт.
Тест трассировки маршрута можно остановить в любой момент, нажав
кнопку Стоп.
234
Тестирование сетевых соединений
Экспорт результатов
Экспорт результатов
После завершения теста можно экспортировать результаты текущей
тестовой страницы. Чтобы сохранить полученные результаты для
последующего использования, необходимо экспортировать их, так как
файлы результатов невозможно открыть непосредственно с
устройства.
Результаты будут отправлены в текстовый файл. Поля отделяются
символом табуляции (TAB) для простоты импортирования в лист
программы Microsoft Excel.
По умолчанию приложение предлагает следующее имя файла.
Для проверки связи:
Ping for [URL] on [YEAR]_[MONTH]_[DAY].txt
Для трассировки маршрута:
Trace Route for [URL] on [YEAR]_[MONTH]_[DAY].txt
Где:
[URL] — введенный URL- или IP-адрес;
[YEAR] — год выполнения теста;
[MONTH] — месяц выполнения теста;
[DAY] — день выполнения теста.
Пример.
Для проверки связи на www.yoursite.org, выполненной 3 июля 2014
года, будет предложено следующее имя файла:
Ping for www.yoursite.org on 2014_07_03.txt
Чтобы экспортировать результаты, выполните следующие
действия.
Нажмите кнопку Экспорт. При необходимости измените предложенное
имя файла.
235
11 Preparing for Automation
Your unit was designed to meet the requirements of automation and to
facilitate its integration with your test environment.
Note:
To have access to automation features on an FTB-2 unit, you must
purchase the Automation option.
EXFO supplies commands that follow the guidelines determined by the
SCPI consortium for many instruments. EXFO also supplies COM properties
and events allowing you to build your own application. The instruments
can be controlled either locally or remotely via the following technologies:
Local Access
SCPI Commands
ActiveX (COM Software protocol)
Visual Basic
Visual C++
Delphi
LabView
LabWindows
Remote access
RS-232
SCPI Commands
(with USB/RS-232
Libraries & "drivers"
Visual Basic
adapter)
Visual C++
EXFO
ActiveX
Delphi
(DCOM)
LabView
(Ethernet, TCP/IP)
LabWindows
Telnet
(Ethernet, TCP/IP)
FTB-2 and FTB-2 Pro
237
Preparing for Automation
The choice of a technology depends on your particular needs.
Control
Technology
Characteristics
Local
ActiveX (COM)
Allows you to develop an application that will run
locally on your unit within Windows
Best approach when speed is your top priority (no
physical connection that slows down the
process)
Supported by most development software
Lower cost
Remote
ActiveX (DCOM)
Allows the sharing of network resources
(Ethernet,
Allows you to develop computer-based
TCP/IP)
applications to directly communicate with your
unit
Remote
RS-232
USB to RS-232 adapter (purchased from EXFO)
required to establish connection between the
computer and your unit.
For increased speed and performance, run the
application locally on your unitthrough ActiveX
instead of using RS-232
Remote
Telnet (Ethernet,
Your unit can be directly connected to a Local
TCP/IP)
Area Network (LAN) or Wide Area Network
(WAN) via its 10/100/1000 Base-T interface
Allows the sharing of network resources
Allows you to develop computer-based
applications very easily to directly communicate
with your unit
For more information on programming aspects, see the section on using
your product in an automated test environment.
238
FTB-2 and FTB-2 Pro
Preparing for Automation
Linking Units with the Ethernet Port
Linking Units with the Ethernet Port
Your unit is equipped with an Ethernet port (10/100/1000) to send and
receive data. Refer to the Windows documentation for information about
Ethernet port settings and possibilities.
Ethernet (RJ-45) port
Linking Units Using a Serial Port
Your unit is not equipped with a serial (RS-232) port, but you can connect a
USB to RS-232 adapter (sold by EXFO) to your one of the USB ports of your
unit if you wish to send and receive data via RS-232.
FTB-2 and FTB-2 Pro
239
Preparing for Automation
Getting Optimum Performance from Your Unit
Getting Optimum Performance from Your Unit
Several factors influence the data transfer rate of your unit. The information
presented hereafter will help you get the best transfer rate possible.
Output unit (RS-232, ActiveX and TCP/IP): Your unit can return results
in
linear units (for example, watts)
log units (for example, dBm)
Since internal units are linear, you will get optimal performance by
using linear units for output (no need for an internal conversion to log).
Note: You must make the choice of output unit for each instrument offering such
a feature. Refer to the user guide of each optical instrument for a list of
available commands and queries.
240
FTB-2 and FTB-2 Pro
Preparing for Automation
Getting Optimum Performance from Your Unit
Output format (RS-232, ActiveX and TCP/IP): Your unit provides the
following output formats for measurement results:
ASCii
PACKed
Generally, the PACKed format allows to pass three to four times more
information than the ASCii format for the same transfer rate. Often, the
PACKed format is also more efficient since it reduces your unit’s CPU
work load (no need for an internal conversion to ASCII format).
Note:
The PACKed format will only be applied to <DEFINITE LENGTH ARBITRARY
BLOCK RESPONSE DATA> and <INDEFINITE LENGTH ARBITRARY BLOCK
RESPONSE DATA>.
Note:
The choice of data format cannot be made directly via the ToolBox X
software.
For more information on how to set the output format and data types, see
:FORMat[:DATA](IEEE 488.2 and specific commands appendix), Read and
ReadBinary (COM properties and events appendix), and the data types
appendix.
FTB-2 and FTB-2 Pro
241
Preparing for Automation
Changing Communication Settings
Changing Communication Settings
Communication settings cannot be modified without turning on your unit
and starting ToolBox X.
To change communication settings:
1. Tap the System Settings button, then tap Instrument Control
Configuration.
2. Tap Change settings, and then, when the application prompts you to
authorize the changes to your unit (identified as “computer”), tap Yes.
242
FTB-2 and FTB-2 Pro
Preparing for Automation
Changing Communication Settings
3. Under Platform Startup, determine whether your module applications
will be started locally or remotely by clicking the corresponding option.
If Local mode is selected, you will not be able to send remote
commands to your unit.
If Remote mode is selected, all modules in your unit will be
initialized upon startup so you are ready to send remote
commands.
If you selected Local mode, you can go directly to step 6.
4. Under Communication Type, select ActiveX, RS-232, or TCP/IP
For more information on the choice of a particular type, see the table
on page 238.
Note: If the selected communication type does not match the protocol that will
actually be used, an error message is displayed when attempting to control
the instruments.
FTB-2 and FTB-2 Pro
243
Preparing for Automation
Changing Communication Settings
5. According to the communication type you have selected, customize
the corresponding parameters as shown below.
For RS-232
Serial port—used to connect the RS-232 cable.
Determines the speed at which data
is sent between the unit and a
computer, in bits per second (b/s).
End-of-string (EOS) character—used to indicate the
end of a data string (when sending or receiving data).
For TCP/IP
TCP/IP port 5024—used to
connect over Telnet.
For information on communicating with TCP/IP over Telnet, see
the section pertaining to communication through TCP/IP over
Telnet.
6. Tap Apply to confirm your changes.
244
FTB-2 and FTB-2 Pro
Preparing for Automation
Changing Communication Settings
To revert to default general settings:
1. Tap the Restore Default Settings button.
2. Tap Apply to confirm your changes.
To revert to default RS-232 settings:
1. Tap the Default RS-232 Settings button.
2. Tap Apply to confirm your changes.
FTB-2 and FTB-2 Pro
245
Preparing for Automation
Configuring DCOM Access to Your Unit
Configuring DCOM Access to Your Unit
DCOM technology allows to control devices and optical instruments via
Ethernet. The EXFO IcSCPIAccess Class component provided with your
unit acts as a communication link between a client application and EXFO’s
Instrument Control.
DCOM ensures communication between the client application and
Instrument Control via your local network. Since each network has its own
configuration, you need to be familiar with network security, users, groups,
domain management, etc. Basic programming skills are also required to
work with DCOM. For more information, you can refer to the Microsoft
MSDN Help feature, which provides exhaustive technical documentation
on all DCOM issues.
The example presented in the following pages illustrates how to make the
EXFO IcSCPIAccess Class component available to all users of a local
network under Windows 8.1 Pro. The example provided below is for
guidance only; it may not work properly with all networks and interfaces
may slightly differ depending on the operating system used.
To enable DCOM access to your unit, you must:
set the general security parameters
customize the specific security parameters
register callback events.
246
FTB-2 and FTB-2 Pro

 

 

 

 

 

 

 

содержание      ..     14      15      16      17     ..