BR1 User Manual
21
M-BR1-001-01
7
PROGRAMMING GUIDE
Establishing Communication
The BR1 follows the
SCPI
(Standard Commands for Programmable Instruments) message-based
programming standard. It conforms to the
USBTMC
(USB Test and Measurement) standard.
USB
VISA
drivers are required for USB communication.
•
Recommended:
Rohde and Schwarz
o
https://www.rohde-schwarz.com/gr/applications/r-s-visa-application-note_56280-
148812.html
•
Alternatives:
National Instruments
,
Keysight
, etc.
Ethernet
Each BR1 is factory pre-set to use DHCP. To connect the BR1:
•
Connect the BR1 to the network via an Ethernet cable
•
Swipe on the front panel touchscreen to the
Setup
page to view the BR1
’s
IP address
The TCP/IP libraries provided by most operating systems are sufficient. JGR Optics can provide a
communications library upon request.
Note: any
VISA
implementation can control the BR1 via TCP/IP.
Step-by-step Guide
This section will provide a step-by-step programming guide in a
.NET
programming environment such as
C#
or
VB.NET
. Steps 3-5 be
low can be skipped if using JGR’s
CommunicationsLib.dll
(available upon
request).
1.
Install
VISA
drivers on the development system
2.
Connect the BR1 via its USB B port to the development system
3.
Add a reference to
Ivi.Visa.dll
in your project:
C:\Program Files (x86)\IVI Foundation\VISA\Microsoft.NET\Framework32\v2.0.50727\VISA.NET Shared
Components 5.11.0\Ivi.Visa.dll
4.
Use the
IVI.Visa.GlobalResourceManager
to find all USB instruments on your system: