ziHF2 UserManual
ziHF2 UserManual
User Manual
50 MHz Lock-in Amplifier
HF2 User Manual
Zurich Instruments AG
Revision 24.10
Copyright © 2008-2024 Zurich Instruments AG
The contents of this document are provided by Zurich Instruments AG (ZI), "as is". ZI makes no
representations or warranties with respect to the accuracy or completeness of the contents of this
publication and reserves the right to make changes to specifications and product descriptions at any time
without notice.
LabVIEW is a registered trademark of National Instruments Inc. MATLAB is a registered trademark of The
MathWorks, Inc. All other trademarks are the property of their respective owners.
The manufacturer
Zurich Instruments
Technoparkstrasse 1
8005 Zurich
Switzerland
declares that the product
HF2 Series (HF2LI, HF2IS), 50 MHz, 210 MSamples/s
is in conformity with the provisions of the relevant Directives and Regulations of the Council of the
European Union:
The manufacturer
Zurich Instruments
Technoparkstrasse 1
8005 Zurich
Switzerland
declares that the product
HF2 Series (HF2LI, HF2IS), 50 MHz, 210 MSamples/s
1. Change Log
1.1. Release 24.10
Release date: 31-Oct-2024
Consistent spectral measurement across Sweeper, Scope, Data Acquisition, and Spectrum tools.
2. Getting Started
This first chapter guides you through the initial set-up of your HF2 Instrument in order to make your
first measurements. This chapter comprises of:
Quick start guide
Package content and accessories list
Software installation instructions
Powering-on the device, connecting the device via USB, and performing basic operation checks
on the instrument
List of essential handling and safety instructions
This chapter is delivered as a hard copy with the instrument upon delivery. It is also the first chapter
of the HF2 User Manual.
6. Click the Open button on the bottom right of the page. The default configuration will be
loaded and the first measurements can be taken. If the user interface does not start up
successfully, please refer to Connecting to the Instrument.
7. The HF2LI User Manual is included in a LabOne installation and can be accessed in Windows
10 via 1 Start Menu → Zurich Instruments → User Manual HF2 - LabOne.
If any problems occur whilst setting up the instrument and software please see the Troubleshooting
at the end of this chapter. After use it is recommended to shut down the instrument using the soft
power button on the front panel instrument or by clicking on the button at the bottom left of the
user interface screen before turning the power switch on the back panel of the instrument.
Once the Instrument is up and running we recommend going through some of the Tutorials.
Moreover, Functional Overview provides a general introduction to the various tools and settings tabs
with tables in each section providing a detailed description of every UI element as well. For specific
application know-how the blog section of the Zurich Instruments website will serve as a valuable
resource that is constantly updated and expanded.
1. Under Windows 7 and 8, the User Manual can be found in Start Menu → All programs /
All apps → Zurich Instruments → User Manual HF2 - LabOne. ↩
Please verify:
You have received 1 Zurich Instruments HF2 Instrument
You have received 1 power cord with a power plug suited to your country
You have received 1 USB cable
A printed version of the "Getting Started" section
Additional cables have been added to the delivery if an HF2 pre-amplifier has been delivered at
the same time
The line voltage selector on the HF2 Instrument power inlet indicates the correct line voltage of
your country (115 V/60 Hz, or 230 V/50 Hz). While Zurich Instruments configures the power system
when an instrument is initially delivered, no liability derives from potential wrong configuration or
incorrect configuration at any point in time during the lifetime of the instrument
The "Next Calibration" sticker on the rear panel of the Instrument indicates approximately 2 years
ahead in time. Zurich Instruments recommends calibration intervals of 2 years
The serial number of the instrument are displayed on a sticker on the back panel
For Japanese users only: you are supposed to operate the HF2 Instruments with an external 100
V to 110 V transformer in order to have reliable measurement results. Please verify having
received the transformer included in your delivery.
Table 2.1: Package contents for the HF2 Instrument
Carefully inspect your HF2 Instrument. If there is mechanical damage or the instrument does not
seem to operate after the Software Installation, please consult the Handling and Safety Instructions
and the Troubleshooting, then notify the Zurich Instruments support team at [email protected]
as soon as possible.
Do not use this product in any manner not specified by the manufacturer. The protective features of
this product may be affected if it is used in a way not specified in the operating instructions.
The following general safety instructions must be observed during all phases of operation, service,
and handling of the instrument. The disregard of these precautions and all specific warnings
elsewhere in this manual may negatively affect the operation of the equipment and its lifetime.
Zurich Instruments assumes no liability for the user’s failure to observe and comply with the
instructions in this user manual.
Table 2.2: Safety Instructions
Ground the The instrument chassis must be correctly connected to earth ground by means
instrument of the supplied power cord. The ground pin of the power cord set plug must be
firmly connected to the electrical ground (safety ground) terminal at the mains
power outlet. Interruption of the protective earth conductor or disconnection
of the protective earth terminal will cause a potential shock hazard that could
result in personal injury and potential damage to the instrument. For more
information on the ground and earth scheme, refer to section Ground and
Earth Scheme.
Measurement This equipment is of measurement category I (CAT I). Do not use it for CAT II, III,
category or IV. Do not connect the measurement terminals to mains sockets.
Maximum ratings The specified electrical ratings for the connectors of the instrument should not
be exceeded at any time during operation. Please refer to the Specifications for
a comprehensive list of ratings.
If you notice any of the situations listed below, immediately stop the operation of the instrument,
disconnect the power cord, and contact the support team at Zurich Instruments, either through the
website form or through email.
Table 2.3: Unusual Conditions
Fan is not working Switch off the instrument immediately to prevent overheating of
properly or not at all sensitive electronic components.
Power cord or power Switch off the instrument immediately to prevent overheating, electric
plug on instrument is shock, or fire. Please exchange the power cord only with one for this
damaged product and certified for the country of use.
Instrument emits Switch off the instrument immediately to prevent further damage.
abnormal noise, smell, or
sparks
Instrument is damaged Switch off the instrument immediately and ensure it is not used again
until it has been repaired.
Earth ground
Chassis ground
Caution. Refer to accompanying documentation
DC (direct current)
Warning
Do not install drivers from another source other than Zurich Instruments.
installed in the Program Files folder (usually: C:\Program Files) under \Zurich Instruments\LabOne in
the WebServer and DataServer folders, respectively. The Web Server and Data Server ( ziServer ) are
started by running the respective executable in each folder. Please be aware that only one instance
of the Web Server can run at a time per computer. The behavior of the Servers can be changed by
providing command line arguments. For a detailed list of all arguments see the command line help
text:
$ ziWebServer --help
$ ziServer --help
One useful application of running the Webserver manually from a terminal window is to change the
data directory from its default path in the user home directory. The data directory is a folder in which
the LabOne Webserver saves all the measured data in the format specified by the user. Before
running the Webserver from the terminal, the user needs to ensure there is no other instance of
Webserver running in the background. This can be checked using the Tray Icon as shown below.
The corresponding command line argument to specify the data path is --data-path and the
command to start the LabOne Webserver with a non-default directory path, e.g., C:\data is
To uninstall the LabOne software package from a Windows computer, one can open the "Apps &
features" page from the Windows start menu and search for LabOne. By selecting the LabOne item
in the list of apps, the user has the option to "Uninstall" or "Modify" the software package as shown
in Figure 2.8.
Warning
Although it is possible to install a new version of LabOne on a currently-installed version, it is highly
recommended to first uninstall the older version of LabOne from the computer and then, install the
new version. Otherwise, if the installation process fails, the current installation is damaged and
cannot be uninstalled directly. The user will need to first repair the installation and then, uninstall it.
In case a current installation of LabOne is corrupted, one can simply repair it by selecting the option
"Modify" in Figure 2.8. This will open the LabOne installation wizard with the option "Repair" as
shown in Figure 2.9.
The image contains a single LabOne application with all services needed.
Once the application is started, a labone icon will appear in the menu bar. It allows the user to
easily open a new session and shows the status of all services.
Note
Since the application name contains a space, one needs to escape it when using the command line
to access the contents: cd /Applications/LabOne\ XX.XX.app/Contents/Resources
The data server binary is called ziServer (ziServer for HF2 instruments) and is located at
Applications/LabOne\ XX.XX.app/Contents/Resources/DataServer/.
Note
No special command line arguments are needed to start the LabOne services. Use the --help
argument to see all available options.
LabOneLinux<arch>-<release>.<revision>.tar.gz,
Please ensure you download the correct architecture (x86-64 or arm64) of the LabOne installer. The
uname command can be used in order to determine which architecture you are using, by running:
uname -m
in a command line terminal. If the command outputs x86_64 the x86-64 version of the LabOne
package is required, if it displays aarch64 the ARM64 version is required.
cd LabOneLinux<arch>-<release>-<revision>
3. Run the install script with administrator rights and proceed through the guided installation,
using the default installation path if possible:
The install script lets you choose between the following three modes:
Type "a" to install the Data Server program, the Web Server program, documentation and
APIs.
Type "u" to install udev support (only necessary if HF2 Instruments will be used with this
LabOne installation and not relevant for other instrument classes).
Type "ENTER" to install both options "a" and "u".
4. Test your installation by running the software as described in the next section.
$ ziService status
If udev support was installed, the HF2 Data Server program "ziServer" should already be
running. If not, start the Data Server manually at a command prompt:
$ ziServer
If udev support was installed, then the HF2 Data Server program is automatically started
upon plugging in the HF2’s USB cable and powering the instrument.
You should be able to access your instrument. In case of problems please consult the
Troubleshooting at the end of this chapter. 2. Start the Web Server program at a command
prompt:
$ ziWebServer
2. Start an up-to-date web browser and enter the 127.0.0.1:8006 in the browser’s address bar
to access the Web Server program and start the LabOne User Interface. The LabOne Web
Server installed on the PC listens by default on port number 8006 instead of 80 to minimize
the probability of conflicts.
3. You can now start the LabOne User Interface as described in LabOne Software Start-up and
choose an instrument to connect to via the Device Connection dialog shown in Device
Connection dialog.
Danger
Do not use two Data Server instances running in parallel; only one instance may run at a time.
If your command log window is flooded with messages after starting the HF2LI Data Server stop the
program; it is likely that another instance of the Data Server is already running. Verify whether a Data
Server is already running as described above using the ziService program.
$ cd /opt/zi/
2. Run the uninstall script with administrator rights and proceed through the guided steps:
Note
The following web browsers are supported (latest versions)
The software of Zurich Instruments equipment is server-based. The servers and other software
components are organized in layers as shown in Figure 2.10.
The lowest layer running on the PC is the LabOne Data Server, which is the interface to the
connected instrument.
The middle layer contains the LabOne Web Server, which is the server for the browser-based
LabOne User Interface.
The graphical user interface, together with the programming user interfaces, are contained in the
top layer.
The architecture with one central Data Server allows multiple clients to access a device with
synchronized settings. The following sections explain the different layers and their functionality in
more detail.
With a LabOne Web Server running and accessing an instrument, a new session can be opened by
typing in a network address and port number in a browser address bar. In case the Web Server runs
on the same computer, the address is the localhost address (both are equivalent):
127.0.0.1:8006
localhost:8006
In case the Web Server runs on a remote computer, the address is the IP address or network name
of the remote computer:
192.168.x.y:8006
myPC.company.com:8006
The most recent versions of the most popular browsers are supported: Chrome, Firefox, Edge, Safari
and Opera.
The LabOne User Interface start-up link can be found under the Windows 10/11 Start Menu. As
shown in Figure 2.11, click on Start Menu → Zurich Instruments LabOne. This will open the User
Interface in a new tab in your default web browser and start the LabOne Data Server and LabOne
Web Server programs in the background. A detailed description of the software architecture is found
in LabOne Software Architecture.
Figure 2.11: Link to the LabOne User Interface in the Windows 11 Start Menu
LabOne is an HTML5 browser-based program. This simply means that the user interface runs in a
web browser and that a connection using a mobile device is also possible; simply specify the IP
address (and port 8006) of the PC running the user interface.
Note
By creating a shortcut to Google Chrome on your desktop with the Target path\to\chrome.exe -
app=http://127.0.0.1:8006 set in Properties you can run the LabOne User Interface in Chrome in
application mode, which improves the user experience by removing the unnecessary browser
controls.
After starting LabOne, the Device Connection dialog Figure 2.12 is shown to select the device for the
session. The term "session" is used for an active connection between the user interface and the
device. Such a session is defined by device settings and user interface settings. Several sessions
can be started in parallel. The sessions run on a shared LabOne Web Server. A detailed description
of the software architecture can be found in the LabOne Software Architecture.
In some cases it’s useful to switch to the Advanced view of the Device Connection dialog by clicking
on the "Advanced" button. The Advanced view offers the possibility to select custom device and UI
settings for the new session and gives further connectivity options that are particularly useful for
multi-instrument setups.
Note
By default, opening a new session will only load the UI settings (such as plot ranges), but not the
device settings (such as signal amplitude) from the saved settings file. In order to include the device
settings, enable the Include Device Settings checkbox. Note that this can affect existing sessions
since the device settings are shared between them.
Note
In case devices from other Zurich Instruments series (UHF, HF2, MF, HDAWG, PQSC, GHF, or SHF) are
used in parallel, the list in Available Devices section can contain those as well.
The following sections describe the functionality of the Device Connection dialog in detail.
This functionality can usually be ignored when working with a single HF2 Instrument and a single
host computer. Data Server Connectivity is important for users operating their instruments from a
remote PC, i.e., from a PC different to the PC on which the Data Server is running or for users working
with multiple instruments. The Data Server Connectivity function then gives the freedom to connect
the Web Server to one of several accessible Data Servers. This includes Data Servers running on
remote computers, and also Data Servers running on an MF Series instrument.
In order to work with a UHF, HF2, HDAWG, PQSC, GHF, or SHF instrument remotely, proceed as
follows. On the computer directly connected to the instrument (Computer 1) open a User Interface
session and change the Connectivity setting in the Config tab to "From Everywhere". On the remote
computer (Computer 2), open the Device Connection dialog by starting up the LabOne User Interface
and then go to the Advanced view by clicking on on the top left of the dialog. Change the
display filter from Default Data Server to All Data Servers by opening the drop-down menu in the
header row of the Available Devices table. This will make the Instrument connected to Computer 1
visible in the list. Select the device and connect to the remote Data Server by clicking on .
Then start the User Interface as described above. In case you use UHF or MF Instruments in parallel
with the HF2, please also refer to the UHF or MF documentation.
Note
When using the filter "All Data Servers", take great care to connect to the right instrument, especially
in larger local networks. Always identify your instrument based on its serial number in the form
DEV0000, which can be found on the instrument back panel.
Connected The device is connected to a LabOne Data Server, either on the same PC
(indicated as local) or on a remote PC (indicated by its IP address). The user
can start a session to work with that device.
Free The device is not in use by any LabOne Data Server and can be connected by
clicking the Open button.
In Use The device is in use by a LabOne Data Server. As a consequence the device
cannot be accessed by the specified interface. To access the device, a
disconnect is needed.
Device FW upgrade The firmware of the device is out of date. Please first upgrade the firmware
required/available as described in Software Update.
Device not yet ready The device is visible and starting up.
The columns are described in Table 2.6. The table rows can be sorted by clicking on the column
header that should be sorted. The default sorting is by time. Therefore, the most recent settings are
found on top. Sorting by the favorite marker or setting file name may be useful as well.
Table 2.6: Column Descriptions
Allows favorite settings files to be grouped together. By activating the stars adjacent to
a settings file and clicking on the column heading, the chosen files will be grouped
together at the top or bottom of the list accordingly. The favorite marker is saved to the
settings file. When the LabOne user interface is started next time, the row will be
marked as favorite again.
Name The name of the settings file. In the file system, the file name has the extension .md.
Date The date and time the settings file was last written.
Comment Allows a comment to be stored in the settings file. By clicking on the comment field a
text can be typed in which is subsequently stored in the settings file. This comment is
useful to describe the specific conditions of a measurement.
Device The instrument type with which this settings file was saved.
Type
Certain file names have the prefix "last_session_". Such files are created automatically by the
LabOne Web Server when a session is terminated either explicitly by the user, or under critical error
conditions, and save the current UI and device settings. The prefix is prepended to the name of the
most recently used settings file. This allows any unsaved changes to be recovered upon starting a
new session.
If a user loads such a last session settings file the "last_session_" prefix will be cut away from the
file name. Otherwise, there is a risk that an auto-save will overwrite a setting which was saved
explicitly by the user.
The settings file with the name "Default Settings" contains the default UI settings. See button
description in Table 2.7.
Table 2.7: Button Descriptions
Open The settings contained in the selected settings file will be loaded. The button
"Include Device Settings" controls whether only UI settings are loaded, or if device
settings are included.
Include Device Controls which part of the selected settings file is loaded upon clicking on Open. If
Settings enabled, both the device and the UI settings are loaded.
Auto Start Skips the session dialog at start-up if selected device is available. The default UI
settings will be loaded with unchanged device settings.
Note
The user setting files are saved to an application-specific folder in the directory structure. The best
way to manage these files is using the File Manager tab.
Note
The factory default UI settings can be customized by saving a file with the name "default_ui" in the
Config tab once the LabOne session has been started and the desired UI setup has been
established. To use factory defaults again, the "default_ui" file must be removed from the user
setting directory using the File Manager tab.
Note
Double clicking on a device row in the Available Devices table is a quick way of starting the default
LabOne UI. This action is equivalent to selecting the desired device and clicking the Open button.
Double clicking on a row in the Saved Settings table is a quick way of loading the LabOne UI with
those UI settings and, depending on the "Include Device Settings" checkbox, device settings. This
action is equivalent to selecting the desired settings file and clicking the Open button.
2.5.10. Messages
The LabOne Web Server will show additional messages in case of a missing component or a failure
condition. These messages display information about the failure condition. The following paragraphs
list these messages and give more information on the user actions needed to resolve the problem.
In this case the browser is no longer able to connect to the LabOne Web Server. This can happen if
the Web Server and Data Server run on different PCs and a network connection is interrupted. As
long as the Web Server is running and the session did not yet time out, it is possible to just attach to
the existing session and continue. Thus, within about 15 seconds it is possible with Retry to recover
the old session connection. The Reload button opens the Device Connection dialog shown in Figure
2.12. The figure below shows an example of the Connection Lost dialog.
Reloading...
If a session error cannot be handled, the LabOne Web Server will restart to show a new Device
Connection dialog as shown in Figure 2.12. During the restart a window is displayed indicating that
the LabOne User Interface will reload. If reloading does not happen the same effect can be triggered
by pressing F5 on the keyboard. The figure below shows an example of this dialog.
No Device Discovered
An empty "Available Devices" table means that no devices were discovered. This can mean that no
LabOne Data Server is running, or that it is running but failed to detect any devices. The device may
be switched off or the interface connection fails. For more information on the interface between
device and PC see Visibility and Connection. The figure below shows an example of this dialog.
If the host computer is in a local TCP/IP network, it’s possible to control the device remotely and
even from several computers simultaneously. Also in this remote configuration, there is a single
LabOne Data Server connected to the instrument. This Data Server runs on the computer
connected to the instrument via USB. The Data Server can serve one or more remote clients in the
network. All clients can access the same measurement data. Changes in instrument settings done
by one client will be seen by all other clients.
Figure 2.20: Download LabOne MSI using Automatic Update Check feature
2.7. Troubleshooting
This section aims to help the user solve and avoid problems while using the software and operating
the instrument.
The location of the Web and Data Server log files on disk are given in the sections below.
Windows
The Web and Data Server log files on Windows can be found in the following directories.
C:\Windows\ServiceProfiles\LocalService\AppData\Local\Temp\Zurich
Instruments\LabOne\ziServerLog
HF2 Data Server started manually:
C:\Users\[USER]\AppData\Local\Temp\Zurich Instruments\LabOne\ziServerLog
LabOne Web Server (ziWebServer.exe):
C:\Users\[USER]\AppData\Local\Temp\Zurich Instruments\LabOne\ziWebServerLog
Note
The C:\Users\[USER]\AppData folder is hidden by default under Windows. A quick way of
accessing it is to enter %AppData%\.. in the address bar of the Windows File Explorer.
The Web and Data Server log files on Linux or macOS can be found in the following directories.
Edge
Chrome
1. While LabOne is running, open a tab in Chrome and type chrome://discards in the address
bar.
2. In the shown table listing all the open tabs, find LabOne and disable its Auto Discardable
feature.
3. This option avoids discarding and refreshing the LabOne tab as long as it is open. To disable
this feature permanently, you can use an extension from the Chrome Webstore.
Firefox
Opera
Safari
3. Functional Overview
This chapter helps you to quickly get acquainted with the main features, the panels, and the
operating modes of the HF2 Series. A product selector is provided listing the key features of the
products in order to support the selection and ordering. This section is intended as overview and
therefore has a coarse level of detail without containing detailed descriptions.
3.1. Features
The signal to be measured is connected to one of the two high-frequency analog inputs where it is
amplified to a defined range, filtered, and digitized at very high speed. The resulting samples are fed
into the digital signal processing block for demodulation by means of up to 8 dual-phase
demodulators. The demodulators output samples flow into the embedded RISC processor for
further processing or to be sent to the host computer. The samples are also sent to the auxiliary
outputs in order to be available on the front panel of the HF2 Instrument.
The numerical oscillators generate sine and cosine signal pairs that are used for the demodulation
of the input samples and also for the generation of the high-frequency output signals. For this
purpose, the Output Mixers generate a weighted sum of the generator outputs to generate the
multi-frequency signal that can be used a stimulation signal. The 2 high-frequency output stages
provide analog to digital conversion, signal scaling (range), add of an external AC or DC signal, and a
synchronization signal.
The internal reference mode is supported with single-channel and dual-channel operation. This is
possible as the HF2 Instrument includes 2 independent measurement units that are working
autonomously. Each of the measurement units provides analysis for one fundamental and 2
harmonic frequencies in parallel (sometimes called dual-harmonic mode). In total, the HF2LI can
measure 2 fundamental and 4 harmonic frequencies, while the HF2IS can measure 4 frequencies.
The number of frequencies increases with the multi-frequency options.
The demodulator samples are available in analog format on the auxiliary outputs of the HF2
Instrument and digitally on the connected computer transferred over the USB interface. The
auxiliary outputs generate an analog signal after a linear digital to analog conversion at high sample
rate. There are 2 pairs of analog signals allowing to output any 2 of the demodulation sample
streams. All demodulator streams are available on the computer and can be further analyzed or
stored in the local drives.
The external reference mode is supported with single-channel and dual-channel operation. This is
possible as the HF2 Instruments includes 2 independent measurement units that are working
autonomously. In single-channel mode, the reference can be fed into the Input 2/Ref connector on
the front panel. This alternative provides an unmatched capability to use references with small
amplitudes as they can be amplified by the signal path of Input 2. In dual-channel operation, the
external TTL references are fed into the HF2 by means of the DIO0 and DIO1 connectors on the back
panel.
The auto reference mode is supported with single-channel and dual-channel operation. This is
possible as the HF2 Instrument includes 2 independent measurement units that are working
autonomously. In dual-channel mode it is sufficient to connect the signals captures at the DUTs to
the Input 1 and Input 2 connectors of the HF2 Instrument. The HF2 Series support both single-ended
and differential input signals ideal for fixed and floating ground applications.
For the HF2LI the multi-harmonic mode and the arbitrary frequency mode are distinguished. In
multi-harmonic mode it is possible to analyze a signal at the fundamental frequency and at 5
harmonics at the same time, and the arbitrary frequency mode is the extension to analyze a signal
of interest at 6 completely independent frequencies.
4. Tutorials
The tutorials in this chapter aim to help users perform their initial measurements with HF2 lock-in
amplifiers using the LabOne User Interface. The tutorials require some basic laboratory equipment
and equipment handling knowledge. For the tutorials, you’ll need the following material:
1 USB 2.0 cable (supplied with your HF2 Instrument)
3 BNC cables (2 optional)
1 male shorting cap (optional)
1 oscilloscope (optional)
1 T-piece (optional)
Note
For all tutorials, you must have the LabOne software package installed as described in the Getting
Started Chapter. Start up the user interface as described in Connecting to the Instrument.
The LabOne User Interface is provided as the primary interface to the HF2LI but it is not the only
program that can run the instrument. Typically, the user will use LabOne UI to set up the instrument
and then either use LabOne UI to take the measurements or run (possibly concurrently) some
custom programs.
Note
This tutorial aims to give a walk-through of the main features of the LabOne User Interface. Please
also see User Interface Overview for an overview of the UI’s layout and Functional Description
LabOne User Interface in general for a thorough description of all the available settings available in
LabOne UI for your instrument.
The Signal Inputs section contains a Range that can be set to a value between 1 mV and 1.6 V, the
largest amplification of the input signal is achieved for 1 mV. The input has protection diodes that
clip signals with amplitude above 5 V.
Warning
Please respect the compliance to the maximum ratings Maximum ratings to prevent damage to the
instrument.
The AC button sets the coupling type: AC coupling has a cutoff frequency of 1 kHz. The AC coupling
consists of a blocking capacitor between two input amplifier stages: this means that a DC signal
larger than 5 V will saturate the front amplifier even if AC coupling is enabled. The Diff Differential
mode button sets single-ended/differential measurement mode: in the differential mode, the
voltage difference between the +In and -In is amplified whereas in single-ended mode, the voltage
at the +In connector is amplified. The 50 Ω button toggles the input impedance
between low (50 Ω) and high (approx 1 MΩ) input impedance. 50 Ω input impedance should be
selected for signal frequencies above 10 MHz to avoid artifacts generated by multiple signal
reflections within the cable. With 50 Ω input impedance, one will expect a reduction of a factor of 2 in
the measured signal if the signal source also has an output impedance of 50 Ω.
Next, one finds the Oscillators section used to control the frequency for the demodulation with an
internal reference. For the purpose of this tutorial, set the frequency of oscillator 1 to 1 MHz.
Under the section Demodulators the user can select which harmonics and filter bandwidths to use
for demodulation. It is not uncommon to need to measure different harmonics (integer multiples of
the fundamental frequency, in this case 1 MHz). Select the harmonic (Harm) to 1 for the first
demodulator (the first line), set the filter order to 4 (this corresponds to a filter steepness of 24 dB/
oct or 80 dB/dec, an attenuation of 104 for a tenfold frequency increase) and type 10 Hz into the BW
control (the digital filters of the HF2 are described in Discrete-Time Filters). Users are sometimes
interested in the second harmonic that may be generated by nonlinear processes in their device
under test: select harmonic 2 for the second demodulator and type the same values for the filter
order and BW as in the previous case. You can also measure the same fundamental harmonic with a
larger bandwidth: set harmonic to 1, order to 24 dB/oct and BW to 1 kHz for the third demodulator.
Measuring with different bandwidths can provide the signal average and transient values. Click on
the enable button next to the filters to read out the values from the 3 demodulators.
Next, set the Trigger to Continuous and the Rate to 7.20 kSa/s (rate settings can only be sub-
multiples of 460 kSa/s, the maximum readout rate for one demodulator): in this case, the HF2LI will
send the demodulated signal sampled at this rate through the USB. Due to the finite bandwidth of
the USB connection the maximum cumulative demodulator sample rate is 700 kSa/s, which can be
split over the active demodulators, see Maximum sample readout rate. In this example we’re using 3
active demodulators, therefore, since the sample rates are sub-multiples of 460 kSa/s the maximum
possible readout rate for each demodulator is 230 kSa/s. Note that, according to the Nyquist
sampling theorem , the sampling rate should be at least twice as fast as the maximum frequency
present in the signal, in order to reconstruct the demodulated signal (this is not important if you only
need one data point or the standard deviation of the demodulated signal). Since the low-pass filters
do not have an infinite roll-off (the attenuation is not infinite past the filter’s 3 dB frequency), it is
common to set the sampling rate to about 8 times higher than the filter bandwidth.
Next, we configure the HF2 to output a 1 MHz signal on its Signal Output 1/Out connector. In case
you have the HF2-MF Option installed, go to the Signal Outputs section, set the excitation amplitude
Amp (Vpk) to 100 mV and the output range to be the smallest possible but at least twice as large as
than the amplitude for minimum harmonic distortion. Connect Signal Output 1 to Signal Input 1 +In
with a BNC cable and click on the On button in the LabOne Signal Outputs section of Output 1. With
the HF2-MF Option installed, first go the Output Amplitudes section, set the signal amplitude Amp 1
(Vpk) of demodulator 7 to 100 mV and enable the button next to the amplitude field. Connect Signal
Output 1 to Signal Input 1 +In with a BNC cable and click on the On button in the LabOne Signal
Outputs section of Output 1.
Now open the Plotter tab. Here one can display the demodulated values over time. Select Enabled
Demods R from the Presets and click on Run/Stop to start the acquisition. The demodulated traces
for these three demodulators are displayed, offset to one another: as before, demodulators 1 and 3
have the same average value, but a larger noise amplitude is clearly visible in the third trace. In Plot
Functionality you can find a detailed description of the functions of the plot window. For instance
you can find there ways to change the horizontal and vertical scales, to remove offsets in the plot,
and to use the cursors for exact measurements. The amount of stored data depends on the set
Window Length in the Settings sub-tab.
the USB bandwidth and may lead to USB sample loss - therefore avoid using small hold off values if
not needed.
You can go from the time domain display to a frequency domain display by selecting the Freq
Domain FFT Mode in the Control sub-tab. The frequency resolution is coarse because the time trace
contains 2048 points. Averaging of the Fourier power spectra can be enabled to increase the SNR
ratio.
Next is the Sweeper tool: it turns the HF2LI into a frequency response analyzer, giving the transfer
function of a device under test in the form of a Bode plot. In AFM applications this is useful to easily
identify the resonance frequency of a cantilever as well as the phase delay. The sweeper tool can
also be used to sweep parameters other than frequency: phase, time constant, amplitude and
auxiliary output voltage.
As a frequency sweeper example, we will execute a logarithmic sweep of 100 points between 1 kHz
and 1 MHz. In the Horizontal section, set the sweep range Start to 1 kHz and Stop to 1 MHz, 100
points and enable the Log Sweep. Click on Run/Stop for continuous sweeping or on Single for a
single sweep. Toggle the AC input coupling in the Lock-in settings, and observe the attenuation in
the response at 1 kHz in AC coupling, since the AC coupling has a cutoff frequency of approximately 1
kHz. In the History sub-tab, the measurement that is displayed can be saved to a data file in ASCII
format. There it is also possible to declare one out of several measured traces as a reference by
selecting the trace in the list and clicking on Reference. The selected trace then appears below the
list, and next to it there is the enable button for the reference mode. In reference mode, all traces in
the plot are divided by the reference trace.
During the logarithmic sweep the NEPBW (noise equivalent power bandwidth) is adjusted for each
frequency point and displayed under the Filters BW field under the Lock-in tab. The adjustment is
due to the fact that the sweep is logarithmic and the sweep frequency steps are not equally spaced.
In order to account for all signal power (and power densities), the measurement bandwidth must be
changed accordingly. This can be done automatically by going from Application Mode to Advanced
mode in the Settings sub-tab, and there selecting Auto as the Bandwidth Mode. For an explanation
of the NEPBW, see Signal Bandwidth chapter. Note that in this configuration, if the signal to noise
ratio is large, there will not be any effect when disabling Auto BW, since the noise signal is negligible
when measured with (almost) any NEP bandwidth. Averaging can also help to improve the signal-to-
noise ratio during the sweep.
As an example of noise measurement, disconnect the BNC cable from Signal Output 1 and connect
it to Signal Output 2. In the Lock-in tab, turn off the Signal Output 1, and generate a 100 kHz / 100 mV
excitation Signal Output 2 (remember to turn on the output in the Signal Outputs section). In the
frequency sweeper perform a single sweep with Auto BW enabled. A relatively wide peak will appear
at 100 kHz, as the measurement was performed with wide NEPBW. Switch the X scaling to Manual
and zoom into the region around 100 kHz; click the Copy From Range button to use the new
boundaries for the sweep as selected in the graph and again perform a single sweep. The peak at
100 kHz will appear narrow, reflecting the change in the measurement bandwidth.
The Spectrum tool (more information (see Zoom FFT)) allows the user to measure the frequency
spectrum around a specific frequency: this is done by performing the Fourier transform of the
demodulated X and Y (or in-phase and quadrature) components of the signal (more precisely of the
quantity X+jY, where j is the imaginary unit). This method is called zoomFFT. The frequency resolution
that can be achieved in this way is given by the sampling rate divided by the number of recorded
samples, and is therefore much higher than the frequency resolution obtained in the Scope tab. The
zoomFFT approach is more efficient than the FFT on raw samples in which one digitizes a long time
trace, performs the Fourier transform and retains only the portion of the frequency spectrum of
interest while discarding the rest.
We continue from the previous section with the BNC connecting Signal Output 2 to Signal Input 1,
and 100 mV, 100 kHz sine wave. In the Lock-in tab, set the oscillator 1 frequency to 101 kHz. Set the
Demodulator 1 parameters to filter order 4, filter bandwidth 500 Hz, and Data transfer rate 7.2 kSa/s.
In the Spectrum tab, enable Filter Compensation and select Demodulator 1 for Signal Input. A peak
appears at 1 kHz to the left of the center frequency. Increasing the number of lines in FFT will result
in a finer frequency resolution. The Filter compensation button compensates for the demodulator
filter, by dividing the measured spectrum by the demodulator filter transfer function. This is why the
input signal does not appear attenuated despite being outside the filter bandwidth (1 kHz and 500
Hz respectively).
The Auxiliary tab controls the 4 Auxiliary Outputs on the right side of the HF2LI front panel, as well as
the 2 Auxiliary Inputs on the rear panel. Aux Output 1 is represented by the first line of controls in the
Aux Output section. In order to output the lock-in signal on this connector, select Demod R from the
Signal drop-down menu and set the channel (i.e., the demodulator number) to 1. Set the Scale factor
to 10 V/VRMS: you should read 0.712 V in the output Value (V) field, which corresponds to the
amplitude of the signal as you can read it in the Numeric tab multiplied by the scale factor. If one is
interested in small variations of the signal amplitude, an offset can be applied to the output: type –
0.712 in Offset (V) or click on the button next to the Offset field: Value (V) should now read 0.
Note
This tutorial is both for HF2LI Lock-in Amplifier and HF2IS Impedance Spectroscope users.
Connect the cables as described above. Make sure the HF2 unit is powered on, and then connect
the HF2 to your computer with a USB 2.0 cable. Finally launch LabOne (Start Menu/Programs/Zurich
Instruments/LabOne User Interface HF2).
Output 1 range 1V
Oscillator 1 Frequency 2.5 MHz
Demodulator 7 Amp 1 0.5 V
Output 1 ON
These settings set the demodulation filter to second-order low-pass operation with a 7 Hz
bandwidth. The corresponding time constant can be obtained easily by clicking on the label on top
of the bandwidth setting column according to Equation 3 provided in Signal Processing Basics. The
output of the demodulator filter is read out with 100 Hz, implying that 100 data samples are sent to
the host PC per second. These samples are viewed in the Numeric and Plotter tab that we examine
next.
The Numeric tool provides the space for 6 measurement panels corresponding to the 6
demodulators. Each of the panels has the option to display the samples in Cartesian (X,Y) or polar
format (R,THETA). The unit of the (X,Y,R) values is VRMS.
Next, we’ll have a look at the tab. This tab provides a time plot of the demodulator outputs. It is
possible to plot up to 6 signals continuously as (X,Y) or (R,THETA) pairs, to set different scales, or to
make detailed measurements with 2 cursors. For a detailed description of the functionality available
in the Plotter please see Plotter Tab and Plot Functionality.
Figure 4.8: LabOne Plotter view with plot of demodulator 1 output (TC = 10 ms)
Increasing the time constant increases the integration time of the demodulators smoothing out the
demodulator outputs. This averages the noise over time and the output of the filters is more stable.
This manifests itself in a smoother curve of the demodulator data but also in a larger number of
stable digits in the Numeric tab.
Figure 4.9: LabOne Plotter displaying the data of two demodulators with different time
constants
Note
This tutorial can be performed both on the HF2LI Lock-in Amplifier and
on the HF2IS Impedance Spectroscope and will use the Input
connector. The generation of multi-frequency signals is simple on the
HF2LI with the HF2-MF option or on the HF2IS, where there is no need to
make use of the ADD connector.
Connect the cables as described above. Make sure the HF2 unit is powered on, and then connect
the HF2 to your computer with a USB 2.0 cable. Finally launch LabOne (Start Menu/Programs/Zurich
Instruments/LabOne User Interface).
Output 1 range 1 V / ON
Output 2 range 1 V / ON
Oscillator 1 frequency 2'500'000 Hz
Demodulator 7 Amp 1 0.3 V / ON
Oscillator 2 frequency 2'500'001 Hz
Demodulator 8 Amp 2 0.3 V / ON
Signal Output 1 Add ON
When connecting an oscilloscope to the Output 1 connector, you should be able to observe the
superposition of the 2 sinusoids. To see the acquired signal inside the LabOne User Interface switch
to the Scope tab. The Scope view looks like this with the following settings.
Table 4.6: Settings: acquire the test signal
Try to change the output range to 0.1 V, and see how the output voltage is changed to prevent
inconsistent settings.
These settings set the demodulation low-pass filter to a 10 ms time constant (the corresponding
bandwidth is around 10 Hz) and the filter slope to second order. The output of the filter is sampled at
a rate of 100 Hz, and the samples are sent to the host computer.
Next you use a high time constant to separate the 2 original sinusoids even though they are
superposed in one signal. In the Lock-in tab apply the following settings.
Table 4.8: Settings: filter with a high time constant
These settings set the demodulation low-pass filter to a time constant of 2 s, with a resulting
measurement bandwidth of 35 mHz. With these settings the HF2 is able to distinguish between the
signal component at 2'500'000 Hz and the signal component at 2'500'001 Hz as the measurement
bandwidth is considerably less than the frequency spacing of the 2 signal components. The output
of the demodulator is stable after a settling time.
The time it takes to settle depends on various parameters like filter setting and switch-off timing.
The difference in amplitude of the measurement at 2'500'000 Hz with or without interferer is in the
range of 50 μV. With different filter settings it is possible to do better than that.
Consider this: you have 2 signals with relevant amplitude (0.3 V) interfering with each other as their
frequency is very close (1 Hz at 2.5 MHz). The power of lock-in amplification consists of extracting the
relevant signal energy at exactly one frequency. The "immunity" from nearby interferer is the
capability to ignore them. This a simple definition of the dynamic reserve.
Filtering constitutes a trade-off between measurement speed and measurement accuracy. In order
to measure fast events, it is necessary to open up the filters allowing also more noise in the
measurement result. The opposite is to measure with narrow filters which increases the signal-to-
noise ratio, but limits the capability to detect the changes in the signal of interest. This trade-off is in
common with any lock-in amplifier. The power of the HF2 is that it allows to do both at the same time
thanks to the multiple demodulators per input channel.
This is done by connecting the Output 2 connector with the Input 2+ connector with a BNC cable.
This tutorial shows a single-ended operation, meaning that there is no signal going into the Input 2-
connector. Optionally, it is possible to connect the generated signal from Output 2 to an oscilloscope
by using a T-piece and an additional BNC cable. The Output 1 connector is to be connected to the
Input 1+ connector. This allows you to check the generated reference signal. The measurement
setup is shown in the following figure.
Output 2 range 1V
Demodulator 8 Amplitude 2 1.0 V / ON
Oscillator 2 frequency 1 MHz
Signal input 2 range / AC / Diff / 50 1.2 V / ON / OFF / OFF
When connecting an oscilloscope to the Output 2 connector, you should be able to observe the
sinusoid. Alternatively, you can look at the signal in the LabOne UI Scope with the following settings.
Table 4.12: Settings: acquire the reference signal
Note
In the Scope tab set the Horizontal Mode to Freq Domain FFT in order to see the frequency
spectrum of the signal. This will also set a logarithmic Y scale by default. An Exponential Moving
Average can be enabled in the Avg Filter field to reduce the noise floor in the display.
Output 1 range 1V
Demodulator 7 Amp 1 1.0 V / ON
Oscillator 1 frequency 1 MHz
Demodulator 1 En/Rate ON / 100 Hz
Signal Input 1 range / AC / 50 / Diff 1.3 V / ON / OFF / OFF
The external reference mode makes use of demodulators 7 and 8. These two demodulators can not
be used for measurement. They serve as phase sensitive detectors to set up phase-locked loops
locking an external reference and an internal oscillator. Demodulator 7 is assigned to oscillator 1, and
demodulator 8 is assigned to oscillator 2. Previously we have chosen oscillator 2 as the source of the
reference signal on Signal Output 2. Now we want lock oscillator 1 to this reference. In order to
achieve that, we set the Mode field of demodulator 7 to ExtRef. In the drop-down selector in the
Input column of demodulator 7, select Signal Input 2.
In the demodulation process, the measurement signal is not multiplied directly with the external
reference signal. Instead, the measurement signal is multiplied with newly generated reference
signal from the internal oscillator, using only the frequency and phase information of the external
reference. The continuous toggling of the oscillator frequency shows that the newly generated
reference is continuously adjusted to the external reference.
When using the DIO 0 as the external reference signal, it should be taken into account that this is a
digital I/O, which should be operated at TTL levels. Therefore the Aux 1 output is connected to the
Add connector of Output 2, to provide a DC shift of the test signal and thus make it TTL compatible.
The settings used for generating the test signal are shown in the following tables. The resulting
signal will have a DC offset of 1.5 V and an amplitude of 1 V and will thus oscillate between 0.5 V and
2.5 V, which is TTL compatible.
Table 4.14: Settings: generate the test signal
The noise is the standard deviation of the measured X or Y value and is measured by first calculating
the average, Xavg, over a defined period of time. Then, this signal, Xavg, is subtracted from the X value
to get the deviation. Finally, the RMS (root-mean-square) is calculated, corresponding to the total
noise power of the input signal within a defined bandwidth around the reference frequency. The
value is correct for input noise with Gaussian distribution of the noise power, which is normally the
case.
Most of the times the noise spectral density is of interest, which is the normalization of the Xnoise
made independent of the filter bandwidth. To calculate the noise spectral density from the
calculated RMS noise, one needs to divide the measured value by the square root of the bandwidth
√BW. The noise spectral density has the units V/√Hz.
The related equations are Xnoise = RMS(X - Xavg)/√BW, and Ynoise = RMS(Y - Yavg)/√BW respectively.
The X and Y noise are expected to be identical.
Run the example, ziExample-HF2-Noise.vi. Make sure that the correct Demodulator is selected. The
noise spectral density should now show a value close to 5 nV/√Hz. By changing the settings in the
user interface, the noise behavior of the device can be analyzed in more detail. For example,
changing the reference frequency to 10 kHz will slightly increase the spectral noise density, because
of flicker noise that is larger at lower frequencies and generally present in all electronic circuits.
Amplitude modulation (AM) and frequency modulation (FM) refer to the modulation of an oscillating
signal s
s(t)=Acos(ωt+φ)s{\left(
(t) =A cos (ωt + φ) , the so-called
t \right) carrier.
=}A\cos\left(
A and ωt
ωt+φ\omega
\omega
+ φ are tthe
+ tamplitude
\varphi
+ \varphi
\right)
and the phase of
the signal, respectively. Figure 4.18 depicts the phasor representation of s(t). The phasor follows a
circle with radius A, and the phase wraps around after a full revolution of 360°. The signal s(t) is the
projection of the phasor on the abscissa.
In the case of AM signals, the amplitude A, i.e. the phasor length, is time dependent, as in Figure
4.18(b). In the case of FM signals, the phase offset φ\varphi
φ is time dependent and the phasor has a
constant amplitude, see Figure 4.18(c).
Amplitude and frequency modulation, best known from radio transmission, are also common lock-in
detection techniques.
Figure 4.18: A sinusoidal signal represented as a phasor: the signal corresponds to the
projection on the x axis. Amplitude (b) and frequency (c) modulated signals affect the
amplitude of the phasor or its phase
where A and M are the amplitudes of the fast and slow modulations respectively and φ\varphi
φ the phase
offset. There is no restriction on the magnitude of MM
M compared to AA
A . The information of interest is
encoded in these three parameters, A, M and φ\varphi
φ.
In the frequency domain, the AM signal s(t) is composed of three frequencies: the carrier at fcf_{c}
fc and
two additional sidebands at ffc−fmf_{c}
c − fm and f
fc+fmf_{c}
c -+
f_{m}
fm , as shown
+ f_{m}
in Equation 1. The two sidebands have
equal amplitude M/2, half of the modulating signal, and the carrier amplitude is independent on the
modulation amplitude.
The traditional way of measuring an AM signal is called double (or tandem) demodulation and
requires two lock-in amplifiers: the first one demodulates the signal at fcf_{c}
fc with a bandwidth that is at
least as large as fmf_{m}
fm (but smaller than ffc−fmf_{c}
c − fm ). This -isf_{m}
to ensure that the full amplitude of the
modulation signal is retained. The demodulated signal after the first lock-in becomes
after A + M sin(ωm t)
s(t)⋅cos(ωct)→filteringafterd1(t)=A+Msin(ωmt)2cos(φ)(2)\begin{equation} \tag{2} s(t)(2)
\cdot cos(\ome
s(t) ⋅ cos(ωc t) d1 (t) = cos(φ)
filtering 2
In d
d1(t)d_{1}\left(
1 (t) , the two sidebands
t \right)are now located at the same frequency fmf_{m}
fm , while the carrier appears as
a DC component. When the demodulated signal d d1(t)d_{1}\left(
1 (t) is fed to a second
t \right)
lock-in amplifier, the result
of the second demodulation at fmf_{m}
fm is proportional to McosφM\cos\varphi
M cos φ .
Figure 4.19: Comparison between tandem demodulation and the HF2-MOD option of an
AM modulated signal
Start by enabling the Signal Output 2 in the Lock-in MF tab and disabling all demodulator Output
Amplitudes. This will ensure that only the desired components of the amplitude-modulated signal
appear on the output.
Table 4.17: Settings: generate the AM signal
In the Modulation tab, in the MOD 2 section, select the following parameters:
Table 4.18: Settings: generate the AM signal
This generates an AM signal with two sidebands of equal amplitude. To look at this signal, connect
Signal Output 2 to Signal Input 1 of the HF2LI. Select the correct input parameters: in the Lock-in tab,
for Signal Input 1, make sure Differential mode and 50 Ω are disabled. Then click on the auto range
button In the Scope tab, select Source to be Signal Input 1, Trigger to be Signal Output 2 and click
on Run to activate the Scope. Observe how the carrier amplitude is modulated at 100 kHz as seen in
. In Frequency Domain FFT mode, the plot shows three peaks: the carrier at 1 MHz and two
sidebands at 0.9 and 1.1 MHz (see the cursors in the frequency domain representation in Figure 4.21).
This sets the correct demodulation of the AM signal with the two sidebands. In the Numeric tab, look
at the amplitude of the carrier, 142 mVRMS and of the two sidebands, 35 mVRMS each, one quarter of
the carrier amplitude: this corresponds to a modulation index of 50%.
Because the frequency is the time derivative of the phase (divided by 2π2\pi
2π ) and the phase is the
argument of the cosine in Equation 1, we can define the instantaneous frequency as
f (t) = fc +
f(t)=fc+fpcos(2πfmt)(4)\begin{equation} fp cos(2πf
\tag{2} t) f_c + f_p cos(2\pi f_m t) \end{equation}
f(t)m= (2)
The spectrum of the FM signal of Equation 1 is more complicated than in the case of amplitude
modulation. It consists of the carrier and a series of pairs of sidebands at multiple integers of fmf_{m}
fm
around the carrier frequency, see Figure 4.22(d). The amplitudes of the carrier and sidebands are
given by mathematical functions called Bessel functions usually indicated by JnJ_{n}
Jn ) evaluated at the
modulation index h h=fp/
= fp /fm . For instance, the n-th pair of sidebands is located symmetrically about
c ± nfm andfmh
fm at ffc±nfmf_{c}
fmf_{m} =n
its\pm f_{p}/f_{m}
f_{m}
amplitude is JJn(h)J_{n}\left(
n (h) . h \right)
A peculiarity of the Bessel functions is that they oscillate around zero: even for the carrier, as the
modulation index is increased, its amplitude JJ0(h)J_{0}\left(
0 (h) decreases, crossing
h \right)zero at h
h≈2.41h
≈ 2.41 and
\approx 2.41
then it
increases in amplitude (in anti-phase) before reaching zero again at h h≈5.52h
≈ 5.52 .\approx 5.52
At low modulation indexes, the amplitude of higher sidebands is very low and can thus be ignored:
this is called the narrow-band approximation. In this limit (it is customary to assume h
h<0.2h
< 0.2 ),<only
0.2
the two sidebands at ffc±fmf_{c}
c ± fm have non-negligible
\pm f_{m} amplitude and the signal s(t) can be approximated
by
The first term is the carrier, the other two are the lower and upper sidebands. The problem of finding
h (and the peak amplitude fpf_{p}
fp ) reduces now to comparing the amplitude of the first pair of sidebands
Even though s ~(t) looks very similar to an AM signal, there is a subtle but substantial difference: the
s~(t)
phases of the\ sidebands are offset with respect to that of the carrier. This results in the sidebands
being in quadrature with the carrier. For example, assume that φ\varphi
φ = 0: demodulating s ~(t) with the
s~(t)
t
carrier signalisin
s (ωc t) gives the DC component (the carrier) but no sidebands; on the \ other hand,
demodulatingli with the quadrature cos c (ωc t) , only the two sidebands at fmf_{m}
fm are observed
t and no
carrier is present. Because of this, FM
dn(ωct) o detection can be done in a similar way as AMidetection
scheme, using\ the tandem configurations(ωct)described previously in Amplitude Modulation. l
e
{s \ d
si c e
}n o {
\\ s s
ll \ }
ee l \
ff e l
tt f e
(( t f
t\ ( t
\o \ (
rm o t
ie m \
gg e r
ha g i
t_ a g
){ _ h
c { t
} c )
t }
Figure\ 4.22: (a) A simple frequency
t modulated signal, (b) its instantaneous frequency,
r \
(c) the frequency domain spectrum of a FM signal is composed of an infinite series of
i
sidebands, here depicted forr h = 0.35, (d) n-th Bessel function versus h, (e) ratio J_1_(h)
/ J_0_(h)
g (red line), J_2_(h)
i / J_0_(h)(blue line), slope 0.5 line (black dashed line)
h g
The HF2-MOD AM/FM Modulation option permits direct generation and demodulation of an FM
t h
signal. For demodulation, this option enables measurement of the parameters A, fpf_{p} fp , and φ\varphi
φ.
) t
)
Internally the HF2LI calculates the peak frequency fpf_{p}
f with the method described above, from the
p
ratio JJ1(h)/
1 (h) /J0 (h) , proportional to the carrier and first sideband amplitude. Since this method is valid
only for narrow-band frequency
J0(h)J_{1}{\left( modulation, users
h \right)/J_{0}\left( are advised to work at small values of the
h \right)}
modulation index h < 1.
Another, intuitive way of demodulating an FM signal would be to use the PLL to track the frequency
deviation Δf
Δf\Delta
and to ffurther demodulate this signal. However, using sideband demodulation with the
HF2-MOD AM/FM Modulation option provides a better signal-to-noise ratio. This is because the
signal can be averaged over several modulation cycles while keeping the bandwidth small.
In the Modulation tab, in the MOD 2 section, select the following parameters:
MOD 2 Enable ON
Carrier Oscillator (Osc)/Frequency Osc 1 / 1 MHz
Sideband 1 Oscillator (Osc)/Frequency Osc 2 / 100 kHz
Carrier Mode/Enable FM / ON
Generation Carrier Amplitude/Enable 100 mV / ON
Generation Index 0.1
MOD 1 Enable ON
Carrier oscillator (Osc) 1
Sideband 1 oscillator (Osc) 2
Carrier Mode FM
Low-pass Filter BW (Carrier) 10 Hz
Low-pass Filter BW (Sideband 1) 10 Hz
This sets the correct demodulation of the FM signal. In the Numerical tab, look at the amplitude of
the carrier, 71 mVRMS. You can also see that the two sidebands have an amplitude of 3.5 mVRMS.
This corresponds approximately to the carrier amplitude multiplied by the ratio JJ1(h)/
1 (h) /J0 (h) , see
Figure 4.22(e) for our modulation index of h=0.1. Note that the phases of the two J0(h)J_{1}{\left(
sidebands are 180°h \right)/J_{0}
apart, which is typical for FM.
4.8.2. Preparation
Connect the cables as shown in the figure below. Make sure that the HF2 Instrument is powered on
and connected by USB to your host computer or by Ethernet to your local area network (LAN) where
the host computer resides. After starting LabOne the default web browser opens with the LabOne
graphical user interface.
Note
The table below applies to instruments without the HF2-MF Multi-frequency option installed. With
the option installed, the output amplitude needs to be configured in the Output Amplitudes section
of the Lock-in tab.
We use demodulator 1 to generate the sweep signal and to demodulate the signal transmitted
through the resonator. The Lock-in settings ensure that the oscillator used both for the generation
and the measurement is the same (oscillator 1). In addition, the input must be set to Signal Input 1 in
accordance with the connection diagram.
Once the Sweeper button is clicked, the Sweeper will repeatedly sweep the frequency
response of the quartz oscillator. The History Length of 2 allows you to keep one previous sweep on
the screen while adjusting the sweep range. You can use the zoom tools to get a higher resolution on
the resonance peak. To redefine the start and stop frequencies for a finer sweeper range, just click
the button. This will automatically paste the plot frequency range into the Start and
Stop fields of the Sweeper frequency range.
Note
The sweep frequency resolution will get finer when zooming in horizontally using the
button even without changing the number of points.
When a resonance peak has been found, you should get a measurement similar to the solid lines in
the two figures below. The resonance fitting tool allows us to easily determine resonance
parameters such as Q factor, center frequency, or peak amplitude. To use the tool, place the two X
cursors to the left and right of the resonance, open the Math sub-tab of the Sweeper tab, select
"Resonance" from the left drop-down menu, and click on . Repeat this operation, once with the
demodulator amplitude as the active trace in the plot, and once with the demodulator phase (see
Vertical Axis Groups). The tool will perform a least-squares fit to the response function of an LCR
circuit. In the limit of large Q factors, this corresponds to a fit to the square root of a Lorentzian
function for the amplitude, and to an inverse tangent for the phase. The exact fitting functions are
documented in the section called "Cursors and Math".
The fitting curves are added as dashed lines to the plot as shown in Figure 4.24 and Figure Figure
4.25. Since the two fits are independent, they may lead to different results if the resonance
significantly deviates from a simple LCR circuit model, which often is the case if there is capacitive
coupling between the leads. In this case, the fit to the phase curve which is clearly better than that
to the amplitude curve yields a Q factor of about 12,800, and a center frequency of 1.8428 MHz.
The phase in Figure 4.25 follows a typical resonator response going from +90° to –90° when passing
through the resonance on a 50 Ω input. Directly at the resonance, the measured phase is close to 0°.
We will use this value as a phase setpoint for the PLL. After having completed the Sweeper
measurements, turn off sweeping by clicking on . This will release the oscillator frequency
from the control by the Sweeper.
Figure 4.24: Amplitude of the resonator’s frequency response measured with the
LabOne Sweeper. Solid line are measurement data, dashed line is a fit to the response
function of an LCR circuit model using the resonance fitting tool.
Figure 4.25: Phase of the resonator’s frequency response measured with the LabOne
Sweeper. Solid line are measurement data, dashed line is a fit to the response function
of an LCR circuit model using the resonance fitting tool.
The upper and lower frequency (or range) relative to the Center Frequency should be chosen narrow
enough so that the phase of the device follows a monotonous curve with a single crossing at the
setpoint, else the feedback controller will fail to lock correctly. Now, we need to find suitable
feedback gain parameters (P, I, D) which we do using the Advisor. Set the Target BW (Hz) to 1.0 kHz.
The target bandwidth should be at least as large as the expected bandwidth of the frequency
variations. In the present case, the resonator frequency is practically stable, so 1 kHz bandwidth is
largely enough. Click on the button to have the Advisor find a set of feedback gain
parameters using a numerical optimization algorithm. Figure 4.26 shows a typical view of the PLL tab
after the Advisor has finished. The Advisor tries to match or exceed the target bandwidth in its
simulation. The achieved bandwidth can be read from the BW (Hz) field, or directly from the 3 dB
point of the simulated Bode plot on the right. The Phase Margin value of the simulation is displayed
in the PM (deg) field and should exceed 45° to ensure stable feedback operation without
oscillations. Once you are satisfied with the Advisor results, click on the button to
transfer the feedback gain parameters to the physical PLL controller. To start PLL operation, click on
the Enable button at the top of the PLL tab.
Table 4.25: Settings: set up and run the PID Advisor
Tab Sub-tab Section # Label Setting / Value / State
PLL Advisor Advisor 1 Target BW (Hz) 1k
PLL Advisor DUT Model 1 DUT Model Resonator Frequency
PLL Advisor DUT Model 1 Res Frequency (Hz) 1.8 M
PLL Advisor DUT Model 1 Q 12.8 k
PLL Advisor Advisor 1 Advise click
Figure 4.26: Settings and Advisor simulation in the PLL tab (typical – parameters may
differ from the example)
When the PLL is locked, the green indicator next to the label Error/PLL Lock will be switched on. The
actual frequency shift is shown in the field Freq Shift (Hz).
Note
At this point, it is recommended to adjust the signal input range by clicking the Auto Range
button in the Lock-in tab. This often increases the signal-to-noise ratio which helps the PLL to lock
to an input signal.
The easiest way to visualize the frequency drift is to use the Plotter tool. The frequency can be
added to the display by using the Tree Selector to navigate to Demodulator 1 → Sample and
selecting Frequency. The frequency noise increases with the PLL bandwidth, so for optimum noise
performance the bandwidth should not be higher than what is required by the experiment. The
frequency noise also scales inversely with the drive amplitude of the resonator.
4.9.2. Preparation
Connect the cables as illustrated below. Make sure the HF2 Instrument is powered on, and then
connect the HF2 Instrument through the USB to your PC, or to your local area network (LAN) where
the host computer resides. After starting LabOne the default web browser opens with the LabOne
graphical user interface.
If you are continuing from the Phase-locked Loop, then you can just leave the PLL enabled.
Otherwise, you should know how to generate an excitation signal at the required frequency and how
to measure the signal amplitude that you want to control. The device-under-test does not need to
be a resonator.
As shown in the frequency response curve below, we are measuring an amplitude of about 4.0 mV at
the peak of the resonance while driving with 100 mVpk. The goal is to have this amplitude
programmable by the user on the fly.
Figure 4.28: Amplitude of the resonator’s frequency response measured with the
LabOne Sweeper. Solid line are measurement data, dashed line is a fit to the response
function of an LCR circuit model using the resonance fitting tool.
For setting up automatic gain control, open the PID tab in which the four available PID controllers
are represented in different side-tabs. We’ll use PID 3 for this tutorial. We’ll define the Input of the
controller as the measured lock-in R signal, and the Output as the drive amplitude. The settings are
shown in the table below.
Note
The table below applies to instruments without the HF2-MF Multi-frequency option installed. With
the option installed, the Output 1 Amplitude channel needs to be set to the number of the
demodulator used to generate the signal in the Output Amplitudes section of the Lock-in tab.
The next step is to select the proper feedback gain parameters (P, I, D). On the HF2 instrument we
can do this with the help of the PID Advisor. Based on a set of mathematical models for the device
under test (DUT), it can simulate the step response for a certain set of feedback gain values. The PID
Advisor numerically optimizes the feedback gain parameters to obtain a step response that
matches or exceeds a user-specified target bandwidth.
The list of available DUT models is found in PID Tab. In case your DUT is not well described by one of
the models, the methods presented here are nonetheless useful to implement certain heuristic
tuning method such as the Good Gain method (Finn Haugen, Telemark University College, Norway,
2010), as they enable measurement of the closed-loop step response.
The PID Advisor offers an efficient graphical tool for setting the feedback gain parameters manually.
To access it, enable the Advanced Mode in the Display sub-tab and select PID from the Transfer
Function menu. Three cursor lines will be added to the display section which represent the
frequency dependence of the P, I, and D part of the PID controller transfer function. The cursors can
be dragged, allowing you to define a target Bode plot. If you enable the Advisor Link button , the
feedback gain parameters derived from the cursors are linked with the simulation parameters from
the Advisor from where they can be transferred to the instrument.
Figure 4.29: Graphical setting of the PID parameters using the cursors. The three cursor
lines with negative, zero, and positive slope correspond to the frequency dependence
of the P, I, and D parts of the controller, respectively.
With the Mode selector in the Advisor sub-tab, you can define which of the feedback gain
parameters the Advisor uses for his optimization. E.g., when you select PI advise mode, P and I
parameters are varied but D is fixed at the value presently set. In this way you can choose the most
efficient way of using the Advisor: you can have everything be done by the Advisor, you can control
some of the parameters manually and have the Advisor deal with the rest, or you do all the
adjustments manually and use the Advisor only to simulate the outcome.
We leave the D parameter at 0 and let the Advisor run in PI mode. Enter a target BW of 1 kHz and
click on the button. The Advisor will suggest some values for P and I. The BW field
indicates the bandwidth of the simulated loop, with a green lamp showing that the target bandwidth
was reached or exceeded. The PM field shows the phase margin, with a green lamp indicating a
stable feedback loop.
In the given example, the resonator has a bandwidth of about 140 Hz, so the target bandwidth of 1
kHz is just about within reach. However, in order to reach this value, the corresponding demodulator
filter bandwidth may need adjustment. It should be larger than the target bandwidth, but not larger
than necessary in order to avoid excessive noise. When enabling Auto Bandwidth (the checkbox next
to the Filter BW field in the Demodulator Settings), the PID Advisor selects a suitable demodulator
bandwidth which later will be transferred automatically to the demodulator.
The Bode plot on the right-hand side of the tab corresponds to the simulated closed-loop frequency
response based on the P, I, and D gain values and the DUT model presently set in the Advisor sub-
tab. In order to show the simulated closed-loop step response for our example as in Figure 4.30, set
Display to Step Response in the Display sub-tab.
Note
In case a demodulator measurement is selected as the PID input, the Advisor will control the
corresponding demodulator filter bandwidth, but not the filter order. If you encounter problems with
oscillating feedback, bear in mind that low-order filters often lead to more stable feedback loop
behavior because of their smaller delay.
Figure 4.30: Closed-loop step response simulated with the PID Advisor
We also increased the demodulator data transfer rate to get a high time resolution for this
measurement. Start the Data Acquisition tool by clicking on Any time you toggle the
setpoint across the Trigger Level (e.g. from 10 mV to 12 mV), a single trace will be recorded and
displayed in the DAQ tab as shown in the figure below.
Figure 4.31: Closed-loop step response measured with the Data Acquisition tool
Comparing Figure 4.31 with Figure 4.30 demonstrates the excellent quantitative match between
simulation and measurement.
4.10. Imaging
Note
This tutorial is applicable to all HF2 Instruments.
4.10.2. Preparation
Connect the cables as shown in the figure below. Make sure that the HF2 Instrument is powered on
and connected by USB to your host computer . After starting LabOne the default web browser opens
with the LabOne graphical user interface.
Figure 4.31: Setup for the imaging tutorial with HF2 Instrument
The tutorial can be started with the default instrument configuration (e.g. after a power cycle) and
the default user interface settings (e.g. as is after pressing F5 in the browser).
between AWG and lock-in, an AWG with digital modulation capability and a possibility to output the
phase reference signal separately from the AWG signal is helpful. Examples are the UHFAWG and
the HDAWG from Zurich Instruments.
We will assume the following scanning parameters: a line scanning frequency of about 200 Hz and a
line number of 256. We will furthermore assume that the imaging signal on the AWG signal output is
an amplitude-modulated signal at a fixed carrier frequency of 300 kHz. This signal is wired to the
Signal Input 1 +In connector of the HF2 instrument. The carrier phase reference, a square wave at
300 kHz with about 1 Vpk amplitude, is generated on the AWG marker output 1 and is connected to
the lock-in reference input DIO 1. At the start of each line, the AWG generates a rising edge of a TTL
signal generated on its marker output 2. This line trigger signal is connected to the DIO 0 connector
of the HF2 instrument. The minimum trigger signal width required to correctly trigger the data
acquisition is equal to the inverse demodulator sample rate used. The reason is that the state of the
is DIO 0 connector is transferred to the host computer together with the demodulator data which
limits the time resolution and therefore the minimum trigger pulse width.
For locking to the external reference lock-in reference input, we need to select the reference input
signal and change the lock-in amplifier to external reference mode. You can check in the DIO Tab
whether the corresponding input connector shows a toggling signal. Setting up a measurement in
external reference mode is more generally described in External Reference.
Table 4.29: Settings: enable external reference mode
Tab Sub-tab Section # Label Setting / Value / State
Lock-in All Demodulators 7 Signal DIO D1
Lock-in All Demodulators 7 Mode ExtRef
We choose demodulator filter settings and sampling rate sufficiently high to measure the fast
components in the signal up to several 10 kHz. You can find a more general description on selecting
filter constants in Dynamic Signals. The table below shows the settings to be made.
Table 4.30: Settings: configure the demodulator
Tab Sub-tab Section # Label Setting / Value / State
Lock-in All Signal Input 1 Range 1.2 V
Lock-in All Low-pass Filters 1 BW 3 dB 30 kHz
Lock-in All Low-pass Filters 1 Order 8
Lock-in All Data Transfer 1 Rate 220 kSa/s
Lock-in All Data Transfer 1 Enable ON
Now we can monitor the imaging signal as well as the line triggers in the Plotter Tab. Open the
Plotter tab and add the demodulator R signal as well as DIO 0 to the plot.
Table 4.31: Settings: measure imaging signal and line trigger in the Plotter
Tab Sub-tab Section # Label Setting / Value / State
Plotter Control Vertical Axis Groups Tree Selector Demodulators/1/ Sample/R
Plotter Control Vertical Axis Groups Tree Selector Demodulators/1/ Sample/DIO 0
Plotter Control Run / Stop ON
The Plotter should now display the continuously streamed imaging data. The figure below shows in
blue the demodulator R signal, and in green the line trigger signal marking the beginning of each line.
The cursors indicate a line repetition period of about 1.66 ms, and In the following, instead of
displaying these data in a continuous stream in the Plotter, we would like to capture a full image
frame.
The Data Acquisition tool in grid mode acquires 2-dimensional data sets with pre-defined rows and
columns that are defined by a trigger timing for each line, a well-defined line number, and a well-
defined line duration. The acquired data stream can be linearly interpolated to a well-defined
number of data points (e.g. pixels) for each line, or it can be acquired exactly with the transfer rate of
the demodulator in exact mode. It furthermore supports averaging over multiple frames.
Here we select the DIO 0 signal as trigger source in the Settings sub-tab. We set the hold-off time to
0 s to ensure that no triggers are lost in between successive lines. By changing the delay, we can
compensate for a possible misalignment between trigger timing and line start, or to configure the
Data Acquisition tool for a line end trigger, rather than line start trigger.
In the Grid sub-tab, we select a number of rows corresponding to what we have programmed on the
AWG. In Exact (on-grid) mode, we select the number of columns such that the duration is sufficiently
long to capture one line, but shorter than 1 line trigger period so the DAQ tool can re-arm for every
new line. Here we select N = 300 columns, corresponding to a duration of T = 1.36 ms. The two
numbers are related to the demodulator sampling rate fs = 220 kSa/s by T = N/fs.
Finally, we select the 2D display in the Control sub-tab, and we make sure to add demodulator 1 R as
a displayed signal in the Vertical Axis Groups section. The DAQ tab also supports multi-channel
acquisition as more signals, e.g. the phase or other demodulators can be recorded. The table below
summarizes the settings.
Table 4.32: Settings: set up the grid mode
Tab Sub-tab Section # Label Setting / Value / State
DAQ Settings Trigger Settings Trigger Signal Demod 1 DIO 0
DAQ Settings Horizontal Hold off time 0s
DAQ Settings Horizontal Delay 0s
DAQ Grid Grid Settings Mode Exact (on-grid)
DAQ Grid Grid Settings Columns 300
DAQ Grid Grid Settings Duration 1.36 ms (read-only in Exact mode)
DAQ Grid Grid Settings Rows 256
DAQ Control Time Domain Plot Type 2D
In order to capture one fresh frame, we shortly disable the AWG. We arm the Data Acquisition tool by
clicking on to acquire a single frame with the exact number of rows specified before, and
then restart the AWG. The figure below shows the captured image. The acquired data appear as an
entry in the History sub-tab and can easily be saved from there.
On top of standard functionality like acquiring and saving data points, this UI provides a wide variety
of measurement tools for time and frequency domain analysis of measurement data as well as for
convenient servo loop implementation.
The app icons on the left side of the UI can be roughly divided into two categories: settings and
tools.
Settings-related tabs are in direct connection to the instrument hardware, allowing the user to
control all the settings and instrument states.
Tools-related tabs place a focus on the display and analysis of gathered measurement data.
There is no strict distinction between settings and tools, e.g. the Sweeper will change certain
demodulator settings while performing a frequency sweep. Within the tools one can often further
discriminate between time domain and frequency domain analysis. Moreover, a distinction can be
made between the analysis of fast input signals - typical sampling rate of 210 MSa/s - and the
measurement of orders of magnitude slower data - typical sampling rate of - derived for instance
from demodulator outputs and auxiliary inputs. Table 5.2 provides a brief classification of the tools.
Table 5.2: Tools for time domain and frequency domain analysis
The following table gives the overview of all app icons. Note that the selection of app icons may
depend on the upgrade options installed on a given instrument.
Table 5.3: Overview of app icons and short description
Control/ Option/ Description
Tool Range
Lock-in Quick overview and access to all the settings and properties for signal
generation and demodulation.
Lock-in MF Quick overview and access to all the settings and properties for signal
generation and demodulation.
Files Access settings and measurement data files on the host computer.
Numeric Access to all continuously streamed measurement data as numerical
values.
Plotter Displays various continuously streamed measurement data as traces
over time (roll mode).
Scope Displays shots of data samples in time and frequency domain (FFT)
representation.
DAQ Provides complex trigger functionality on all continuously streamed
data samples and time domain display.
Spectrum Provides FFT functionality to all continuously streamed measurement
data.
Sweeper Sweep frequencies, voltages, and other quantities over a defined range
and display various response functions including statistical operations.
Aux Controls all settings regarding the auxiliary inputs and auxiliary
outputs.
In/Out Gives access to all controls relevant for the Signal Inputs and Signal
Outputs of each channel.
DIO Gives access to all controls relevant for the digital inputs and outputs
including DIO, Trigger Inputs, Trigger Outputs, and Marker Outputs.
Config Provides access to software configuration.
Device Provides instrument specific settings.
PID Features all control, analysis, and simulation capabilities of the PID
controllers.
PLL Features all control, analysis, and simulation capabilities of the phase-
locked loops.
MOD Control panel to enable (de)modulation at linear combinations of
oscillator frequencies.
MDS Synchronize multiple instruments.
HF2CA Remote control of the HF2CA Current Amplifier.
HF2TA Remote control of the HF2TA Current Amplifier.
ZI Labs Experimental settings and controls.
Table 5.4 provides a quick overview over the different status bar elements along with a short
description.
Table 5.4: Status bar description
Plots consist of the plot area, the X range and the range controls. The X range (above the plot area)
indicates which section of the wave is displayed by means of the blue zoom region indicators. The
two ranges show the full scale of the plot which does not change when the plot area displays a
zoomed view. The two axes of the plot area instead do change when zoom is applied.
The mouse functionality inside of a plot greatly simplifies and speeds up data viewing and
navigation.
Table 5.5: Mouse functionality inside plots
Each plot area contains a legend that lists all the shown signals in the respective color. The legend
can be moved to any desired position by means of drag-and-drop.
The X range and Y range plot controls are described in Table 5.6.
Note
Plot data can be conveniently exported to other applications such as Excel or Matlab by using
LabOne’s Net Link functionality, see Section 5.2.6 for more information.
The plot area provides two X and two Y cursors which appear as dashed lines inside of the plot area.
The four cursors are selected and moved by means of the blue handles individually by means of
drag-and-drop. For each axis, there is a primary cursor indicating its absolute position and a
secondary cursor indicating both absolute and relative position to the primary cursor.
Cursors have an absolute position which does not change upon pan or zoom events. In case a cursor
position moves out of the plot area, the corresponding handle is displayed at the edge of the plot
area. Unless the handle is moved, the cursor keeps the current position. This functionality is very
effective to measure large deltas with high precision (as the absolute position of the other cursors
does not move).
The cursor data can also be used to define the input data for the mathematical operations
performed on plotted data. This functionality is available in the Math sub-tab of each tool. The Table
5.7 gives an overview of all the elements and their functionality. The chosen Signals and Operations
are applied to the currently active trace only.
Note
Cursor data can be conveniently exported to other applications such as Excel or MATLAB by using
LabOne’s Net Link functionality, see Section 5.2.6 for more information.
Note
Note
The fitting functions used in the Resonance Plot Math tool depend on the selected signal source.
The demodulator R signal is fitted with the following function:
f
R(f)=C+Aff2+(Qf0)2(f2−f02)2(6)\begin{equation}\tag{1} R(f)=C+A\frac{f}{\sqrt{f^2+\left(\frac{Q}
R(f ) = C + A (1)
2
2
f 2 + ( fQ0 ) (f 2 − f02 )
Tree Selector
The Tree selector allows one to access streamed measurement data in a hierarchical structure by
checking the boxes of the signals that should be displayed. The tree selector also supports data
selection from multiple instruments, where available. Depending on the tool, the Tree selector is
either displayed in a separate Tree sub-tab, or it is accessible by a click on the button.
Vertical Axis groups are available as part of the plot functionality in many of the LabOne tools. Their
purpose is to handle signals with different axis properties within the same plot. Signals with
different units naturally have independent vertical scales even if they are displayed in the same plot.
However, signals with the same unit should preferably share one scaling to enable quantitative
comparison. To this end, the signals are assigned to specific axis group. Each axis group has its own
axis system. This default behavior can be changed by moving one or more signals into a new group.
Figure 5.5: Vertical Axis Group typical drag and drop moves.
Table 5.8: Vertical Axis Groups description
Trends
The Trends tool lets the user monitor the temporal evolution of signal features such as minimum and
maximum values, or mean and standard deviation. This feature is available for the Scope , Spectrum,
Plotter, and DAQ tab. Using the Trends feature, one can monitor all the parameters obtained in the
Math sub-tab of the corresponding tab.
The Trends tool allows the user to analyze recorded data on a different and adjustable time scale
much longer than the fast acquisition of measured signals. It saves time by avoiding post-processing
of recorded signals and it facilitates fine-tuning of experimental parameters as it extracts and
shows the measurement outcome in real time.
To activate the Trends plot, enable the Trends button in the Control sub-tab of the corresponding
main tab. Various signal features can be added to the plot from the Trends sub-tab in the Vertical
Axis Groups . The vertical axis group of Trends has its own Run/Stop button and Length setting
independent from the main plot of the tab. Since the Math quantities are derived from the raw
signals in the main plot, the Trends plot is only shown together with the main plot. The Trends
feature is only available in the LabOne user interface and not at the API level.
Figure 5.6: Top: main plot of the Scope tab showing the signal trace. Bottom:
corresponding Trends plot tracking an average, standard deviation, and difference
signal derived from the cursor positions in the main plot.
The node tree display of the Record Data section allows you to browse through the different
measurement data and instrument settings, and to select the ones you would like to record. For
instance, the demodulator 1 measurement data is accessible under the path of the form Device
0000/Demodulators/Demod 1/Sample. An example for an instrument setting would be the filter
time constant, accessible under the path Device 0000/Demodulators/Demod 1/Filter Time
Constant.
The default storage location is the LabOne Data folder which can, for instance, be accessed by the
Open Folder button . The exact path is displayed in the Folder field whenever a file has been
written.
Clicking on the Record checkbox will initiate the recording to the hard drive. In case of demodulator
and boxcar data, ensure that the corresponding data stream is enabled, as otherwise no data will be
saved.
Figure 5.7: Browsing and inspecting files in the LabOne File Manager tab
In case HDF5 or MATLAB is selected as the file format, LabOne creates a single file containing the
data for all selected nodes. For the CSV format, at least one file for each of the selected nodes is
created from the start. At a configurable time interval, new data files are created, but the maximum
size is capped at about 1 GB for easier data handling. The storage location is indicated in the Folder
field of the Record Data section.
The File Manager Tab is a good place to inspect CSV data files. The file browser on the left of the tab
allows you to navigate to the location of the data files and offers functionalities for managing files in
the LabOne Data folder structure. In addition, you can conveniently transfer files between the folder
structure and your preferred location using the Upload/Download buttons. The file viewer on the
right side of the tab displays the contents of text files up to a certain size limit. Figure 5.7 shows the
Files tab after recording Demodulator Sample and Filter Time Constant for a few seconds. The file
viewer shows the contents of the demodulator data file.
Note
The structure of files containing instrument settings and of those containing streamed data is the
same. Streaming data files contain one line per sampling period, whereas in the case of instrument
settings, the file usually only contains a few lines, one for each change in the settings. More
information on the file structure can be found in the LabOne Programming Manual.
Figure 5.8: History sub-tab features. The entries "My measurement 1" etc. were
renamed by the user. Measurement 1, 2, 3, 4 are currently displayed in the plot because
their left-hand-side button is enabled. Clicking on Save Sel would save "My
measurement 3" and "My measurement 4" to a file, because these entries were
selected (gray overlay) by a Control key + mouse click action.
Which quantities are saved depends on which signals have been added to the Vertical Axis Groups
section in the Control sub-tab. Only data from demodulators with enabled Data Transfer in the Lock-
in tab can be included in the files.
The history sub-tab supports an autosave functionality to store measurement results continuously
while the tool is running. Autosave directories are differentiated from normal saved directories by
the text "autosave" in the name, e.g. sweep_autosave_000. When running a tool continuously
( button) with Autosave activated, after the current measurement (history entry) is
complete, all measurements in the history are saved. The same file is overwritten each time, which
means that old measurements will be lost once the limit defined by the history Length setting has
been reached. When performing single measurements ( button) with Autosave activated,
after each measurement, the elements in the history list are saved in a new directory with an
incrementing count, e.g. sweep_autosave_001, sweep_autosave_002.
Data which was saved in HDF5 file format can be loaded back into the history list. Loaded traces are
marked by a prefix "loaded " that is added to the history entry name in the user interface. The
createdtimestamp information in the header data marks the time at which the data were
measured.
Only files created by the Save button in the History sub-tab can be loaded.
Loading a file will add all history items saved in the file to the history list. Previous entries are
kept in the list.
Data from the file is only displayed in the plot if it matches the current settings in the Vertical
Axis Group section the tool. Loading e.g. PID data in the Sweeper will not be shown, unless it is
selected in the Control sub-tab.
Files can only be loaded if the devices saving and loading data are of the same product family.
The data path will be set according to the device ID loading the data.
Figure 5.9 illustrates the data loading feature.
Figure 5.9: History data loading feature. Here, the file sweep_00000.h5 is loaded by
drag-and-drop. The loaded data are added to the measurements in the history list.
HDF5
Hierarchical Data File 5 (HDF5) is a widespread memory-efficient, structured, binary, open file
format. Data in this format can be inspected using the dedicated viewer HDFview. HDF5 libraries or
import tools are available for Python, MATLAB, LabVIEW, C, R, Octave, Origin, Igor Pro, and others. The
following example illustrates how to access demodulator data from a sweep using the h5py library in
Python:
import h5py
filename = 'sweep_00000.h5'
f = h5py.File(filename, 'r')
x = f['000/dev3025/demods/0/sample/frequency']
The data loading feature of LabOne supports HDF5 files, while it is unavailable for other formats.
MATLAB
The MATLAB File Format (.mat) is a proprietary file format from MathWorks based on the open HDF5
file format. It has thus similar properties as the HDF5 format, but the support for importing .mat files
into third-party software other than MATLAB is usually less good than that for importing HDF5 files.
SXM
The CSV data sent to the application is a snap-shot of the data set on the web server at the time of
the request. Many applications support either manual or periodic refresh functionality.
Since tabs can be instantiated several times within the same user interface, the link is specific to
the tab that it is taken from. Changing the session on the LabOne User Interface or removing tabs
may invalidate the link.
Supported applications:
Excel
MATLAB
Python
C#.NET
Igor Pro
Origin
Excel
These instructions are for Excel 2010 (English). The procedure for other versions may differ.
1. In Excel, click on the cell where the data is to be placed. From the Data ribbon, click the "From
Text" icon. The "Import Text File" dialog will appear.
2. In LabOne, click the "Link" button of the appropriate Math tab. Copy the selected text from
the "LabOne Net Link" dialog to the clipboard (either with Ctrl-C or by right clicking and
selecting "Copy").
3. In Excel, paste the link into the "File name" entry field of the "Import Text File" dialog and click
the "Open" button. This will start the text import wizard. Ensure that the "Delimited" button is
checked before clicking the "Next" button.
4. In the next dialog, select the delimiter character corresponding to that selected in LabOne
(this can be found in the "Sessions" section of the Config tab). The default is semicolon. Click
the "Next" button.
5. In the next dialog, click on "Finish" and then "OK" in the "Import Data" dialog. The data from
the Math tab will now appear in the Excel sheet.
6. The data in the sheet can be updated by clicking the "Refresh All" icon. To make updating the
data easier, the "Import text file" dialog can be suppressed by clicking on "Properties".
MATLAB
By copying the link text from the "LabOne Net Link" dialog to the clipboard, the following code
snippet can be used in MATLAB to read the data.
textscan(urlread(clipboard('paste')),'%s%s%f%s%d%s%s','Headerlines',
4,'Delimiter', ';')
Python
The following code snippet can be used in Python 2 to read the LabOne Net Link data, where "url" is
assigned to the text copied from the "LabOne Net Link" dialog.
import csv
import urllib2
url = "http://127.0.0.1:8006/netlink?id=c0p5t6p1cfplotmath&ziSessionId=0"
webpage = urllib2.urlopen(url)
datareader = csv.reader(webpage)
data = []
for row in datareader:
data.append(row)
C#.NET
The .NET Framework offers a WebClient object which can be used to send web requests to the
LabOne WebServer and download LabOne Net Link data. The string with comma separated content
can be parsed by splitting the data at comma borders.
using System;
using System.Text;
using System.Net;
namespace ExampleCSV
{
class Program
{
static void Main(string[] args)
{
try
{
WebClient wc = new WebClient();
byte[] buffer = wc.DownloadData("http://127.0.0.1:8006/netlink?
id=c0p1t6p1cfplotmath&ziSessionId=0");
String doc = Encoding.ASCII.GetString(buffer);
// Parse here CSV lines and extract data
// ...
Console.WriteLine(doc);
} catch (Exception e) {
Console.WriteLine("Caught exception: " + e.Message);
}
}
}
}
Igor Pro
These instructions are for Igor Pro 6.34A English. The procedure for other versions may differ.
1. For Igor Pro, the CSV separator has to be the comma. Set this in the LabOne Config tab as
follows:
3. In the "Load Waves" dialog, click the "File..." button and paste the link text from the "LabOne
Net Link" dialog into the entry field. Then click the "Tweaks..." button to open the "Load Data
Tweaks" dialog.
4. Adjust values as highlighted below and click "Return". The "Loading Delimited Data" dialog will
appear.
Origin
These instructions are for Origin 9.1 English. The procedure for other versions may differ.
1. Open the import wizard by clicking on the icon highlighted below.
2. Ensure that the ASCII button is selected. Click the "..." button. See screenshot below. The
"Import Multiple ASCII" dialog will appear.
3. Paste the link text from the "LabOne Net Link" dialog into the entry field highlighted below.
Then click "Add File(s)" followed by "OK".
1. Among the mentioned tools, the Scope is exceptional: it displays the most recent acquisition,
and its display color is fixed. However, the Persistence feature represents a more specialized
functionality for multi-trace display. ↩
5.3.1. Features
Functional block diagram with access to main input, output and demodulator controls
Parameter table with main input, output and demodulator controls
Control elements for 6 configurable demodulators
Auto ranging, scaling, arbitrary input units for both input channels
Control for 2 oscillators
Settings for main signal inputs and signal outputs
Flexible choice of reference source, trigger options and data transfer rates
5.3.2. Description
The Lock-in tab is the main control center of the instrument and open after start up by default.
Whenever the tab is closed or an additional one of the same type is needed, clicking the following
icon will open a new instance of the tab.
Table 5.9: App icon and short description
Control/ Option/ Description
Tool Range
Lock-in Quick overview and access to all the settings and properties for
signal generation and demodulation.
The default view of the Lock-in tab is the parameter table view. It is accessible under the side tab
labeled All and provides controls for all demodulators in the instrument. Moreover, for each
individual demodulator there is a functional block diagram available. It is accessible under the side
tab labeled with the corresponding demodulator number.
Parameter Table
The parameter table (see Figure 5.10) consists of 4 vertical sections: Signal Inputs, Oscillators,
Demodulators and Signal Outputs. The Demodulators sections gives access to all the settings of
demodulators 1 to 6 that can be used for measurement, and of demodulators 7 and 8 that can be
used for external referencing. Demodulators 1 to 3 (4 to 6) are connected to Signal Input 1 (2).
Figure 5.10: LabOne User Interface Lock-in tab - Parameter table (All)
The Signal Inputs section allows the user to define all relevant settings specific to the signal
entered as for example input coupling, range, etc. Some of the available options like phase
adjustment and the trigger functionality are collapsed by default. It takes one mouse click on the "+"
icon in order to expand those controls. On the right-hand side of the Lock-in tab the Signal Outputs
section allows defining signal amplitudes, offsets and range values.
Below the Scaling field there is the AC/DC button and the 50 Ω/ 1 MΩ . The AC/DC button sets the
coupling type: AC coupling has a high-pass cutoff frequency that can be used to block large DC
signal components to prevent input signal saturation during amplification. The 50 Ω/ 1 MΩ button
toggles the input impedance between low (50 Ω) and high (approx. 1 MΩ ) input impedance. With 50
Ω input impedance, one will expect a reduction of a factor of 2 in the measured signal if the signal
source also has an output impedance of 50 Ω. Next to the 50 Ω button, there is the Diff button which
switches the Signal Input between a single-ended measurement on the + Input and a differential
measurement on the + and - Inputs.
The Oscillator section indicates the frequencies of both internal oscillators . Where the Mode
indicator shows Manual, the user can define the oscillator frequency manually defined by typing a
frequency value in the field. In case the oscillator is referenced to an external source, the Mode
indicator will show ExtRef and the frequency field is set to read-only. External reference requires a
PLL to do the frequency mapping onto an internal oscillator. Successful locking is indicated by a
green light right next to the frequency field. When the Modulation unit or the PID controller
determine the frequency value of an oscillator, MOD or PID are indicated in the Mode field and the
user cannot change the frequency manually.
In the following, we discuss the Demodulators settings in more detail. The block diagram displayed
in Figure 5.11 indicates the main demodulator components and their interconnection. The
understanding of the wiring is essential for successfully operating the instrument.
In the middle of the Lock-in tab is the Low-Pass Filters section where the filter order can be selected
in the drop-down list for each demodulator and the filter bandwidth (BW 3dB) can be chosen by
typing a numerical value. Alternatively, the time constant of the filter (TC) or the noise equivalent
power filter bandwidth (BW NEP) can be chosen by clicking on the column’s header. For example,
setting the filter order to 4 corresponds to a roll off of 24 dB/oct or 80 dB/dec i.e. an attenuation of
104 for a tenfold frequency increase. If the Low-Pass Filter bandwidth is comparable to or larger than
the demodulation frequency, the demodulator output may contain frequency components at the
frequency of demodulation and its higher harmonics. In this case, the additional Sinc Filter should
be enabled. It attenuates those unwanted harmonic components in the demodulator output. The
Sinc Filter is useful when measuring at low frequencies, since it allows one to apply a Low-Pass
Filter bandwidth closer to the demodulation frequency, thus speeding up the measurement time.
The data transfer of demodulator outputs is activated by the En button in the Data Transfer section
where also the sampling rate (Rate) for each demodulator can be defined.
The Trigger section next to the Data Transfer allows for setting trigger conditions in order to control
and initiate data transfer from the Instrument to the host PC by the application of logic signals (e.g.
TTL) to either DIO 0 or 1 on the instrument back panel.
In the Signal Outputs section the On buttons are used to activate the Signal Outputs. This is also
the place where the output amplitudes for the Signal Outputs can be set in adjustable units (Vpk,
Vrms, or dBm). The Range drop-down list is used to select the proper output range setting. By
enabling the Add button, one can add an external analog signal which is applied to the Add input to
the Signal Output.
Block Diagram
The block diagram view of the main instrument functions is also sometimes called the "Graphical
Lock-in Tab". A set of indexed side tabs in the Lock-in Tab give access to a block diagram for each
demodulator. The block diagrams are fully functional and provide the user with a visual feedback of
what is going on inside the instrument. All control elements that are available in the Parameter Table
detailed in the previous section are also present in the graphical representation.
The block diagram in Figure 5.12 shows the signal path through the instrument for the case when the
internal oscillator is used as reference. The Signal Inputs and Reference/Internal Frequency are
shown on the left-hand side. The actual demodulation, i.e. the mixing and low-pass filtering is
represented in the center of the tab. On the bottom right the user can set Signal Output parameters.
On the top right there are the settings related to the output of the measurement data, either by
digital means (PC Data Transfer) or by analog means (Auxiliary Outputs 1 to 4).
Figure 5.12: LabOne User Interface Lock-in tab - Graphical Lock-in tab in Internal
Reference mode
The block diagram in Figure 5.13 shows the signal path through the instrument for the case when an
external reference is used. This setting is only available for demodulators 7 and 8. In order to map an
external frequency to oscillator 1/2 go to the Reference section of demodulator 7/8 and change the
mode to ExtRef. This demodulator will then be used as a phase detector within a phase locked loop.
The software will choose the appropriate filter settings according to the frequency and properties of
the reference signal.
Figure 5.13: LabOne User Interface Lock-in tab - Graphical Lock-in tab in External
Reference mode
5.4.1. Features
Functional block diagram with access to main input, output and demodulator controls
Parameter table with main input, output and demodulator controls
Controls for 6 (HF2LI) or 8 (HF2IS) individually configurable demodulators
Auto ranging, scaling, arbitrary input units for both input channels
Control for 6 oscillators
Settings for main signal inputs and signal outputs
Choice of reference source, trigger options and data transfer rates
5.4.2. Description
The Lock-in tab is the main control center of the instrument and open after start up by default.
Whenever the tab is closed or an additional one of the same type is needed, clicking the following
icon will open a new instance of the tab.
The default view of the Lock-in tab is the parameter table view. It is accessible under the side tab
labeled All and provides controls for all demodulators in the instrument. Moreover, for each
individual demodulator there is a functional block diagram available. It is accessible under the side
tab labeled with the corresponding demodulator number.
Parameter Table
Figure 5.14: LabOne User Interface Lock-in tab with HF2-MF Multi-frequency option.
The Signal Inputs section allows the user to define all relevant settings specific to the signal
entered as for example input coupling, range, etc. Some of the available options like phase
adjustment and the trigger functionality are collapsed by default. It takes one mouse click on the "+"
icon in order to expand those controls. On the right-hand side of the Lock-in tab the Signal Outputs
section allows to define signal amplitudes, offsets and range values.
The Scaling field below the Range field can be used to multiply the Signal Input data for instance to
account for the gain of an external amplifier. In case there is a transimpedance gain of 10 V/A applied
to the input signal externally, then the Scaling field can be set to 0.1 and the Units field can be set to
A in order to show the actual current readings through the entire user interface.
There are two buttons below the Scaling field that can be toggled: the AC/DC button and the 50 Ω/ 1
MΩ . The AC/DC button sets the coupling type: AC coupling has a high-pass cutoff frequency that
can be used to block large DC signal components to prevent input signal saturation during
amplification. The 50 Ω/ 1 MΩ button toggles the input impedance between low (50 Ω) and high
(approx. 1 MΩ ) input impedance. With 50 Ω input impedance, one will expect a reduction of a factor
of 2 in the measured signal if the signal source also has an output impedance of 50 Ω.
The Oscillator section indicates the . Where the Mode indicator shows Manual the user can define
the oscillator frequency manually defined by typing a frequency value in the field. In case the
oscillator is referenced to an external source the Mode indicator will show ExtRef and the frequency
field is set to read-only. External reference requires a PLL to do the frequency mapping onto an
internal oscillator. Successful locking is indicated by a green light right next to the frequency field.
The next section contains the Demodulators settings. The block diagram displayed in Figure 5.15
indicates the main demodulator components and their interconnection. The understanding of the
wiring is essential for successfully operating the instrument.
For each demodulator an additional phase shift can be introduced to the associated oscillator by
entering the phase offset in the Phase column. This phase is added both, to the reference channel
and the output of the demodulator. Hence, when the frequency is generated and detected using the
same demodulator, signal phase and reference phase change by the same amount and no change
will be visible in the demodulation result. Demodulation of frequencies that are integer multiples of
any of the oscillator frequencies is achieved by entering the desired factor in the Harm column. The
demodulator readout can be obtained using the Numeric tab which is described in Numeric Tab.
In the middle of the Lock-in tab is the Low-Pass Filters section where the filter order can be selected
in the drop down list for each demodulator and the filter bandwidth (BW 3dB) can chosen by typing a
numerical value. Alternatively the time constant of the filter (TC) or the noise equivalent power filter
bandwidth (BW NEP) can be chosen by clicking on the column’s header. For example, setting the
filter order to 4 corresponds to a roll off of 24 dB/oct or 80 dB/dec i.e. an attenuation of 104 for a
tenfold frequency increase. If the Low-Pass Filter bandwidth is comparable to or larger than the
demodulation frequency, the demodulator output may contain frequency components at the
frequency of demodulation and its higher harmonics. In this case, the additional Sinc Filter can be
enabled. It attenuates those unwanted harmonic components in the demodulator output. The Sinc
Filter is also useful when measuring at low frequencies, since it allows to apply a Low-Pass Filter
bandwidth closer to the demodulation frequency, thus speeding up the measurement time.
The data transfer of demodulator outputs is activated by the En button in the Data Transfer section
where also the sampling rate (Rate) for each demodulator can be defined.
The Trigger section next to the Data Transfer allows for setting trigger conditions in order to control
and initiate data transfer from the Instrument to the host PC by the application of logic signals (e.g.
TTL) to either Trigger Input on the back panel.
Block Diagram
The block diagram view of the main instrument functions is also sometimes called the "Graphical
Lock-in Tab". Depending on how many demodulators are available in the instrument a set of
numbered side tabs are available giving access to a Graphical Lock-in Tab for each demodulator. The
block diagrams are fully functional and provide the user with a visual feedback of what is going on
inside the instrument. All control elements that are available in the Parameter Table detailed in the
previous section are also present in the graphical representation.
The block diagram in Figure 5.16 describes the signal path throughout the instrument for the case
when the internal oscillator is used as reference. The Signal Inputs and Reference/Internal
Frequency are described on the left side, the core of demodulation with the mixer and low-pass
filter is located in the center of the tab and the Signal Outputs, the Auxiliary Outputs as well as the
data transfer to the PC is sketched on the right.
Figure 5.16: LabOne User Interface Lock-in tab - Graphical Lock-in tab in Internal
Reference mode
The block diagram in Figure 5.17 describes the signal path throughout the instrument for the case
when an external reference is used. This setting is only available for demodulator 7/8. In order to
map an external frequency to any of the oscillators, go to the Reference section of demodulator 7/8
and change the mode to ExtRef. This demodulator will then be used as a phase detector within the
phase-locked loop. The software will choose the appropriate filter settings according to the
frequency and properties of the reference signal. Once a demodulator is used to map an external
frequency on to one of the internal oscillators, it is no longer available for other measurements.
Figure 5.17: LabOne User Interface Lock-in tab - Graphical Lock-in tab in External
Reference mode
5.5.1. Features
Display of demodulator output data and other streamed data, e.g. auxiliary inputs, demodulator
frequencies
Graphical and numerical range indicators
Polar and Cartesian formats
Support for Input Scaling and Input Units
5.5.2. Description
The Numeric tab serves as the main numeric overview display of multiple measurement data. The
display can be configured by both choosing the values displayed and also rearrange the display tiles
by drag-and-drop. Whenever the tab is closed or an additional one of the same type is needed,
clicking the following icon will open a new instance of the tab.
Table 5.13: App icon and short description
Control/ Option/ Description
Tool Range
Numeric Access to all continuously streamed measurement data as
numerical values.
The numeric tab (see Figure 5.18) is divided into a display section on the left and a configuration
section on the right. The configuration section is further divided into a number of sub-tabs.
For the Tree sub-tab please see the section called "Tree Selector".
Table 5.15: Numeric tab: Settings sub-tab
Control/ Option/ Description
Tool Range
Name text label Name of the selected plot(s). The default name can be changed to
reflect the measured signal.
Mapping Mapping of the selected plot(s)
Lin Enable linear mapping.
Log Enable logarithmic mapping.
dB Enable logarithmic mapping in dB.
Scaling Manual/Full Scaling of the selected plot(s)
Scale
Zoom To Adjust the zoom to the current limits of the displayed histogram
Limits data.
Start Value numeric value Start value of the selected plot(s). Only visible for manual scaling.
Stop Value numeric value Stop value of the selected plot(s). Only visible for manual scaling.
5.6.1. Features
Vertical axis grouping for flexible axis scaling
Polar and Cartesian data format
Histogram and Math functionality for data analysis
4 cursors for data analysis
Support for Input Scaling and Input Units
5.6.2. Description
The Plotter serves as graphical display for time domain data in a roll mode, i.e. continuously without
triggering. Whenever the tab is closed or an additional one of the same type is needed, clicking the
following icon will open a new instance of the tab.
Table 5.16: App icon and short description
Control/ Option/ Description
Tool Range
Plotter Displays various continuously streamed measurement data as
traces over time (roll mode).
The Plotter tab (see Figure 5.19) is divided into a display section on the left and a configuration
section on the right.
Note
Setting the window length to large values when operating at high sampling rates can lead to memory
problems at the computer hosting the data server.
The sampling rate of the demodulator data is determined by the Rate value in Sa/s set in the Lock-in
tab . The Plotter data can be continuously saved to disk by clicking the record button in the Config
tab which will be indicated by a green Recording (REC) LED in the status bar. See Saving and Loading
Data for more information on data saving.
For the Vertical Axis Groups, please see the table "Vertical Axis Groups description" in the section
called "Vertical Axis Groups".
For the Math sub-tab please see the table "Plot math description" in the section called "Cursors and
Math".
5.7.1. Features
One input channel with 2 kSa of memory
14 bit nominal resolution
Fast Fourier Transform (FFT): up to 100 MHz span, spectral density and power conversion, choice
of window functions
Sampling rates from 6.4 kSa/s to 210 MSa/s; up to 10 μs acquisition time at 210 MSa/s or 320 ms
at 6.4 kSa/s
4 signal sources; up to 13 trigger sources and 2 trigger methods `
Independent hold-off and trigger level settings
5.7.2. Description
The Scope tab serves as the graphical display for time domain data. Whenever the tab is closed or
an additional one of the same type is needed, clicking the following icon will open a new instance of
the tab.
Table 5.18: App icon and short description
Control/ Option/ Description
Tool Range
Scope Displays shots of data samples in time and frequency domain
(FFT) representation.
The Scope records data from a single channel at up to 210 MSa/s. The channel can be selected
among the two Signal Inputs and the two Signal Outputs. The Scope records data sets of up to 2 kSa
samples in the standard configuration, which corresponds to an acquisition time of 10 μs at the
highest sampling rate.
Figure 5.21: Illustration of how the Scope output is generated in BW Limitation and
decimation mode when the sampling rate is reduced from the default of 210 MSa/s to
52.5 MSa/s
The frequency domain representation is activated in the Control sub-tab by selecting Freq Domain
FFT as the Horizontal Mode. It allows the user to observe the spectrum of the acquired shots of
samples. All controls and settings are shared between the time domain and frequency domain
representations.
The Scope supports averaging over multiple shots. The functionality is implemented by means of an
exponential moving average filter with configurable filter depth. Averaging helps to suppress noise
components that are uncorrelated with the main signal. It is particularly useful in combination with
the Frequency Domain FFT mode where it can help to reveal harmonic signals and disturbances
that might otherwise be hidden below the noise floor.
For the Vertical Axis Groups, please see the table "Vertical Axis Groups description" in the section
called "Vertical Axis Groups".
For the Math sub-tab please see the table "Plot math description" in the section called "Cursors and
Math".
5.8.1. Features
Time-domain and frequency domain display for all continuously streamed data
Capture and color scale display of imaging data
Frame averaging and pixel interpolation
Automatic trigger level determination
Display of multiple traces
Adjustable record history
Mathematical toolkit for signal analysis
5.8.2. Description
The Data Acquisition tab features display and recording of shot-wise and imaging data sets upon a
trigger event. Whenever the tab is closed or an additional one of the same type is needed, clicking
the following icon will open a new instance of the tab.
Table 5.23: App icon and short description
The Data Acquisition tab (see Figure 5.23) is divided into a display section on the left and a
configuration section on the right. The configuration section is further divided into a number of sub-
tabs.
Use the Control sub-tab to configure which signals are measured, both in time and in frequency
domain. Measurement signals can be added to the Vertical Axis Groups section as described in
Vertical Axis Groups. There is one vertical axis group for each the time domain and the frequency
domain data.
The trigger condition is configured in the Settings sub-tab. Among the selection of Trigger Types
provided here, Edge and Pulse are applicable to analog trigger sources such as demodulator data,
auxiliary voltages, or oscillator frequencies. The trigger time resolution is enhanced above the
sampling rate of the analog data by using interpolation. Instead of manually setting a Trigger Level,
you can click on to have LabOne find a value by analyzing the data stream. In case of noisy
trigger sources, both the Bandwidth and the Hysteresis setting can help preventing false trigger
events. The Bandwidth setting provides a configurable low-pass filter applied to the trigger source.
When enabling this function, be sure to choose a sufficiently high bandwidth to resolve the signal
feature that should be triggered upon, i.e., the signal edge or pulse. The Bandwidth setting does not
affect the recorded data.
For trigger sources with a slowly varying offset, the Tracking Edge and Tracking Pulse Trigger Types
provide continuous adjustment of the Level and Hysteresis. In Tracking mode, the Bandwidth setting
plays a different role than for the Edge and Pulse trigger types. Here, the Bandwidth should be
chosen sufficiently low to filter out all fast features and only let pass the slow offset. The Trigger
Types HW Trigger and Digital are used for TTL signals on the DIO lines. Using the Bits and Bit Mask
setting, complex multi-bit trigger conditions on the DIO lines can be defined. The timing resolution
for digital triggers is given by the demodulator sample rate because the state of the DIO line is
transferred together with demodulator data.
The Horizontal section of the Settings sub-tab contains the settings for shot Duration and Delay
(negative delays correspond to pre-trigger time). Also minimum and maximum pulse width for the
Pulse and Tracking Pulse trigger types are defined here.
The Grid sub-tab provides imaging functionality to capture and display two-dimensional data sets
organized in frames consisting of rows and columns. By default, the number of rows is 1, which
means the Data Acquisition tool operates similar to a scope. With a Rows setting larger than 1, every
newly captured shot of data is assigned to a row until the number of rows is reached and the frame
is complete. After completion of a full frame, the new data either replace the old or averaging is
performed, according to the selected Operation and Repetitions setting. On the horizontal axis, the
Duration of a shot is divided into a number of samples specified with the Columns setting. The Mode
settings provides the functionality for post-processing of the streamed data for interpolation,
resampling, and alignment with the trigger event. This is particularly helpful when capturing data
from several sources, e.g. demodulators and PID controllers. As illustrated in Figure 5.24, in such
situation the streamed data don’t lie on the same temporal grid by default. This can be changed by
setting Mode to Linear or Nearest. In these modes, the streams from several sources will be up-
sampled to match the sampling rate and temporal grid of the fastest data stream. This means data
processing after saving becomes more convenient, however note that the actual streamed data rate
is not increased, and the data don’t gain in time resolution. A two-dimensional color scale image of
the data can be enabled and controlled in the Display section. The display features configurable
scaling, range, and color scale.
With enabled grid mode, the data of a completed frame after averaging appear as a list entry in the
History sub-tab. See History List for more details on how data in the history list can be managed and
stored.
Figure 5.24: Samples from different sources configured with different rates:
demodulator 1 at 2N kSa/s, demodulator 2 at N kSa/s and PID Error 1 at M kSa/s (N not
divisible by M). Although each stream consists of equidistantly spaced samples in time,
the sample timestamps from different streams are not necessarily aligned due to the
different sampling rates
For the Vertical Axis Groups, please see the table "Vertical Axis Groups description" in the section
called "Vertical Axis Groups".
Table 5.25: DAQ tab: Settings sub-tab
Control/ Option/ Description
Tool Range
Trigger Source signal for trigger condition. Navigate through the tree view
Signal that appears and click on the required signal.
Trigger Type Select the type of trigger to use. Selectable options depend on the
selected trigger signal.
Continuous Continuous triggering.
Edge Analog edge triggering based on high and low level. Hysteresis on the
levels and low-pass filtering can be used to reduce the risk of wrong
trigger for noisy trigger signals.
Digital Digital triggering on the 32-bit DIO lines. The bit value defines the
trigger condition. The bit mask controls the bits that are used for
trigger evaluation. When using a Positive Edge trigger setting, a
trigger event occurs as soon as the equality (DIO Value)AND(Bit Mask)
= (Bits)AND(Bit Mask) is fulfilled (and was not previously fulfilled). In
order to trigger on DIO0 set bit value to 1 and bit mask to 1; to trigger
on DIO1 set bit value to 2 and bit mask to 2.
Pulse Triggers if a pulse on an analog signal is within the min and max pulse
width. Pulses can be defined as either low to high then high to low
(positive), the reverse (negative) or both.
For the Math sub-tab please see the table "Plot math description" in the section called "Cursors and
Math".
5.9.1. Features
Fast, high-resolution FFT spectrum analyzer
Signals: demodulated data (X+iY, R, Θ, f and dΘ/dt/(2π) ), PID, Boxcar, Auxiliary Inputs, and more
Variable center frequency, frequency resolution and frequency span
Auto bandwidth
Waterfall display
Choice of 4 different FFT window functions
Continuous and block-wise acquisition with different types of averaging
Detailed noise power analysis
Support for Input Scaling and Input Units
Mathematical toolbox for signal analysis
5.9.2. Description
The Spectrum Analyzer provides frequency domain analysis of demodulator data. Whenever the tab
is closed or an additional one of the same type is needed, clicking the following icon will open a new
instance of the tab.
The Spectrum tab (see Figure 5.25) is divided into a display section on the left and a configuration
section on the right. The configuration section is further divided into a number of sub-tabs.
By default, the display section contains a line plot of the spectrum together with a color waterfall
plot of the last few acquired spectra. The waterfall plot makes it easier to see the evolution of the
spectrum over time. The display layout as well as the number of rows in the color plot can be
configured in the Settings sub-tab.
Data shown in the Spectrum tab have passed a low-pass filter with a well-defined order and
bandwidth. This is most clearly noted by the shape of the noise floor. One has to take care that the
selected frequency span, which equals the demodulator sampling rate, is 5 to 10 times higher than
the filter bandwidth in order to prevent measurement errors due to aliasing. The Auto Bandwidth
button adjusts the sampling rate so that it suits the filter settings. The Spectrum tab features
FFT display of a selection of data available in the Signal Type drop-down list in addition to the
complex demodulator samples X+iY. Looking at the FFT of polar demodulator values R and Theta
allows one to discriminate between phase noise components and amplitude noise components in
the signal. The FFT of the phase derivative dΘ/dt provides a quantitative view of the spectrum of
demodulator frequencies. That is particularly useful in conjunction with the PLL or the ExtRef
functionalities. The FFT of the frequency samples then provide a quantitative view of what
frequency noise components are present in the reference signal and also helps to find the optimal
PLL bandwidth to track the signal. Note that many of the signals in the Signal Type list are real-
valued, rather than complex-valued. Their spectra are single-sided with minimum frequency of 0 Hz.
For the Math sub-tab please see the table "Plot math description" in the section called "Cursors and
Math".
5.10.1. Features
Full-featured parametric sweep tool for frequency, phase shift, output amplitude, DC output
voltages, etc.
Simultaneous display of data from different sources (Demodulators, PIDs, auxiliary inputs, and
others)
Different application modes, e.g. Frequency response analyzer (Bode plots), noise amplitude
sweeps, etc.
Different sweep types: single, continuous (run / stop), bidirectional, binary
Persistent display of previous sweep results
XY Mode for Nyquist plots or I-V curves
Normalization of sweeps
Auto bandwidth, averaging and display normalization
Support for Input Scaling and Input Units
Phase unwrap
Full support of sinc filter
5.10.2. Description
The Sweeper supports a variety of experiments where a parameter is changed stepwise and
numerous measurement data can be graphically displayed. Open the tool by clicking the
corresponding icon in the UI side bar. The Sweeper tab (see Figure 5.26) is divided into a plot section
on the left and a configuration section on the right. The configuration section is further divided into
a number of sub-tabs.
Table 5.30: App icon and short description
Control/ Option/ Description
Tool Range
Sweeper Sweep frequencies, voltages, and other quantities over a defined range
and display various response functions including statistical operations.
For frequency sweeps, the sweep points are distributed logarithmically, rather than linearly, between
the start and stop values by default. This feature is particularly useful for sweeps over several
decades and can be disabled with the Log checkbox. The Sweep Mode setting is useful for
identifying measurement problems caused by hysteretic sample behavior or too fast sweeping
speed. Such problems would cause non-overlapping curves in a bidirectional sweep.
Note
The Sweeper actively modifies the main settings of the demodulators and oscillators. So in
particular for situations where multiple experiments are served maybe even from different control
computers great care needs to be taken so that the parameters altered by the sweeper module do
not have unwanted effects elsewhere.
The Sweeper offers two operation modes differing in the level of detail of the accessible settings:
the Application Mode and the Advanced Mode. Both of them are accessible in the Settings sub-tab.
The Application Mode provides the choice between six measurement approaches that should help
to quickly obtain correct measurement results for a large range of applications. Users who like to be
in control of all the settings can access them by switching to the Advanced Mode.
In the Statistics section of the Advanced Mode one can control how data is averaged at each sweep
point: either by specifying the Sample count, or by specifying the number of filter time constants
(TC). The actual measurement time is determined by the larger of the two settings, taking into
account the demodulator sample rate and filter settings. The Algorithm settings determines the
statistics calculated from the measured data: the average for general purposes, the deviation for
noise measurements, or the mean square for power measurements. The Phase Unwrap features
ensures continuity of a phase measurement curve across the PM180 degree boundary. Enabling the
Sinc Filter setting means that the demodulator Sinc Filter gets activated for sweep points below 50
Hz in Auto and Fixed mode. This speeds up measurements at small frequencies as explained in the
Sinc Filtering.
In the Settling section one can control the waiting time between a parameter setting and the first
measurement. Similarly to the Statistics setting, one has the choice between two different
representations of this waiting time. The actual settling time is the maximum of the values set in
units of absolute time and a time derived from the demodulator filter and a desired inaccuracy (e.g. 1
m for 0.1%). Let’s consider an example. For a 4th order filter and a 3 dB bandwidth of 100 Hz we
obtain a step response the attains 90% after about 4.5 ms. This can be easily measured by using the
Data Acquisition tool as indicated in Figure 5.27. It is also explained in Discrete-Time Filters. In case
the full range is set to 1 V this means a measurement has a maximum error caused by imperfect
settling of about 0.1 V. However, for most measurements the neighboring values are close compared
to the full range and hence the real error caused is usually much smaller.
In the Filter section of the Advanced mode, the Bandwidth Mode setting determines how the filters
of the activated demodulators are configured. In Manual mode, the current setting (in the Lock-in
tab) remains unchanged by the Sweeper. In Fixed mode, the filter settings can be controlled from
within the Sweeper tab. In Auto mode, the Sweeper determines the filter bandwidth for each sweep
point based on a desired ω suppression. The ω suppression depends on the measurement
frequency and the filter steepness. For frequency sweeps, the bandwidth will be adjusted for every
sweep point within the bound set by the Max Bandwidth setting. The Auto mode is particularly
useful for frequency sweeps over several decades, because the continuous adjustment of the
bandwidth considerably reduces the overall measurement time.
Figure 5.27: Demodulator settling time and inaccuracy: measurement carried out with
the Data Acquisition tool to illustrate the settling time for a 4
By default the plot area keeps the memory and display of the last 100 sweeps represented in a list in
the History sub-tab. See History List for more details on how data in the history list can be managed
and stored. With the Reference feature, it is possible to divide all measurements in the history by a
reference measurement. This is useful for instance to eliminate spurious effects in a frequency
response sweep. To define a certain measurement as the reference, mark it in the list and click on
. Then enable the Reference mode with the checkbox below the list to update the plot
display. Note that the Reference setting does not affect data saving: saved files always contain raw
data.
Note
The Sweeper can get stuck whenever it does not receive any data. A common mistake is to select to
display demodulator data without enabling the data transfer of the associated demodulator in the
Lock-in tab.
Note
Once a sweep is performed the sweeper stores all data from the enabled demodulators and
auxiliary inputs even when they are not displayed immediately in the plot area. These data can be
accessed at a later point in time simply by choosing the corresponding signal display settings (Input
Channel).
For the Vertical Axis Groups, please see the table "Vertical Axis Groups description" in the section
called "Vertical Axis Groups".
Table 5.32: Sweeper tab: Settings sub-tab
Control/ Option/ Description
Tool Range
Filter Application Mode: preset configuration. Advanced Mode: manual
configuration.
Application The sweeper sets the filters and other parameters automatically.
Mode
Advanced The sweeper uses manually configured parameters.
Mode
Application Select the sweep application mode
Parameter Only one data sample is acquired per sweeper point.
Sweep
Parameter Multiple data samples are acquired per sweeper point of which
Sweep the average value is displayed.
Averaged
Noise Multiple data samples are acquired per sweeper point of which
Amplitude the standard deviation is displayed (e.g. to determine input noise).
Sweep For accurate noise measurement, the signal amplitude R is
replaced by its quadrature components X and Y.
Freq Response Narrow band frequency response analysis. Averaging is enabled.
Analyzer
3-Omega Optimized parameters for 3-omega application. Averaging is
Sweep enabled.
FRA (Sinc The sinc filter helps to speed up measurements for frequencies
Filter) below 50 Hz in FRA mode. For higher frequencies it is
automatically disabled. Averaging is off.
Impedance This application mode uses narrow bandwidth filter settings to
achieve high calibration accuracy.
Precision Choose between a high speed scan speed or high precision and
accuracy.
Low -> fast Medium accuracy/precision is optimized for sweep speed.
sweep
High -> Medium accuracy/precision takes more measurement time.
standard
speed
Very high -> High accuracy/precision takes more measurement time.
slow sweep
Bandwidth Automatically is recommended in particular for logarithmic
Mode sweeps and assures the whole spectrum is covered.
Auto All bandwidth settings of the chosen demodulators are
automatically adjusted. For logarithmic sweeps the measurement
bandwidth is adjusted throughout the measurement.
Fixed Define a certain bandwidth which is taken for all chosen
demodulators for the course of the measurement.
Manual The sweeper module leaves the demodulator bandwidth settings
entirely untouched.
For the Math sub-tab please see the table "Plot math description" in the section called "Cursors and
Math".
5.11.1. Features
Monitor signal levels of auxiliary input connectors
Monitor signal levels of auxiliary output connectors
Auxiliary output signal sources: Demodulators, PLLs and manual setting
Define Offsets and Scaling for auxiliary output values
Control auxiliary output range limitations
5.11.2. Description
The Auxiliary tab serves mainly to monitor and control the auxiliary inputs and outputs. Whenever
the tab is closed or an additional one of the same type is needed, clicking the following icon will
open a new instance of the tab.
Table 5.34: App icon and short description
Control/ Option/ Description
Tool Range
Aux Controls all settings regarding the auxiliary inputs and auxiliary
outputs.
The Auxiliary tab (see Figure 5.28) is divided into three sections. The Aux Input section gives two
graphical and two numerical monitors for the signal amplitude applied to the auxiliary inputs on the
back panel. In the middle of the tab the Aux Output section allows to associate any of the measured
signals to one of the 4 auxiliary outputs on the instrument front panel. With the action button next to
the Offset values the effective voltage on the auxiliary outputs can be automatically set to zero. The
analog output voltages can be limited to a certain range in order to avoid damaging the parts
connected to the outputs.
Note
Please note the change of units of the scaling factor depending on what measurement signal is
chosen.
Two Aux Output Levels on the right provides 4 graphical and 4 numerical indicators to monitor the
voltages currently set on the auxiliary outputs.
5.12.1. Features
Signal input configuration
Signal output configuration
5.12.2. Description
The In / Out tab gives access to the same settings as do the left-most and the right-most sections
of the Lock-in tab. It is mainly intended to be used on small screens that can not show the entire the
Lock-in tab at once. Whenever the tab is closed or an additional one of the same type is needed,
clicking the following icon will open a new instance of the tab.
Table 5.36: App icon and short description
Control/ Option/ Description
Tool Range
In/Out Gives access to all controls relevant for the Signal Inputs and Signal
Outputs of each channel.
The In / Out tab contains one section for the signal inputs and one for the signal outputs. All of the
corresponding connectors are placed on the instrument front panel. The In / Out tab looks
differently depending on whether the HF2-MF Multi-frequency option is installed or not.
Figure 5.30: LabOne UI: Inputs/Outputs tab (with HF2-MF Multi-frequency option)
5.13.1. Features
Monitor and control of digital I/O connectors
Control settings for external reference and triggering
5.13.2. Description
The DIO tab is the main panel to control the digital inputs and outputs as well as the trigger levels
and external reference channels . Whenever the tab is closed or an additional one of the same type
is needed, clicking the following icon will open a new instance of the tab.
Table 5.37: App icon and short description
Control/ Option/ Description
Tool Range
DIO Gives access to all controls relevant for the digital inputs and outputs
including DIO, Trigger Inputs, Trigger Outputs, and Marker Outputs.
With the Sync Bit 1,0 setting it’s possible to activate a TTL synchronization signal on one of the DIO
BNC connectors on the instrument back panel.
5.14.1. Features
define instrument connection parameters
browser session control
define UI appearance (grids, theme, etc.)
store and load instrument settings and UI settings
configure data recording
5.14.2. Description
The Config tab serves as a control panel for all general LabOne settings and is opened by default on
start-up. Whenever the tab is closed or an additional one of the same type is needed, clicking the
following icon will open a new instance of the tab.
Table 5.39: App icon and short description
Control/Tool Option/Range Description
Config Provides access to software configuration.
The Config tab (see Figure 5.32) is divided into four sections to control connections, sessions,
settings, user interface appearance and data recording.
The Session section provides the session number which is also displayed in the status bar. Clicking
on Session Dialog opens the session dialog window (same as start up screen) that allows one to load
different settings files as well as to connect to other instruments.
The Settings section allows one to load and save instrument and UI settings. The saved settings are
later available in the session dialog.
The User Preferences section contains the settings that are continuously stored and automatically
reloaded the next time an HF2 Series instrument is used from the same computer account.
For low ambient light conditions the use of the dark display theme is recommended (see Figure
5.33).
For more information on the tree functionality in the Record Data section, please see Tree Selector.
5.15.1. Features
Option and upgrade management
External clock referencing (10 MHz)
Instrument connectivity parameters
Device monitor
5.15.2. Description
The Device tab serves mainly as a control panel for all settings specific to the instrument that is
controlled by LabOne in this particular session. Whenever the tab is closed or an additional one of
the same type is needed, clicking the following icon will open a new instance of the tab.
Table 5.41: App icon and short description
Control/Tool Option/Range Description
Device Provides instrument specific settings.
The Device tab (see Figure 5.34) is divided into four sections: general instrument information,
configuration, communication parameters, and a device monitor.
The Configuration section allows one to change the reference from the internal clock to an external
10 MHz reference. The reference is to be connected to the Clock Input on the instrument back panel.
The Communication section serves to display the current data transfer rate over the USB interface.
Note
Packet loss on command streaming over TCP or USB: command packets should never be lost as it
creates an invalid state.
The Device Monitor section is collapsed by default and generally only needed for servicing. It
displays vitality signals of some of the instrument’s hardware components.
5.16.2. Description
The File Manager tab provides standard tools to see and organize the files relevant for the use of the
instrument. Files can be conveniently copied, renamed and deleted. Whenever the tab is closed or
an additional one of the same type is needed, clicking the following icon will open a new instance of
the tab.
Table 5.43: App icon and short description
Control/ Option/ Description
Tool Range
Files Access settings and measurement data files on the host
computer.
The Files tab (see Figure 5.35) provides three windows for exploring. The left window allows one to
browse through the directory structure, the center window shows the files of the folder selected in
the left window, and the right window displays the content of the file selected in the center window,
e.g. a settings file or log file.
Note
Some settings in the PID tab are interdependent with settings that are accessible from other tabs. If
the PID output controls a certain variable, e.g. Signal Output Offset, this variable will be shown as
read-only where it appears in other tabs (i.e. in the Lock-in tab for this case).
5.17.1. Features
Four fully programmable proportional, integral, derivative (PID) controllers
PID Advisor with multiple DUT models, transfer function, and step function modeling
More than 5 kHz regulation bandwidth
Input parameters: demodulator data, auxiliary inputs, oscillator frequency
Output parameters: output amplitudes, oscillator frequencies, auxiliary outputs and DIO
5.17.2. Description
The PID tab is the main control center for the feedback loop controllers in the instrument. Whenever
the tab is closed or an additional one of the same type is needed, clicking the following icon will
open a new instance of the tab.
Table 5.45: App icon and short description
Control/ Option/ Description
Tool Range
PID Features all control, analysis, and simulation capabilities of the
PID controllers.
The PID tab (see Figure 5.36) consists of four identical side-tabs, each of them providing access to
the functionality of one of the four PID controllers and the associated PID Advisor.
Depending on the application there are a number of ways to set up a control loop. Let’s consider a
few different approaches and see how the Advisor can help to reduce the effort and improve on the
result and understanding of the setup.
Manual Setup
In cases where the transfer function of the device under test (DUT) is unknown and only little noise
couples into the system from the environment, a manual approach is often the quickest way to get
going. For manual configuration of a new control loop it is recommended to start with a small value
for P and set the other parameters (I, D) to zero. By enabling the controller one will then immediately
see if the sign of P is correct and if the feedback is acting on the correct output parameter for
instance by checking the numbers (Error, Shift, Out) displayed in the PID tab. A stepwise increase of
the integral gain I will then help to zero the PID error signal completely. Enabling the derivative gain D
can increase the speed of the feedback loop, but it can also cause an instable feedback loop
behavior . Monitoring the PID error in the Plotter Tab in parallel can be a great help at this stage. The
math tools offered by the Plotter allow us to display the standard deviation and the average value of
the error. These values should be minimized by tweaking the PID parameters and the associated
histogram should have a symmetric (ideally Gaussian) envelope.
In order to characterize the feedback loop quantitatively, you can measure the step response in the
Data Acquisition Tab. To do that measurement, change the PID setpoint manually after you have
configured the DAQ Trigger level half way in between the old and new setpoint. DAQ Delay and
Duration are chosen to roughly match the expected bandwidth. For a step response curve with fine
time resolution, the PID data rate should be high enough.
PID Advisor
For many experimental situations the external device or DUT can be well approximated by a simple
model. The LabOne PID Advisor allows you to simulate the behavior of a number of different DUT
types in a feedback loop and choose feedback gain parameters based on the simulation. The DUTs
are characterized by a model function with a number of parameters found on the Advisor sub-tab.
All models include a setting for the delay that occurs outside the instrument. Depending on the
targeted servo bandwidth, the external delay can often be the limiting factor and should be sensibly
chosen.
Note
The delay specified for each model is the earliest possible response to a stepwise change of the
instrument output to be seen on the instrument input. It describes the causality of the system and
does not affect the shape of the DUT transfer function. Standard coaxial cables cause a signal delay
of about 5 ns/m.
The most simple approach to modeling is to assume a DUT with a unity transfer function by using All
Pass. The low-pass filters allow for limiting the bandwidth, to set an overall gain and a damping for
the second order filter. With a Gain set to 1 and a Delay set to 0, All Pass can be used to model the
PID controller independent of the external device. Resonator Frequency is a model that applies well
in situations with a passive external component, e.g. a AFM cantilever or a quartz resonator, whose
frequency should be tracked by a PLL over time. In cases where the amplitude of the resonator
signal needs to be stabilized with a second control loop (automatic gain control), the Resonator
Amplitude model is the right choice. Setting the resonance frequency and the Q factor, both can be
obtained before by a frequency scan over the resonance using the Sweeper Tab, allows the Advisor
to estimate the gain and low-pass behavior of the resonator. Internal PLL is used whenever an
external oscillating signal is provided that shall be followed by one of the internal oscillators. The
VCO setting describes a situation where the input variable of the DUT is a voltage and the output is a
frequency. The gain parameter specifies how much voltage change on the input causes how much
frequency shift on the VCO output. In case the frequency of the VCO can be tracked by using the
external reference mode, one can easily measure this gain with the Sweeper Tab by scanning the
Auxiliary Output voltage and displaying the resulting oscillator frequency. The gain is given by the
slope of the resulting line at the frequency of interest.
With a model and parameters set to best describe the actual measurement situation, one can now
continue by defining a target bandwidth for the entire control loop and the Advise Mode, i.e. the
feedback gain parameters that shall be used for the control operation. Whenever the input signal is
derived from one of the demodulators it is convenient to activate the box next to target bandwidth.
With that in place the Advise algorithm will automatically adjust the demodulator bandwidth to a
value about 5 times higher than the target bandwidth in order to avoid to be limited by
demodulation speed. The Advisor algorithm will now calculate a target step response function that it
will try to achieve by adjusting the feedback gain parameters in the next step. Before doing so in
case of a newly set up DUT model, the algorithm will first try to estimate the PID parameters by
using the Ziegler-Nichols method. When there has been a previous run, the user can also change the
parameters in the model manually which will the be used as new start parameters of the next Advise
run. Starting from the initial parameters, the Advisor will then perform a numerical optimization in
order to achieve a least-squares fit of the calculated step response to a target step response
determined from the Target Bandwidth. The result is numerically characterized by an achieved
bandwidth (BW) and a phase margin (PM). Moreover, the large plot area on the right can be used to
characterize the result by displaying transfer functions, magnitude and phase, and step responses
between different signal nodes inside the loop. Once the modeling is completed one can copy the
resulting parameters to the physical PID by clicking on .
Table 5.46: DUT transfer functions
Name Function Parameters
All pass H(s) = g
H(s)=gH(s)=g
1. Gain gg
g
Low-pass 1st 1 ωn
H(s)=g1tcs+1=gωns+ωnH(s)=g\frac{1}{t_c
H(s) = g tc s+1 = g s+ω n
s + 1} = g\frac{\omega_n}{s +\omeg
1. Gain gg
g
2. Filter bandwidth (BW) ff−3dB=ωn/
−3dB =
ωn /2π 2πf_{-3dB}=\omega_n
tc
Resonator H(s) = −360∘ tc s+1
H(s)=−360∘tctcs+1H(s)=
with ttc=12πBW=2Q2πfrest_c=\frac{1}{2\pi
c = -360^{\circ} \frac{t_c}{t_c s+1} BW}=\frac{2Q}{2\p
frequency 1 2Q 1. Resonance frequency fresf_{res}
fres
2πBW = 2πfres 2. Quality factor QQ
Q
Resonator ω/(2Q)
H(s)=gω/
H(s) = g s+ω/(2Q) with ω=2πfres\omega=2\pi
ω = 2πfres f_{res}
amplitude (2Q)s+ω/ 1. Gain gg
g
2. Resonance
(2Q)H(s)=g\frac{\omega / (2Q)}{s+\omega /(2Q)} frequency fresf_{res}
fres
3. Quality factor QQ
Q
∘
Internal PLL = − 360
H8s)=−360∘sH8s)=-\frac{360^\circ}{s}
H8s) s
∘
VCO = g s(t360
c s+1)
1
H(s)=g360∘s(tcs+1)H(s)=g\frac{360^\circ}{s(t_c
H(s) with ttc=12πfrest_c=\frac{1}{2\pi
c = 2πfres f_{res}}
s+1)}
1. Gain gg
g (Hz/V)
2. Bandwidth (BW) f−3dBf_{-3dB}
f−3dB
Note
It is recommended to use the Advisor in a stepwise approach where one increases the free
parameters from P to PI, to PID . This can save time because it prevents optimizing into local minima.
Also it can be quite illustrative to see which of the feedback parameters leads to which effect in the
feedback behavior.
Note
The low-pass filter in the differential part is implemented as an exponential moving average filter
described by y
yt=(1−α)⋅yt−1+αxty_t=(1-\alpha)\cdot
t = (1 − α) ⋅ yt−1 + αxt with α = 2−dshif t , xtx_t
α=2−dshift\alphaxy_{t-1}+\alpha
= 2^{-dshift}
t the filter x_t yty_t
input, and yt the filter output.
The default value for dshift is 0 which corresponds to a disabled filter. On the UI the filter properties
can be changed in units of bandwidth or a time constant.
In case the feedback output is a voltage applied to sensitive external equipment it is recommended
to make use of the center value and the upper and lower limit values. This will guarantee that the
output stays in the defined range even when the lock fails and the integrator goes into saturation.
Note
Demodulators that are used by an active PLL are set to read-only values on the Lock-in tab.
5.18.1. Features
Two fully programmable 50 MHz phased-locked loops
Programmable PLL center frequency and phase setpoint
50 kHz PLL bandwidth
Programmable PLL phase detector filter settings and PID controller parameters
PLL Advisor for model-based parameter suggestion and transfer function analysis
Auto-zero functions for center frequency and setpoint
Advanced 2-ω PLL mode (requires HF2-MF option)
5.18.2. Description
The PLL tab offers a convenient way to set up a phase-locked loop. In this way the frequency of an
external signal can be mapped onto one of the instrument’s internal oscillators. An advisor
functionality based on mathematical models helps the user finding and optimizing the PID
parameters and quickly optimizing the servo bandwidth for the application. Whenever the tab is
closed or an additional one of the same type is needed, clicking the following icon will open a new
instance of the tab.
Table 5.50: App icon and short description
Control/ Option/ Description
Tool Range
PLL Features all control, analysis, and simulation capabilities of the
phase-locked loops.
The PLL tab (see Figure 5.38) is divided into two side-tabs corresponding to the two PLL units. It
contains a settings section on the left and an advisor section with graphical display on the right.
Note
The frequency range in the PLL Settings section should exceed the target bandwidth by at least a
factor of 5 to 10.
Note
PLL 1 uses demodulator 7 as phase detector, and PLL 2 uses demodulator 8. The Input selection
determines which signal is connected to the corresponding demodulator. This setting is the same as
the Input Signal setting in the Lock-in tab.
Note
The HF2-MOD AM/FM Modulation requires the HF2-MF Multi-frequency option.
5.19.1. Features
Phase coherently add and subtract oscillator frequencies and their multiples
Control for AM and FM demodulation
Control for AM and narrow-band FM generation
Direct analysis of higher order carrier frequencies and sidebands
5.19.2. Description
The MOD tab offers control in order to phase coherently add and subtract the frequencies of
multiple numerical oscillators. Whenever the tab is closed or an additional one of the same type is
needed, clicking the following icon will open a new instance of the tab.
Table 5.54: App icon and short description
Control/ Option/ Description
Tool Range
MOD Control panel to enable (de)modulation at linear combinations of
oscillator frequencies.
The MOD tab (see Figure 5.40) is divided into two horizontal sections, one for each modulation unit.
The classical approach of analyzing such signals (in particular when only analog instruments are
available) is to use a configuration called tandem demodulation. This is essentially the serial
cascading of lock-in amplifiers. The first device is referenced to the carrier frequency and outputs
the in-phase component. This is then fed into the subsequent lock-in amplifiers in order to extract
the different sideband components. There are several downsides to this scheme:
The quadrature component of the first lock-in tuned to the carrier has to be continuously zeroed
out by adjusting the reference phase. Otherwise a serious part of the signal power is lost for the
analysis which usually leads to a drop in SNR.
The scheme scales badly in terms of the hardware resources needed, in particular if multiple
sideband frequencies need to be extracted.
Every time a signal enters or exits an instrument the SNR gets smaller (e.g. due to the instrument
inputs noise). Multiple such steps can deteriorate signal quality significantly.
All these shortcomings are nicely overcome by providing the ability to generate linear combinations
of oscillator frequencies and use these combinations as demodulation references.
The MOD tab contains two sections MOD 1 and MOD 2. Both are identical in all aspects except that
MOD 1 is linked to demodulators 1, 2 and 3, whereas MOD 2 is linked to demodulators 4, 5, and 6.
Each of the MOD units can make use of up to 3 oscillators, which can be even referenced to an
external source by using ExtRef or a PLL. Figure 5.41 gives an overview of the different components
involved and their interconnections.
Note
Whenever a MOD unit is enabled, all the settings in the Lock-in tab that are controlled by this unit
will be set to read-only.
Note
When using the Sweeper to vary a parameter of a MOD unit, it is recommended to manually set the
minimum settling time to 500 ms (Settings sub-tab, Advanced Mode). Otherwise the measurement
may yield invalid data.
On top of signal analysis the HF2-MOD AM/FM Modulation can also be utilized for signal generation.
The Generation section provides all the necessary controls to adjust the carrier and sideband
amplitudes.
Note
FM signals are generated by coherent superposition of the carrier signal with two sideband
frequencies on either side that have the same amplitudes but opposite phases. The phase shift is
achieved by using negative amplitudes as displayed in the Lock-in tab. This FM generation method
approximates true FM as long as the modulation index is well below 1, i.e. higher-order sidebands
can be neglected. For a modulation index of 1 true FM provides more than 13% of signal power in the
second and higher order sidebands.
More details regarding AM and FM signal analysis and generation can be found on the Zurich
Instruments web page.
5.20.1. Features
Automatic timing synchronization across instruments
Periodic check of synchronization
Selectable instrument subgroup
Status display
5.20.2. Description
The Multi Device Sync tab contains the controls and status information for synchronized
measurements on multiple instruments. Whenever the tab is closed or an additional one of the
same type is needed, clicking the following icon will open a new instance of the tab.
Table 5.56: App icon and short description
Control/Tool Option/Range Description
MDS Synchronize multiple instruments.
The Multi Device Sync tab shown in Figure 5.42 consists of the Available Devices section, a Status
section, and a wiring diagram.
The first prerequisite for automatic synchronization is that all instruments are connected to the
same LabOne Data Server (see Connecting to the Instrument).
These connections are automatically established with all HF2 instruments physically connected to
the same host computer. Once all instruments are connected, they are selectable in the Tree
Selector of a newly opened Plotter tab allowing you to visualize their data simultaneously, though by
default these data are not synchronized yet. The settings of multiple instruments can be accessed
in parallel by opening a new Web Server session for each of them. This is done by opening a new
browser tab and connecting to localhost:8006 or 127.0.0.1:8006, respectively, and then double-
clicking the respective instrument entry in the Available Devices list. With multiple instruments
connected to the same Data Server, tabs that are available for several instruments will feature a
device selector as shown in Figure 5.43.
Figure 5.43: Example of the device selector for the Device tab
The second prerequisite for automatic synchronization is correct cabling of the instruments
explained in the diagram in Figure 5.44. The instruments need to be arranged in the form of a "daisy-
chain" where the ZSync Out connector of the first instrument is connected to the ZSync In
connector of the second instrument, and so forth.
5.22.1. Features
Input impedance range from 10 V/A to 1 M V/A (R1, R2)
Input mode differential or single-ended (Diff, Single)
Input signal coupling mode (AC, DC)
Output stage gain (G=1 or G=10)
5.22.2. Description
The HF2CA tab contains an interactive circuit diagram allowing the user to control the input
settings, grounding, and gain of the preamplifier. Whenever the tab is closed or an additional one of
the same type is needed, clicking the following icon will open a new instance of the tab.
Table 5.58: App Icon and short description
Control/Tool Option/Range Description
HF2CA Remote control of the HF2CA Current Amplifier.
The HF2CA tab consists of two side-tabs corresponding to the two ZCtrl inputs of the HF2
instrument. Each side-tab is horizontally divided into two identical sections corresponding to the
two Signal Inputs of the HF2CA as shown in Figure 5.45.
5.23.1. Features
Input offset +/- 10 V
Transimpedance gain from 100 V/A to 100 MV/A (R1, R2)
5.23.2. Description
The HF2TA tab contains an interactive circuit diagram allowing the user to control the input settings,
grounding, gain and offset of the preamplifier. Whenever the tab is closed or an additional one of the
same type is needed, clicking the following icon will open a new instance of the tab.
Table 5.60: App Icon and short description
Control/Tool Option/Range Description
HF2TA Remote control of the HF2TA Current Amplifier.
The HF2TA tab contains two side-tabs corresponding to the two ZCtrl inputs of the HF2 instrument.
Each side-tab is horizontally divided into three sections as shown in Figure 5.46. The two upper
sections are identical and correspond to the two Signal Inputs of the HF2TA. The lowest section
contains the setting of the Aux Output voltage of the HF2TA.
We first provide an overview of how the user connects an HF2 Instrument to a PC in Instrument
Connectivity Overview and then give an overview of how to quickly modify instrument settings using
the text-based console in ziServer’s Text-based Interface. Finally, at the end of this chapter, we
explain how to connect to an HF2 instrument over a public network, Connecting to ziServer over
insecure or networks behind firewalls.
Note
It is also possible to configure and obtain data from an HF2 Instrument via one of our APIs. Currently
LabVIEW, Matlab, Python or C are available. These topics are covered in a separate document, The
LabOne Programming Manual.
Note
New users could benefit by first familiarizing themselves with the instrument using the LabOne UI,
see Tutorials.
Note
Programming using the Real-time Option (ziRTK) is dealt with in Real-time Option.
Before going into more detail, the terminology used in this chapter is explained.
Host computer: The computer that is directly connected to the HF2 by USB. An HF2 can only be
connected to one host computer, but to multiple remote computers on a local area network via
ziServer running on the host.
ziServer: A computer program that runs on the host computer and manages settings on, and
data transfer to and from the HF2 by receiving commands from clients. It always has the most
up-to-date configuration of the device and ensures that the configuration is synchronized
between different clients.
Remote computer: A computer, available on the same network as the host computer, that can
communicate with the HF2 via the ziServer program running on the host.
Client: A computer program that communicates with the HF2 via the server. The client can be
running either on the host or the remote computer.
API (Application Programming Interface): a collection of functions and data structures which
enable communication between software components. In our case, the various APIs (e.g.,
LabVIEW, MATLAB®) for the HF2 provide functions to configure the device and receive measured
experimental data.
Interface: Either a client or an API.
TCP/IP: Network communication protocols. In our case, ziServer communicates to the base API
(ziAPI) using TCP/IP. This can happen either locally (entirely on the host computer) or between the
host computer and remote computers.
GUI (Graphical User Interface): A computer program that the user can operate via images as
opposed to text-based commands.
Modules: Software components that provide a unified interface to APIs to perform high-level
common tasks such as sweeping data.
An overview of HF2 Instrument connectivity is shown in Figure 6.1.
On a remote computer connected to the host computer over a secure local area network. If a
private network is available this is a simple setup, ziServer only needs to allow remote
connections, see Enabling a Remote Connection to ziServer.
On a remote computer connected to the host computer over a public, insecure network.
As you can now imagine, there are many possibilities to connect to an HF2 instrument. The following
methods of connecting with HF2 Instruments are supported:
Connection to and operation of an HF2 Instrument from multiple clients on different computers
in parallel with automatic background update of instrument settings on all connected clients.
Connection to and operation of up to 16 HF2 Instruments from a single host computer.
Connection to and Operation of multiple remote HF2 Instruments that are connected on a TCP/IP
LAN via a (or multiple) host computer(s), the number of which is limited by the performance of
the remote computer. Note, there can only be one instance of ziServer running for one HF2
Instrument.
$ ziService status
In order to enable connections to ziServer from a remote computer, the node /zi/config/open
must be set to 1. To set this in the LabOne UI go to the Config Tab and under the Connectivity setting
enable "From Everywhere".
An example demonstrating the hierarchy is the representation of the first demodulator on the
device, given by the node:
/devX/demods/0
which, as we’ve already noted, is very similar to a path on a computer’s file-system. Note that, the
top level of the path is the device that you are connected to. The demodulators are then given as a
top-level *_node__ under your device-node and the node of the first demodulator is indexed by 0.
This path represents a branch in the node hierarchy which, in this case, if we explore further, has the
following nodes:
/devX/demods/0/adcselect
/devX/demods/0/order
/devX/demods/0/timeconstant
/devX/demods/0/rate
/devX/demods/0/trigger
/devX/demods/0/oscselect
/devX/demods/0/harmonic
/devX/demods/0/phaseshift
/devX/demods/0/sinc
/devX/demods/0/sample
These nodes are *_leaves, the most bottom-level nodes which represent a setting of an instrument
or a field that can be read to retrieve measurement data. For example, /devX/demods/0/adcselect
is the leaf that controls the setting corresponding to the choice of signal input for the first
demodulator. To set the index of the signal input the user writes to this node. The leaf /devX/
demods/0/sample is the leaf where the demodulator’s output (timestamp, demodulated x-value,
demodulated y-value) are written at the frequency specified by /devX/demods/0/rate. In order to
obtain the demodulator output you read the values from this node by *_polling this node. Polling a
node sends a request from the client to ziServer to obtain the data from the node at that particular
point in time.
Device Node Tree provides a full reference of nodes on HF2 Instruments and details which settings
or measurement data they correspond to, whether they are read-only and, if they are writable, which
values they may take (e.g., boolean, integer, floating point).
Note
The numbering on the front panel of the HF2 Instrument and the block numbering on the LabOne UI
generally start with 1, whereas the underlying instrument using the programming interfaces has a
numbering notation starting with 0.
Note
A useful method to learn about paths in your HF2 Instrument is to look at the output of the history in
the bottom of the LabOne UI. The status line always shows the last applied command and you can
view the entire history by clicking the "Show History" button. You will find paths like
/devx/sigins/0/ac = 1
/devx/demods/1/rate =
7200.000000
You can obtain a list of nodes available on your instrument as a text-file in the LabOne UI by saving
the instrument settings. Go to the Config tab in the Settings section click the Save button.
Note
We recommend that users who want to program their HF2 Instruments first familiarize themselves
with the node hierarchy by browsing nodes via ziServer’s text-based interface described in the next
chapter. The text-based interface is an indispensable tool for HF2 programmers.
Communication: The Node Hierarchy). The terminal responds to known command syntax like ls (list
all nodes in the current directory) and cd (select path to navigate in the directory hierarchy).
The text interface is a very powerful tool for users programming an HF2 Instrument with other
interfaces such as Zurich Instrument’s LabVIEW or MATLAB® API. It is a convenient way to verify the
instrument’s node paths and check that values have been set correctly by the interface you are
actually programming with. It is also helpful for budding HF2 hackers who can use it to browse the
node hierarchy and familiarize themselves with its structure.
Note
In theory, it would be possible to use the text-based interface to communicate with an HF2
Instrument from an arbitrary programming environment. However, this would require the
implementation of a socket connection and a parser, and there is no exception handling should a
command fail. Also, since it’s a text interface, as opposed to a binary interface, data transfer is
slower. Therefore, in general, we strongly encourage the user to instead use one of the existing
binary interfaces documented later in this chapter as their primary programming interface.
Preparation
The purpose of this section is to get quickly acquainted with the text interface to the ziServer. For
this you will need to have installed LabOne (see Software Installation) and have your HF2 Instrument
connected to your host computer via USB. In order to access the text-based interface within
ziServer, a telnet or SSH client providing a console is required.
Zurich Instruments recommends to use the freeware PuTTY as a telnet client. PuTTY has to be
configured with the following settings to connect with ziServer.
Table 6.1: PuTTY settings on Windows
Users connecting to a remote ziServer (a ziServer which is not running on the local machine, but on
the host computer available on the LAN) have to configure the host name accordingly (e.g.
computer.domain.com) after allowing remote connections to ziServer, see Software Connectivity:
ziServer.
You may connect to a running ziServer from the host computer by invoking telnet in a shell:
Or by using netcat:
We start our tour with some basic commands. After successful connection, it’s nice to see which
instruments are connected to ziServer. An ls will do the job. This yields the information that we have
a ZI node (the node for ziServer) and a DEVX node (denoting your HF2 Instrument). The DEVX is the
serial number of the HF2 Instrument in front of you. Let’s select the ziServer node with cd zi, list
the nodes with ls, and then read all values of the node inside the /ZI/ tree with / ?. Not very
impressive so far.
Let us move into the DEVX hierarchy by using the relative path cd ../devx (it’s also possible to
specify absolute paths, e.g., cd /devx/ and investigate the structure of the node hierarchy with the
ls command). This lists all the leaves inside of your device. Each leaf represents a setting that can
be made inside of the instrument or a field that can be read to retrieve measurement data. The first
level hierarchy inside the instrument is displayed in Figure 6.6.
It is time to dive into one branch of the instrument. Let us take oscillator 0: type cd oscs, then ls to
see the branches at that level, then type cd 0 to select the first oscillator, then list the leaves at that
level, and use * ? to return the values of all leaves. We see for instance that /DEVX/OSCS/0/FREQ
has a value of 2.5 MHz, see Figure 6.7.
It is now possible to check that the LabOne UI actually has the same value in the corresponding
field. Note, that the block numbering notation inside of the GUI starts with 1, whereas the underlying
instrument has a numbering notation starting with 0. It is also possible to change the frequency of
the lock-in channel 1 inside of the GUI to 2.1 MHz, and then check the value inside the text interface
by typing * ?. You notice that the settings changes are transparent to all clients connected to a
ziServer. You can always rely on setting and data consistency.
Next, to change the value of the oscillator frequency, for instance to 4.5 MHz, type freq 4500000.
The same effect can be achieved by using the absolute path /DEV8/OSCS/0/FREQ 4500000. Please
note that the value in the GUI has changed from 2.1 MHz to 4.5 MHz in the meantime.
The wildcard symbol * can simplify life when many similar settings need to be made. Lets for
instance check the frequency of all oscillators at once: type cd .., and then */freq ?, and then
change all frequencies to 3.6 MHz with \*/freq 3600000. This is where the text interface is
becoming pretty powerful.
Note, another useful method to learn about the paths in your HF2 Instrument is to look at the
bottom of the LabOne UI after changing configuration (see this note). The complete command
history of a session is stored in the LabVIEW Data directory, file
com.zhinst.ziControlStatusLog.txt.
This concludes getting started with text-based programming. Zurich Instruments hopes you found it
useful, and hopes you are going to perform some tutorials in Tutorials. Thank you for measuring with
Zurich Instruments.
Commands
A complete lists of all available commands in the text-based interface can be viewed in the interface
by typing help.
Note
The text-based interface is case insensitive.
Every setting of the instrument is represented by a leaf as a terminal of a tree of nodes. There are
also leaves which are not settings, but for instance used to retrieve data from the instrument. For
each leaf there is a path and the related value.
In the syntax above a name is a string, and the path is a list of names separated by a slash. If a path
starts with a slash, it is an absolute path starting at the root of the hierarchy. The asterisk is a
wildcard meaning all nodes at a given hierarchy, and two points in a row means one hierarchy higher.
The navigation inside the text interface is performed with the sel/cd/ls/tr commands.
sel or cd [?|..|path]
ls [path]
tr [path]
info [path]
The command cd ? feedbacks the current path, cd .. moves up one tree level, cd path moves
down one tree level. sel and cd are equivalent commands. ls lists the tree available on the current
path, ls path lists the tree available on the specified path, tr lists the complete tree on the current
path, tr path lists the complete tree on the specified path, info feedbacks the help string of the
current path, and info path reports the help string of a given path.
The values of nodes are read and changed with the following syntax.
path ?
path_list value
The command path ? returns the value of path, path value sets the specified node to value, and
path_list value sets several nodes to value. Some examples:
/devx/demods/0/adcselect /devx/demods/1/adcselect 1
// multiple set value
Subscriptions
The ziServer provides a mechanism to automatically send all changes to a leaf to a subscribed
client. This mechanism efficiently informs a client whenever a setting or a data of the instrument
has changed without the need of active polling. It is possible to subscribe to single leaves, or full
trees.
When a value of a subscribed leaf changes, the updated value is sent to the client. Most often
samples, error and status nodes are subscribed. If one needs to maintain a user interface, then this
can be done using subscriptions.
If you subscribe or unsubscribe from a node which is not a leaf, the subscription propagates to all
nodes of the subtree. For example, you could first subscribe a subtree and then unsubscribe
specific nodes within this subtree and still receive events for all nodes except for unsubscribed
ones.
The following sequence illustrates subscribe and unsubscribe commands following each other,
where turquoise leafs denote subscribed leafs.
Initial state - no leaf is After subscribing the root After unsubscribing the
subscribed node node 1
The first image shows the initial state with no leaf subscribed. This state corresponds to a newly
initiated ziServer session. After subscribing the root node, all leafs become subscribed. Then it is for
instance possible to unsubscribe node 1 in order to leave just the leafs below node 2 subscribed.
Scripting
It is possible prepare a sequence of commands in a text editor and copy-paste them into the
terminal session. The console will send all commands to the ziServer and the server will interpret
them one by one.
Note
Use the right-mouse button in order to copy-paste into a Windows Putty session.
cd [.zinode]#/DEVX#
SIGOUTS/*/ON 0
SIGOUTS/0/RANGE 1
SIGOUTS/0/AMPLITUDES/0 1
SIGOUTS/0/ENABLES/* 0
SIGOUTS/0/ENABLES/0 1
OSCS/0/FREQ 300000
SIGINS/0/RANGE 10
DEMODS/0/ORDER 2
DEMODS/0/RATE 1000
To illustrate how port forwarding works, let us use an example. Suppose you have two buildings. In
Lab #1, there is the lab with computers residing in the subnet 10.1.1.* and the HF2 is connected to
one of these computers. At your Home, there are office computers residing in the subnet 10.2.2.*.
The computers in Lab #1 are running the ziServer application that uses an unencrypted TCP/IP
session to communicate data with, e.g., the LabOne UI at your home. The firewall of the Lab and your
Home might not permit this connection to be initiated. There are two kinds of port forwarding: local
and remote forwarding. They are also called outgoing and incoming tunnels, respectively. Local port
forwarding forwards traffic coming to a local port to a specified remote port. For example, all traffic
coming to port 1234 on the client could be forwarded to port 8005 on the server (host).
The value of localhost is resolved after the Secure Shell connection has been established – so when
defining local forwarding (outgoing tunnels), localhost refers to the server (remote host computer)
you have connected to. Remote port forwarding does the opposite: it forwards traffic coming to a
remote port to a specified local port. For example, all traffic coming to port 1234 on the server (host)
could be forwarded to port 8005 on the client (localhost).
We see the ziServer is available on the loop back interface only, listening on port TCP/10000:
From your home machine, you should be able to connect to the machine at work:
By specifying localhost and port 10000 in the LabOne UI you can connect with the LabOne UI. Note
that port 10000 is chosen arbitrarily.
We now see the service is available on all interfaces on your home computer (10.2.2.5), available for
anyone to connect to on the local subnet:
$ netstat -tunelp | grep 10000 tcp 0 0 0.0.0.0:10000 0.0.0.0:* LISTEN 1000 72265
12543/ssh
Anyone on your local subnet should be able to connect to the machine at work by doing this:
By specifying host 10.2.2.5 and port 10000 in the LabOne UI you can connect with the LabOne UI.
We see on our server at work (on the loop back interface on port TCP/10000) that we have access to
our SSH server at home:
People logged in on the machine work.example.org now should be able to SSH into your home
machine by doing:
GatewayPorts yes
Anyone at work can now connect to your home machine by SSH via the server:
Since these settings and data streams may be written and read using the LabOne APIs (Application
Programming Interfaces) this chapter is of particular interest to users who would like to perform
measurements programmatically via LabVIEW, Python, MATLAB, .NET or C.
Please see:
Introduction for an introduction of how the instrument’s settings and measurement data are
organized hierarchically in the Data Server’s so-called "Node Tree".
Reference Node Documentation for a reference list of the settings and measurement data
available on HF2 Instruments, organized by branch in the Node Tree.
7.1. Introduction
This chapter provides an overview of how an instrument’s configuration and output is organized by
the Data Server.
All communication with an instrument occurs via the Data Server program the instrument is
connected to (see LabOne Software Architecture for an overview of LabOne’s software
components). Although the instrument’s settings are stored locally on the device, it is the Data
Server’s task to ensure it maintains the values of the current settings and makes these settings (and
any subscribed data) available to all its current clients. A client may be the LabOne User Interface or
a user’s own program implemented using one of the LabOne Application Programming Interfaces,
e.g., Python.
The instrument’s settings and data are organized by the Data Server in a file-system-like hierarchical
structure called the node tree. When an instrument is connected to a Data Server, its device ID
becomes a top-level branch in the Data Server’s node tree. The features of the instrument are
organized as branches underneath the top-level device branch and the individual instrument
settings are leaves of these branches.
For example, the auxiliary outputs of the instrument with device ID "dev2006" are located in the tree
in the branch:
/dev1000/auxouts/
In turn, each individual auxiliary output channel has its own branch underneath the "AUXOUTS"
branch.
/dev1000/auxouts/0/
/dev1000/auxouts/1/
/dev1000/auxouts/2/
/dev1000/auxouts/3/
Whilst the auxiliary outputs and other channels are labelled on the instrument’s panels and the User
Interface using 1-based indexing, the Data Server’s node tree uses 0-based indexing. Individual
settings (and data) of an auxiliary output are available as leaves underneath the corresponding
channel’s branch:
/dev1000/auxouts/0/demodselect
/dev1000/auxouts/0/limitlower
/dev1000/auxouts/0/limitupper
/dev1000/auxouts/0/offset
/dev1000/auxouts/0/outputselect
/dev1000/auxouts/0/preoffset
/dev1000/auxouts/0/scale
/dev1000/auxouts/0/value
These are all individual node paths in the node tree; the lowest-level nodes which represent a single
instrument setting or data stream. Whether the node is an instrument setting or data-stream and
which type of data it contains or provides is well-defined and documented on a per-node basis in
the Reference Node Documentation section in the relevant instrument-specific user manual. The
different properties and types are explained in Node Properties and Data Types .
For instrument settings, a Data Server client modifies the node’s value by specifying the appropriate
path and a value to the Data Server as a (path, value) pair. When an instrument’s setting is changed
in the LabOne User Interface, the path and the value of the node that was changed are displayed in
the Status Bar in the bottom of the Window. This is described in more detail in Exploring the Node
Tree.
Module Parameters
LabOne Core Modules, such as the Sweeper, also use a similar tree-like structure to organize their
parameters. Please note, however, that module nodes are not visible in the Data Server’s node tree;
they are local to the instance of the module created in a LabOne client and are not synchronized
between clients.
Figure 7.1: When a device’s configuration is modified in the LabOne User Interface, the
Status Bar displays the equivalent command to perform the same configuration via a
LabOne programming interface. Here, the MATLAB code to modify auxiliary output 1’s
offset value is provided. When "Show Log" is clicked the entire configuration history is
displayed in a new browser tab.
The nodes:
/ZI/CONFIG/OPEN
/ZI/CONFIG/PORT
are settings nodes that can be used to configure which port the Data Server listens to for incoming
client connections and whether it may accept connections from clients on hosts other than the
localhost.
The Global nodes of the LabOne Data Server are listed in the Instrument Communication chapter of
the LabOne Programming Manual
7.2.1. AUXINS
/dev..../auxins/n/averaging
/dev..../auxins/n/sample
/dev..../auxins/n/values/n
Properties: Read
Type: Double
Unit: V
Input 0 value.
/dev..../auxins/n/values/1
Properties: Read
Type: Double
Unit: V
Input 1 value.
7.2.2. AUXOUTS
/dev..../auxouts/n/demodselect
Source demodulator.
/dev..../auxouts/n/offset
Value to be added to the output. The offset value is applied after scaling.
/dev..../auxouts/n/outputselect
/dev..../auxouts/n/scale
/dev..../auxouts/n/value
Properties: Read
Type: Double
Unit: V
Output value.
7.2.3. CLOCKBASE
/dev..../clockbase
Properties: Read
Type: Integer
Unit:
7.2.4. CPUS
/dev..../cpus/n/output
Properties: Read
Type: ZIVectorData
Unit:
Node containing the standard output stream written by the real time program.
/dev..../cpus/n/program
Properties: Write
Type: String
Unit:
/dev..../cpus/n/userregs/n
/dev..../cpus/n/workload
Properties: Read
Type: Double
Unit:
7.2.5. DEMODS
/dev..../demods/n/adcselect
/dev..../demods/n/enable
/dev..../demods/n/freq
Properties: Read
Type: Double
Unit: Hz
/dev..../demods/n/harmonic
The harmonic of the base frequency to be used. Selecting 1 chooses the fundamental frequency.
/dev..../demods/n/order
/dev..../demods/n/oscselect
/dev..../demods/n/phaseshift
/dev..../demods/n/rate
/dev..../demods/n/sample
/dev..../demods/n/sinc
/dev..../demods/n/timeconstant
Sets the time constant of the low-pass filter. The time constant is set for each stage of the low-pass
filter. The total time constant and bandwidth depends on the selected order.
/dev..../demods/n/trigger
Sets the trigger- and gating-functionality of the demodulator. The triggers are configured by the bits
of an integer. When multiple bits/triggers are set, they are or-ed. If trigger is set to 0 then
demodulator data is sent continuously.
1 "b0": DIO0 rising edge
2 "b1": DIO0 falling edge
4 "b2": DIO1 rising edge
8 "b3": DIO1 falling edge
16 "b4": DIO0 high
32 "b5": DIO0 low
64 "b6": DIO1 high
128 "b7": DIO1 low
7.2.6. DIOS
/dev..../dios/n/decimation
/dev..../dios/n/drive
/dev..../dios/n/extclk
Selects whether an external clock source should be used. The external clock needs to be applied to
the DIO connector when this node is set to 1.
0 Internal clock
1 External clock
/dev..../dios/n/input
/dev..../dios/n/output
Bits to output.
/dev..../dios/n/syncselect0
/dev..../dios/n/syncselect1
7.2.7. FEATURES
/dev..../features/code
Properties: Write
Type: String
Unit:
/dev..../features/devtype
Properties: Read
Type: String
Unit:
/dev..../features/options
Properties: Read
Type: String
Unit:
Node giving information on enabled options. Reading this node returns a string containing a
newline-separated list of all installed options.
/dev..../features/serial
Properties: Read
Type: String
Unit:
7.2.8. MODS
/dev..../mods/n/carrier/amplitude
Carrier amplitude. Fraction of the output range added to the output signal. Multiply this value with
the range setting to obtain voltage in V.
/dev..../mods/n/carrier/enable
/dev..../mods/n/carrier/harmonic
/dev..../mods/n/carrier/inputselect
/dev..../mods/n/carrier/order
/dev..../mods/n/carrier/oscselect
/dev..../mods/n/carrier/phaseshift
/dev..../mods/n/carrier/timeconstant
Sets the time constant of the carrier low-pass filter. The time constant is set for each stage of the
low-pass filter. The total time constant and bandwidth depends on the selected order.
/dev..../mods/n/enable
/dev..../mods/n/freqdev
/dev..../mods/n/freqdevenable
/dev..../mods/n/index
In FM mode, set modulation index value. The modulation index equals peak deviation divided by
modulation frequency.
/dev..../mods/n/mode
Modulation mode.
0 Amplitude modulation
1 Frequency modulation
2 Manual
/dev..../mods/n/output
Modulation output.
0 none
1 1
2 2
3 1 and 2
/dev..../mods/n/rate
/dev..../mods/n/rawfmcoeff
/dev..../mods/n/rawmode
Modulation mode.
0 Off
1 Amplitude modulation
2 Frequency demodulation
3 Frequency modulation
/dev..../mods/n/rawsideband
Sideband selector.
0 Both
1 Upper
2 Lower
/dev..../mods/n/sample
Modulation Samples.
/dev..../mods/n/sidebands/n/amplitude
Sideband amplitude, Fraction of the output range added to the output signal. Multiply this value
with the range setting to obtain voltage in V.
/dev..../mods/n/sidebands/n/enable
/dev..../mods/n/sidebands/n/harmonic
/dev..../mods/n/sidebands/n/inputselect
/dev..../mods/n/sidebands/n/mode
Sideband selector.
0 Off
1 C+M
2 C-M
/dev..../mods/n/sidebands/n/order
/dev..../mods/n/sidebands/n/oscselect
/dev..../mods/n/sidebands/n/phaseshift
/dev..../mods/n/sidebands/n/timeconstant
Sets the time constant of the sideband low-pass filter. The time constant is set for each stage of the
low-pass filter. The total time constant and bandwidth depends on the selected order.
/dev..../mods/n/trigger
7.2.9. OSCS
/dev..../oscs/n/freq
7.2.10. PIDS
/dev..../pids/n/center
/dev..../pids/n/d
Proportional gain for differentiator. Sets the proportional gain for the differentiated error signal.
Negative feedback corresponds to a negative gain.
/dev..../pids/n/demod/adcselect
/dev..../pids/n/demod/harmonic
The harmonic of the base frequency to be used. Selecting 1 chooses the fundamental frequency.
/dev..../pids/n/demod/order
/dev..../pids/n/demod/timeconstant
Sets the time constant of the low-pass filter. The time constant is set for each stage of the low-pass
filter. The total time constant and bandwidth depends on the selected order.
/dev..../pids/n/enable
/dev..../pids/n/error
Properties: Read
Type: Double
Unit: [OUTPUT Unit]
Shows the error value. The calculated error is : ERROR = SETPOINT - IN.
/dev..../pids/n/i
Proportional gain for integrator. Sets the proportional gain for the integrated (accumulated) error
signal. Negative feedback corresponds to a negative gain.
/dev..../pids/n/input
/dev..../pids/n/inputchannel
If applicable, selects the channel of the selected INPUT. Sets the input channel index for the
selected INPUT, i.e. 0,1,2 etc.. The available channels depend on the input type.
/dev..../pids/n/monitoroffset
/dev..../pids/n/monitorscale
/dev..../pids/n/output
/dev..../pids/n/outputchannel
If applicable, selects the channel of the selected OUTPUT. Sets the input channel index for the
selected OUTPUT, i.e. 0,1,2 etc.. The available channels depend on the output type
/dev..../pids/n/outputdefault
/dev..../pids/n/outputdefaultenable
If OUTPUTDEFAULTENABLE is set, the value specified by OUTPUTDEFAULT will be applied when the
PID is switched off.
0 OFF
1 ON
/dev..../pids/n/p
Proportional gain. Sets the proportional gain for the error signal. Negative feedback corresponds to
a negative gain.
/dev..../pids/n/range
Sets the output range. The limits for the output are : OUT = [CENTER - RANGE,CENTER + RANGE]
with RANGE > 0.0.
/dev..../pids/n/rate
Properties: Read
Type: Double
Unit: Samples/s
/dev..../pids/n/setpoint
/dev..../pids/n/setpointselect
/dev..../pids/n/shift
Properties: Read
Type: Double
Unit: [OUTPUT Unit]
Shows the output shift. The calculated output value is : OUT = CENTER + SHIFT.
/dev..../pids/n/tipprotect/active
Properties: Read
Type: Integer
Unit: Boolean
/dev..../pids/n/tipprotect/activethreshold
Threshold for the active state. Threshold for PLL error² when TipProtect is active, i.e. when waiting to
re-enable the PID controller.
/dev..../pids/n/tipprotect/activetimeconstant
Time constant when TipProtect is active. Time constant for low-pass filtering the PLL error² when
TipProtect is active, i.e. when waiting to re-enable the PID controller.
/dev..../pids/n/tipprotect/enable
/dev..../pids/n/tipprotect/inactivethreshold
Threshold for the inactive state. Threshold for PLL error² when TipProtect is inactive, i.e. when
waiting to disable the PID controller.
/dev..../pids/n/tipprotect/inactivetimeconstant
Time constant when TipProtect is inactive. Time constant for low-pass filtering the PLL error² when
TipProtect is inactive, i.e. when waiting to disable the PID controller.
/dev..../pids/n/tipprotect/pll
7.2.11. PLLS
/dev..../plls/n/adcselect
/dev..../plls/n/adcthreshold
Threshold for edge detection. Full scale corresponds to -4096 and 4095.
/dev..../plls/n/autocenter
Switches auto-center.
0 Auto-center off
1 Auto-center on
/dev..../plls/n/autopid
/dev..../plls/n/autotimeconstant
/dev..../plls/n/auxavg
/dev..../plls/n/d
/dev..../plls/n/demodselect
Properties: Read
Type: Integer
Unit: Index
Source demodulator.
/dev..../plls/n/enable
/dev..../plls/n/error
Properties: Read
Type: Double
Unit: deg
/dev..../plls/n/freqcenter
/dev..../plls/n/freqdelta
Properties: Read
Type: Double
Unit: Hz
/dev..../plls/n/freqrange
/dev..../plls/n/harmonic
The harmonic of the base frequency to be used. Selecting 1 chooses the fundamental frequency.
/dev..../plls/n/i
/dev..../plls/n/locked
Properties: Read
Type: Integer (enumerated)
Unit: Boolean
/dev..../plls/n/order
/dev..../plls/n/oscselect
Properties: Read
Type: Integer
Unit: Index
/dev..../plls/n/p
/dev..../plls/n/rate
Properties: Read
Type: Double
Unit: Samples/s
/dev..../plls/n/setpoint
/dev..../plls/n/timeconstant
7.2.12. SCOPES
/dev..../scopes/n/bwlimit
/dev..../scopes/n/channel
/dev..../scopes/n/enable
/dev..../scopes/n/time
Timescale of the scope wave (logarithmic decimation). Determines the decimation of the sample
rate. The following formulas apply: span = 2^val * 10 us, sample rate = 210 MSamples/2^val
/dev..../scopes/n/trigchannel
Selects the channel which should be used as source for the scope's trigger.
-2 Continuous
-1 Off
0 Oscillator 7 phase
1 Signal Input 2
2 Signal Output 1
3 Signal Output 2
4 Oscillator 1 phase
5 Oscillator 2 phase
6 Oscillator 3 phase
7 Oscillator 4 phase
8 Oscillator 5 phase
9 Oscillator 6 phase
11 Oscillator 8 phase
12 DIO 0
13 DIO 1
/dev..../scopes/n/trigedge
/dev..../scopes/n/trigholdoff
/dev..../scopes/n/triglevel
Level at which a trigger is raised. Full scale is covered by min and max values
/dev..../scopes/n/wave
Samples of scope-waveforms.
7.2.13. SIGINS
/dev..../sigins/n/ac
/dev..../sigins/n/diff
/dev..../sigins/n/imp50
/dev..../sigins/n/range
7.2.14. SIGOUTS
/dev..../sigouts/n/add
/dev..../sigouts/n/amplitudes/n
Fraction of the output range added to the output signal. Multiply this value with the range setting to
obtain voltage in V.
/dev..../sigouts/n/enables/n
/dev..../sigouts/n/offset
Offset added to the Signal Output. Multiply this value with the range setting to obtain offset voltage
in V.
/dev..../sigouts/n/on
/dev..../sigouts/n/range
/dev..../sigouts/n/waveforms/n
Waveforms for a channel in the mixer. For hardware revisions 1.4 and lower, the output signal range
for rectangular output is limited to 1 V.
0 Sine
1 Square
7.2.15. STATS
/dev..../stats/bytesreceived
Properties: Read
Type: Integer
Unit: Bytes
/dev..../stats/bytessent
Properties: Read
Type: Integer
Unit: Bytes
/dev..../stats/meanmsgcnt
Properties: Read
Type: Double
Unit: Messages/Second
Average message-count.
/dev..../stats/meanpollcnt
Properties: Read
Type: Double
Unit: Polls/Second
Average poll-count.
/dev..../stats/physical/1v2
Properties: Read
Type: Double
Unit: Volts
/dev..../stats/physical/1v8
Properties: Read
Type: Double
Unit: Volts
/dev..../stats/physical/2v5
Properties: Read
Type: Double
Unit: Volts
/dev..../stats/physical/3v3
Properties: Read
Type: Double
Unit: Volts
/dev..../stats/physical/5v0
Properties: Read
Type: Double
Unit: Volts
/dev..../stats/physical/overtemperature
Properties: Read
Type: Integer (enumerated)
Unit: Boolean
/dev..../stats/physical/temp
Properties: Read
Type: Double
Unit: Degrees Celsius
Actual temperature.
7.2.16. STATUS
/dev..../status/adc0max
Properties: Read
Type: Integer
Unit:
/dev..../status/adc0min
Properties: Read
Type: Integer
Unit:
/dev..../status/adc1max
Properties: Read
Type: Integer
Unit:
/dev..../status/adc1min
Properties: Read
Type: Integer
Unit:
/dev..../status/echoread
Properties: Read
Type: Integer
Unit:
/dev..../status/echowrite
Properties: Write
Type: Integer
Unit:
32 bits written to this node will be echoed back via ECHOREAD node.
/dev..../status/fifolevel
Properties: Read
Type: Double
Unit: Percent
/dev..../status/flags/adcclip/n
Properties: Read
Type: Integer (enumerated)
Unit: Boolean
/dev..../status/flags/binary
Properties: Read
Type: Integer (enumerated)
Unit: bit-coded
A binary representation of all flags. When multiple flags are set the values are or-ed.
1 "b0": PLL unlocked
2 "b1": HF clock unlocked
4 "b2": FX2 RX error
8 "b3": Package loss
16 "b4": Output 1 clipped
32 "b5": Output 2 clipped
64 "b6": Input 1 clipped
128 "b7": Input 2 clipped
256 "b8": Scope skipped a shot
512 "b9": FX2 TX buffer almost full
1024 "b10": 0
2048 "b11": PLL unlocked (version without de-bouncing)
4096 "b12": FX2 TX package lost
1048576 "b20": PLL 1 locked
2097152 "b21": PLL 2 locked
/dev..../status/flags/dcmlock
Properties: Read
Type: Integer (enumerated)
Unit: Boolean
Flag indicating if the internal digital clock manager (DCM) has locked.
0 DCM locked
1 DCM not locked
/dev..../status/flags/demodsampleloss
Properties: Read
Type: Integer (enumerated)
Unit: Boolean
/dev..../status/flags/fx2rx
Properties: Read
Type: Integer (enumerated)
Unit: Boolean
/dev..../status/flags/mixerclip/n
Properties: Read
Type: Integer (enumerated)
Unit: Boolean
/dev..../status/flags/pkgloss
Properties: Read
Type: Integer (enumerated)
Unit: Boolean
Flag indicating that the device lost data when sending via USB.
0 no packet loss
1 packets are lost
/dev..../status/flags/plllock
Properties: Read
Type: Integer (enumerated)
Unit: Boolean
Flag indicating if the internal PLL for clock generation has locked.
0 PLL locked
1 PLL not locked
/dev..../status/flags/scopeskipped
Properties: Read
Type: Integer (enumerated)
Unit: Boolean
Flag indicating that scope data has been skipped. This happens when too much data is being sent
over USB.
0 no data skipped
1 data skipped
/dev..../status/time
Properties: Read
Type: Double
Unit: s
7.2.17. SYSTEM
/dev..../system/activeinterface
Properties: Read
Type: String
Unit:
/dev..../system/extclk
Boolean value switching from internal to external clock. When using external clock, make sure that a
clock generator is connected to the Clock In connector.
0 Internal clock
1 External clock
/dev..../system/hwrevision
Properties: Read
Type: Integer
Unit:
/dev..../system/properties/negativefreq
Properties: Read
Type: Integer (enumerated)
Unit: Boolean
/dev..../system/properties/freqresolution
Properties: Read
Type: Integer
Unit: bits
/dev..../system/properties/maxfreq
Properties: Read
Type: Double
Unit: Hz
/dev..../system/properties/maxtimeconstant
Properties: Read
Type: Double
Unit: s
/dev..../system/properties/minfreq
Properties: Read
Type: Double
Unit: Hz
/dev..../system/properties/mintimeconstant
Properties: Read
Type: Double
Unit: s
/dev..../system/properties/timebase
Properties: Read
Type: Double
Unit: s
/dev..../system/syncenable
Boolean value enabling multi-device timestamp synchronization over ZSync. When synchronizing
timestamps between devices make sure that an appropriate cable is connected between the ZSync
ports of the leader and follower devices.
0 Default
1 Timestamp synchronization enabled
/dev..../system/syncreset
Boolean value activating timestamp reset over ZSync. When synchronizing timestamps between
devices make sure that an appropriate cable is connected between the ZSync ports of the leader
and follower devices.
0 Default
1 Timestamp reset activated
/dev..../system/synctime
Properties: Read
Type: Double
Unit: s
7.2.18. ZCTRLS
/dev..../zctrls/n/camp/available
Properties: Read
Type: Integer (enumerated)
Unit: Boolean
/dev..../zctrls/n/camp/dc
/dev..../zctrls/n/camp/gain
/dev..../zctrls/n/camp/r
/dev..../zctrls/n/camp/singleended
/dev..../zctrls/n/tamp/n/currentgain
/dev..../zctrls/n/tamp/n/dc
/dev..../zctrls/n/tamp/n/offset
/dev..../zctrls/n/tamp/n/voltagegain
/dev..../zctrls/n/tamp/available
Properties: Read
Type: Integer (enumerated)
Unit: Boolean
/dev..../zctrls/n/tamp/biasout
/dev..../zctrls/n/tamp/extbias
8. Real-time Option
The Real-time option provides the capability to execute programs written in the C programming
language on the RISC microprocessor of the HF2 Instrument with predictable latency and comes
with an extensive programming environment.
Note
RT programming can be used only if the HF2LI-RT / HF2IS-RT option has been purchased and
activated. This option is no further available for purchase from Zurich Instruments.
Note
The LabOne User Interface does not have a tab for configuring and working with the Real-time
Option. Please use the ziControl graphical user interface to use the Real-time Option and refer to the
ziControl Edition of the HF2 User Manual for more details.
Note
The Real-time Option programming reference guide is also available as HTML. The HTML
documentation is bundled with the Real-time installation zip-file available from the Zurich
Instruments download page.
Note
The RT development environment does not include a special editor. Please use an editor of your
choice, for example:
notepad++ or PSPad on Windows,
emacs, vim, etc. on Linux.
Software Requirements
To use the compilation tools on Windows the RT development environment requires the 32-bit
version of Cygwin which provides a Linux-like environment. Cygwin is free and open source software,
for more details see the Cygwin website. The only Cygwin package necessary is the make package.
Installation of Cygwin is also detailed below.
Note
Even if your PC is natively 64-bit, the 32-bit version of Cygwin is required to run the compiler tools
distributed with the RT development environment.
Installation Steps
1. Download the 32-bit version of Cygwin and run the Setup executable.
2. Go through the installation and, if possible, use default installation settings. There is one
mandatory development package that must be installed in addition to the default installation.
The package is called make. Select the package at the end of the installation. Select devel,
then package make and select it in order to install it (see screenshots below).
3. When the Cygwin installation has been finished, download the ziRTK software bundle and
unzip it in your Cygwin home folder.
The home folder is located at: [Cygwin installation path]\home
The default path is: C:\cygwin\home
4. Now open the Cygwin shell by clicking either by navigating to the Cygwin start menu entry or
by clicking on the Desktop icon.
5. Navigate into the extracted directory. The install script is called "install.sh".
cd ziRTK-Win-[VERSION]
6. Run the install script and go through the guided installation.
bash install.sh
Alternatively, you can also give executable rights to the install script and run it directly.
If possible, use default installation paths.
Note
You need not edit your code inside Cygwin, it’s just used for compilation and loading your real-time
programs onto the HF2 Instrument.
Software Requirements
Officially, only Ubuntu 10.04 LTS is supported, but it should be possible to run the tools on any recent
Linux distribution. The program GNU make is required to compile the examples. Since the RT tools
were compiled on a 32-bit architecture, you need the package ia32_libs installed on a 64-bit
architecture in order to execute 32-bit programs on a 64-bit architecture. On a Debian-based
system, both packages can be installed with:
Installation Steps
1. Before you begin with the ziRTK installation make sure that the development package "make"
is installed.
sudo apt-get install make
2. Extract the ziRTK bundle in a temporary directory.
tar xzf ziRTK-[build number]-linux.tar.gz
3. Navigate into the extracted directory. The install script is called "install.sh".
cd ziRTK-Linux-[VERSION]
4. Run the install script with root rights and go through the guided installation.
sudo bash install.sh
Alternatively, you can also give executable rights to the install script and run it directly.
If possible, use default installation paths.
[INSTALLPATH]/ziRTK/doc/html/index.html,
C:\cygwin\usr\share\zi\ziRTK-XX.XX\doc\html\index.html
on Windows or
/opt/zi/ziRTK/doc/html/index.html
on Linux.
9. Specifications
Warning
Unless otherwise stated, all specifications apply after 30 minutes of instrument warm-up.
Warning
Important changes in the specification parameters are explicitly noted in the revision history of this
document.
7–8 57 kSamples/s
Note
The sample readout rate is the rate at which demodulated samples are transferred from the
Instrument to the host computer. This rate has to be set to at least 2 times the signal bandwidth of
the related demodulator in order to satisfy the Nyquist sampling theorem. As the total rate is limited
by the USB interface, the maximum rate becomes smaller when the number of active demodulators
is increased. This is summarized in the table above for HF2LI / HF2PLL (6 demodulators) and HF2IS
(8 demodulators). An up-to-date and performing host computer is required to achieve these rates.
UHS (option) oscillator phase noise (at 100 Hz)3 –130 dBc/ – –
Hz
The DIO connector is a HD 68 pin connector, typically also used by SCSI-2 and SCSI-3 interfaces, 47
mm wide male connector. The DIO port features 16 bits that can be configured byte-wise as inputs
or outputs, as well as 16 input only bits. The digital signals follow the CMOS/TTL specification.
In order to suppress large signal components at line frequency and higher harmonics avoiding
ground loops within the measurement setup is required. Possible reasons for line frequency
components include parasitics resistances between the different signal grounds, inductive coupling
from line transformers and other electrical apparatus into the signal paths, and pre-amplifiers that
generate additional loops.
Counter measures are to break loops using differential wiring, by implementing star ground
connections in the measurement setup, with the main ground closest to the setup as possible,
connect all instrument casing to earth, and using optocouplers and transformers that provide a
galvanic decoupling in the signal path.
The grounding of the HF2 Instrument is implemented connecting analog ground and digital ground
in a star network. This reduces the digital ground noise that flows into the analog domain
considerably. All analog grounds are connected together before they are connected to the digital
ground (e.g. USB ground). All grounds are decoupled by the Earth by means of a 1 MΩ resistor, which
is however generally shorted by a PC connected by means of a USB cable. The earth connection of
the power plug connects at the same time the chassis and the banana plug on the rear Instrument
panel.
For applications that require floating ground, it is suggested to make use of the differential inputs by
connecting the BNC shield to the negative BNC connector. The limitation for this strategy is that the
floating ground should not exceed the specified maximum input common mode offset.
The first subsection describes the principles of lock-in amplification, followed by the description of
the function of discrete-time filters. After, we discuss the definition of the full range sensitivity, a
specification parameter particularly important for analog lock-in amplifiers but with somewhat
reduced importance for digital instruments. In the following, we describe the function and use of
sinc filtering in particular for low-frequency lock-in measurements. The last section is dedicated to
the zoom FFT feature. Innovative in the context of lock-in amplifiers, zoom FFT offers a fast and
high-resolution spectral analysis around the lock-in operation frequency.
Figure 10.1 shows a basic measurement setup: a reference VrV_r Vr signal is fed to the device under test.
This reference signal is modified by the generally non-linear device with attenuation, amplification,
phase shifting, and distortion, resulting in a signal V
Vs=Ascos(ωst+θs)V_s
s = As cos(ωs t + θs ) plus
= harmonic
A_s cos(\omega_s t + \theta_s)
components.
Figure 10.2: Mixing and low-pass filtering performed by the lock-in amplifier
The demodulated signal is then low-pass filtered with an infinite impulse response (IIR) RC filter,
indicated by the symbol ⟨⋅⟩ . The frequency response of the filter F(ω)F(\omega)
F (ω) will let pass the low
frequencies F F(ωs−ωr)F(\omega_s
(ωs − ωr ) \while considerably
- \omega_r)
attenuating the higher frequencies F F(ωs+ωr)F(\omega_s
(ωs + ωr ) . Another + \omega_
way to consider the low-passl filter is an averager.
a
X+iY=⟨Vs(t)⋅2e−iωrt⟩≈F(ωs−ωr)As2ei[(ωs−ωr)t+θ](9) As i[(ωs −ωr )t+θ]
X +niY = ⟨Vs (t) ⋅ 2e−iωr t ⟩ ≈ F (ωs − ωr\begin{equation}\tag{2}
) e X+iY (2)
= \langle V_s(t)
g 2
l
The result after the low-pass filter is the demodulated signal X+iYX+iY
X + iY , where X is the real and Y is the
imaginary part of a signaledepicted on the complex plane. These components are also called in-
\
phase and quadrature components. The transformation of X and Y into the amplitude R and phase θ\thetaθ
Vs (t) can c
information of Vs(t)V_s(t) be performed with trigonometric operations.
d
o the value of the measured signal corresponds to the RMS value of the
It is interesting to note that
signal, which is equivalent t to R
R=As/
= As / 2 .
\ 2R = A_s/\sqrt{2}
Most lock-in amplifiers output
r the values (X,Y) and (R, θ\theta
θ ) encoded in a range of –10 V to +10 V of the
auxiliary output signals. a
n
10.1.1. Lock-in Amplifier g Applications
l
e
Lock-in amplifiers are employed in a large variety of applications. In some cases the objective is
measuring a signal with good signal-to-noise ratio, and then that signal could be measured even
with large filter settings. In this context the word phase sensitive detection is appropriate. In other
applications, the signal is very weak and overwhelmed by noise, which forces to measure with very
narrow filters. In this context the lock-in amplifier is employed for signal recovery. Also, in another
context, a signal modulated on a very high frequency (GHz or THz) that cannot be measured with
standard approaches, is mixed to a lower frequency that fits into the measurement band of the lock-
in amplifier.
One example for measuring a small, stationary or slowly varying signal which is completely buried in
the 1/f noise, the power line noise, and slow drifts. For this purpose a weak signal is modulated to a
higher frequency, away from these sources of noise. Such signal can be efficiently mixed back and
measured in the baseband using a lock-in amplifier. In Figure 10.3 this process is depicted. Many
optical applications perform the up-mixing with a chopper, an electro-optical modulator, or an
acousto-optical modulator. The advantage of this procedure is that the desired signal is measured in
a spectral region with comparatively little noise. This is more efficient than just low-pass filtering the
DC signal.
The noise equivalent power bandwidth (NEPBW) is also a useful figure, and it is distinct from the
signal bandwidth. This unit is typically used for noise measurements: in this case one is interested in
the total amount of power that passes through a low-pass filter, equivalent to the area under the
solid curve in Figure 10.4. For practical reasons, one defines an ideal brick-wall filter that lets pass
the same amount of power under the assumption that the noise has a flat (white) spectral density.
This brick-wall filter has transmission 1 from DC to fNEPBW. The orange and blue areas in Figure 10.4
then are exactly equal in a linear scale.
The time constant is a parameter used to interpret the filter response in the time domain, and
relates to the time it takes to reach a defined percentage of the final value. The time constant of a
low-pass filter relates to the bandwidth according to the formula
FOTC=\frac{FO}{2\pi f_{cut-off}} \end{equation}
TC=FO2πfcut−off(10) \begin{equation}\tag{3}
TC = (3)
2πfcut−off
where FO is said factor that depends on the filter slope. This factor, along with other useful
conversion factors between different filter parameters, can be read from the following table.
Table 10.1: Summary of conversion factors for bandwidth definitions
filter order filter roll-off FO fcut-off fNEPBW fNEPBW / fcut-off
The response of that filter in the frequency domain is well approximated by the formula
H1(ω)=11+i⋅ω⋅τn(12) \begin{equation}\tag{5} 1
H_1(\omega)=\frac{1}{1+i\cdot\omega\cdot\tau_n} \
H1 (ω) = (5)
1 + i ⋅ ω ⋅ τn
The exponential filter is a first-order filter. Higher-order filters can easily be implemented by
cascading several filters. For instance the 4th order filter is implemented by chaining 4 filters with
the same time constant TC TC=τnTC
= τn one=after
\tau_nthe other so that the output of one filter stage is the
input of the next one. The transfer function of such a cascaded filter is simply the product of the
transfer functions of the individual filter stages. For an n-th order filter, we therefore have
The attenuation and phase shift of the filters can be obtained from this formula. Namely, the filter
∣Hn (ω)∣2 . The filter transmission phase is given
attenuation is given by the absolute value squared ∣Hn(ω)∣2|H_n(\omega)|^2
by the complex argument arg[H
arg[Hn(ω)]arg\lbrack
n (ω)] . H_n(\omega)\rbrack
Figure 10.5: Time-domain step response of the demodulator low-pass filter for orders
from 1 to 8.
More quantitative information on the settling time can be obtained from Table 10.2. In this table, you
find settling times in units of the 1st-order filter's time constant (TCTC
TC ) for all filter orders available
with the HF2 Lock-in Amplifier. The values tell the time you need to wait for the filtered demodulator
signal to reach 50%, 63%, 95% and 99% of the final value. This can help in making a quantitatively
correct choice of filter parameters for example in a measurement involving a parameter sweep.
The input range is the maximum signal amplitude that is permitted for a given range setting. The
signal is internally amplified with the suited factor, e.g. (1 mV)·1000 to result in a full swing signal at
the ADC. For signals larger than the range, the ADC saturates and the signal is distorted – the
measurement result becomes useless. Thus the signal should never exceed the range setting.
But the input range is not the same as the sensitivity. In digital lock-in amplifiers the sensitivity is
only determined by the output amplifier, which is an entirely digital signal processing unit which
performs a numerical multiplication of the demodulator output with the scaling factor. The digital
output of this unit is then fed to the output digital-to-analog converter (DAC) with a fixed range of 10
V. It is this scaling factor that can be retrofitted to specify a sensitivity as known from the analog
lock-in amplifiers. A large scaling factor, and thus a high sensitivity, comes at a relatively small
expense for digital amplification.
One interesting aspect of digital lock-in amplifiers is the connection between input resolution and
sensitivity. As the ADC operates with a finite resolution, for instance 14 bits, the minimum signal that
can be detected and digitized is for instance 1 mV divided by the resolution of the ADC. With 14 bits
the minimum level that can be digitized would be 122 nV. How is it possible to reach 1 nV sensitivity
without using a 21 bit analog-to-digital converter? In a world without noise it is not possible.
Inversely, thanks to noise and current digital technology it is possible to achieve a sensitivity even
below 1 nV.
Most sources of broadband noise, including the input amplifier, can be considered as Gaussian
noise sources. Gaussian noise is equally distributed in a signal, and thus generates equally
distributed disturbances. The noise itself can be filtered by the lock-in amplifier down to a level
where it does not impact the measurement. Still, in the interplay with the signal, the noise does have
an effect on the measurement. The input of the ADC is the sum of the noise and the signal
amplitude. Every now and then, the signal amplitude on top of the large noise will be able to toggle
the least significant bits even for very small signals, as low as 1 nV and below. The resulting digital
signal has a component at the signal frequency and can be detected by the lock-in amplifier.
There is a similar example from biology. Rod cells in the human eye permit humans to see in very low
light conditions. The sensitivity of rod cells in the human eye is as low as a single photon. This
sensitivity is achieved in low light conditions by a sort of pre-charging of the cell to be sensitive to
the single photon that triggers the cell to fire an impulse. In a condition with more surround light, rod
cells are less sensitive and need more photons to fire.
To summarize, in digital lock-in amplifiers the full range sensitivity is only determined by the scaling
factor capability of the digital output amplifier. As the scaling can be arbitrary big, 1 nV minimum full
range sensitivity is achievable without a problem. Further, digital lock-in amplifiers exploit the input
noise to heavily increase the sensitivity without impacting the accuracy of the measurement.
In practice, the lock-in amplifier will modulate DC offsets and non-linearities at the signal input with
the demodulation frequency, resulting in a signal at the demodulation frequency (called ω
component). This component is also effectively removed by the regular low-pass filters at
frequencies higher than 1 kHz.
At low demodulation frequencies, and especially for applications with demodulation frequencies
close to the filter bandwidth, the ω and 2ω components can affect the measurement result. Sinc
filtering allows for strong attenuation of the ω and 2ω components. Technically the sinc filter is a
comb filter with notches at integer multiples of the demodulation frequency (ω, 2ω, 3ω, etc.). It
removes the ω component with a suppression factor of around 80 dB. The amount of 2ω component
that gets removed depends on the input signal. It can vary from entirely (e.g. 80 dB) to slightly (e.g. 5
dB). This variation is not due to the sinc filter performance but depends on the bandwidth of the
input signal.
We can observe the effect of the sinc filter by using the Spectrum Analyzer Tool of the HF2 Lock-in
Amplifier. As an example, consider a 30 Hz signal with an amplitude of 0.1 V that demodulated using a
filter bandwidth of 100 Hz and a filter order 8. In addition 0.1 V offset is added to the signal so that we
get a significant ω component.
Figure 10.8 shows a spectrum with the sinc filter disabled, whereas for Figure 10.9 the sinc filter is
enabled. The comparison of the two clearly shows how the sinc options dampens both the ω and 2ω
components by about 100 dB.
Note
In order to put the notches of the digital filter to ω and 2ω, the sampling rate of the filter would have
to be precisely adjusted to the signal frequency. As this is technically not feasible, the generated
signal frequency is adjusted instead by a very small amount.
In order to illustrate why this is so and what benefits this measurement tool brings to the user, it is
useful to remind that at the end of the demodulation of the input signal V Vs(t)=Ascos(ωst+τ)V_s(t)=A_s
s (t) = As cos(ωs t + τ ) , cos(\om
the output signal is X + iY = F (ωs − ωr )(As / 2)ei[(ωs −ωr )t+τ ] where F(ω) is the frequency response
X+iY=F(ωs−ωr)
of the filters. (As/
2)ei[(ωs−ωr)t+τ]X+iY=F(\omega_s-\omega_r)(A_s/\sqrt{2})e^{i\lbrack (\omega_s-\o
Since the demodulated signal has only one component at frequency ωs–ωr, its power spectrum
2 2
(Fourier transform modulus squared) has a peak of height (∣A (∣As∣2/
s ∣ /2) ⋅ ∣F (ωs − ωr )∣ at ωs–ωr: this
2)⋅∣F(ωs−ωr)∣2(|A_s|^2/2)\cdot|F(\omega_s-\omega
tells us the spectral power distribution of the input signal at frequencies close to ωr within the
demodulation bandwidth set by the filters F(ω).
Note that:
the ability of distinguish between positive and negative frequencies works only if the Fourier
transform is done on X+iY. Had we taken X for instance, the positive and negative frequencies of
its power spectrum would be equal. The symmetry relation G(–ω)=G*(ω) holds for the Fourier
transform G(ω) of a real function g(t) and two identical peaks would appear at ±|ωs–ωr|.
one can extract the amplitude of the input signal by diving the power spectrum by |F(ω)|2, the
operation being limited by the numerical precision. This is implemented in LabOne and is
activated by the Filter Compensation button: with the Filter Compensation enabled, the
background noise appears white; without it, the effect of the filter roll-off becomes apparent.
The case of an input signal containing a single frequency component can be generalized to the case
of multiple frequencies. In that case the power spectrum would display all the frequency
components weighted by the filter transfer function, or normalized if the Filter Compensation is
enabled.
When dealing with discrete-time signal processing, one has to be careful about aliasing which
occurs when the signal frequencies higher than the sampling rate ω are not sufficiently suppressed.
Remember that ω is the user settable readout rate, not the 2 GSa/s sampling rate of the GHFLI
input. Since the discrete-time Fourier transform extends between –ω/2 and +ω/2, the user has to
make sure that at ±ω/2 the filters provide the desired attenuation: this can be done either by
increasing the sampling rate or resolving to measure a smaller frequency spectrum (i.e. with a
smaller filter bandwidth).
Similarly to the continuous case, in which the acquisition time determines the maximum frequency
resolution (2π/T
2π/ if T is the acquisition time), the resolution of the zoom FFT can be increased by
increasing the
T2 number
\pi/T of recorded data points. If N data points are collected at a sampling rate ω,
the discrete Fourier transform has a frequency resolution of ω/N.
The content of the chapter starts with the list of key features of the preamplifier, and continues with
sections including the specifications, the detailed functional description, several possible
applications, and finally an extended recommendation for 3rd party cables and connectors.
11.2. Specifications
Unless otherwise stated, all specifications apply after 30 minutes of device warming up.
Table 11.1: General
Parameter Description
dimensions 100 x 60 x 25 mm
weight 0.4 kg
storage temperature -20 °C to 65 °C
operating temperature 5 °C to 40 °C
Parameter Description
specification temperature 25 °C
specification supply voltage 12 V
connectors 4 SMB inputs, 2 SMB outputs, 1 RJ45 (no Ethernet)
small signal bandwidth / 3dB cut-off (0.1 VPP input, 50 pF output load, 25 MHz - -
gain 10)
large signal bandwidth / 3dB cut-off (1 VPP, 50 pF) 40 MHz - -
input
input voltage noise (10 kHz) - 7 nV/ -
√Hz
input voltage noise (10 MHz) - 6 nV/ -
√Hz
input bias current - 2 pA 10 pA
transimpedance gain (equivalent to input impedance) 10 V/A - 1 MV/A
transimpedance gain accuracy (G=1) - ±0.1 % -
transimpedance gain accuracy (G=10) - ±1 % -
input offset voltage - - 1 mV
common-mode offset range -10 V - 7.5 V
output
output voltage gain 1 - 10
control interface
input high level 2.0 V - 5V
input low level 0V - 0.8 V
all transitions on SDI, SDO, SCK, SLC - - 1 μs
SCK clock period 10 μs - -
SDI data to clock setup tDS 2 μs - -
The two signal channels of the HF2CA can be used as separate amplification channels, or
alternatively, in differential mode connected to the differential input of the HF2 Instrument.
JFET input amplifiers: the HF2CA is based on JFET input amplifiers that provide very low-noise over
a wide frequency range. Additionally, the ultra-low input bias current of typically 2 pA allows for
precise current measurements at small signal amplitudes. The input voltage range of the JFET input
amplifiers is -10 V to 7.5 V for each input which is also the common mode offset range.
Single vs. differential mode: a selectable switch to amplifier ground allows the user to earth the
negative terminal of each input and to operate in single-ended mode without needing external
circuits. Alternatively, when leaving the ground switches open, it is possible to use a differential
input signal or to connect the negative terminals to local ground externally.
AC vs. DC mode: a selectable switch after the input amplifiers allows the user to measure DC or
close to DC signals, or when this is not required, to select AC coupling with a cut-off frequency at 100
Hz and eliminate potential 50/60 Hz noise from the measured signal.
11.4. Applications
Impedance spectroscopy
Large capacitive loads
Wheatstone-bridge configuration
Preamplifier for HF2IS impedance spectroscope and HF2LI lock-in amplifier
The HF2CA in combination with the HF2IS impedance spectrometer is the solution to measure
impedance in, for example, flow-through microsystems. The challenge here is to measure the
channel impedance at high frequencies (>10 MHz). The large capacitance occurring at electrode
electrolyte interfaces can lead to stability issues in a transimpedance amplifier. A solution is to use
the electrodes in a Wheatstone bridge configuration with shunt resistors. The HF2CA offers this
solution.
As shown in the figure, electrodes are place on the channel walls of a microfluidic channel (width in
the order of 20 to 50 μm). Electrodes E1 and E2 are stimulated with a sinusoidal voltage, the
electrodes E3 and E4 are connected to the positive amplifier inputs and thus shunted to GND via
resistors R1 and R2. The resulting voltage drops across R1 and R2 are given by the channel
impedance. This impedance varies when a particle or a living cell passes the electrode area. An
analysis at multiple frequencies at the same time (which is supported by the HF2IS and the HF2CA)
allows for concurrently analyzing cell size and dielectric properties. With this information biologists,
e.g. sort their cells and detect cell viability or health.
standard values inside the preamplifier. All internal resistors need to be disconnected in this case,
which can be done using the standard preamplifier user interface.
The content of the chapter starts with the list of key features of the preamplifier, and continues with
sections including the specifications, the detailed functional description, several possible
applications, information how to test the specified performance, and finally an extended
recommendation for 3rd party cables and connectors.
12.2. Specifications
Unless otherwise stated, all specifications apply after 30 minutes of device warming up.
Table 12.1: General
parameter description
dimensions 101 x 78 x 23 mm
weight 0.4 kg
parameter description
storage temperature -20 °C to 65 °C
operating temperature 5 °C to 40 °C
specification temperature 25 °C
connectors 3 SMA inputs female, 3 SMA outputs female, 1 RJ45 (no Ethernet)
input
input current range depends on R1, R2, G1, G2
settings
input current noise depends on R1, R2, G1, G2
settings
input voltage noise (10 kHz) - 7 nV/ -
√Hz
input voltage noise (10 MHz) - 5 nV/ -
√Hz
input leakage current - 2 pA 20 pA
input voltage offset compensation range -10 mV - 10 mV
input impedance range (Z // 15 pF) 50 Ω - 70 kΩ
input bias voltage range -10 V - 10 V
input signal level (damage threshold) -5 V - 5V
output
output voltage gain (G1,G2) 1 - 10
transimpedance gain (R1,R2) 100 V/A - 100 MV/
A
transimpedance gain accuracy (R1,R2) - ±1 % -
digital control interface timing
input high level 2.2 V - 5V
input low level 0V - 0.8 V
all transitions on SDI, SDO, SCK, SLC - - 1 μs
SCK clock period 10 μs - -
SDI data to clock setup tDS 2 μs - -
The two signal channels of the HF2TA can be used as separate current amplification channels, or
alternatively, in differential mode connected to the differential input of the HF2 Instrument. The
channels settings can be set independently.
Voltage gain 1 or 10: the HF2TA offers a voltage gain of either 1 or 10 after the transimpedance
amplifier. This allows to optimize the signal-to-noise at small amplitudes and high bandwidths. The
transimpedance gain often has to be kept small in order to meet the required bandwidth. A voltage
amplifier helps in this case to improve the measurement quality.
JFET input amplifiers: the HF2TA is based on JFET input amplifiers that provide very low-noise over
a wide frequency range. Additionally, the ultra-low input bias current of typically 2 pA allows for
precise current measurements at small signal amplitudes. The input voltage range of the JFET input
amplifiers is -5 V to 2 V for each input which is also the common mode offset range.
Offset adjustment: the offset of the input amplifier can be manually compensated. For this purpose,
disconnect any signal from the input of the current amplifier and measure the output voltage.
Change the offset voltage until the output is close to zero. All remaining offset should now come
from other sources (like offset current or leakage from the device under test).
AC vs. DC mode: a selectable switch after the input amplifiers allows the user to measure DC
signals, or when this is not required, to select AC coupling with a cut-off frequency at around 10 Hz
to remove the DC offset. When working in AC, make sure that the first amplifier is not saturating. This
can be checked by switching to DC and gain 1.
Aux output: the HF2TA comprises a general purpose low-noise analog output. This output can be
used as a power supply for, e.g., photo diodes. The photo diode is connected to the auxiliary output
and the virtual ground of the input, no additional power supply is needed.
Signal shield voltage: the bias input connector can be used to apply a bias voltage to the signal
shield. This can be used, for instance, to power a remote sensor over the signal shield without
introducing an additional ground loop. If this option is not used, the signal shield should be
conveniently grounded with the control setting "Shield Voltage".
12.4. Applications
Low-noise and high-speed current amplification
Photo diode preamplifier
Impedance measurement
Semiconductor testing
Impedance spectroscopy
maximum input current range specified. With each recommended input impedance and G
setting, the maximum current will produce the maximum voltage swing of ±1 V at the output of
the HF2TA. At this level the input digitizer of the HF2 input channel will run close to its full
dynamic range which results in the optimal SNR.
low and high bandwidth measurement
HF2TA is specified to work up to the 3dB bandwidth of 50 MHz. Nevertheless, care must be taken
when selecting input impedance gain settings. Table 12.3 details as well the maximum 3dB signal
bandwidth for each gain setting. For example, with an input current containing frequency
components of less than 12 kHz in frequency, the maximum transimpedance gain of 100 MV/A
can be selected. At 50 MHz, only 100 V/A of transimpedance gain is available. G=10 can also be
selected as well if more gain is required at high input signal frequencies.
minimize cross-talk and parasitics effects
With the measured impedance placed closely to the input of the HF2TA and the HF2 device, four
point measurement setup can help to minimize parasitic effect as well as the noise pickups from
the cable. Furthermore, using shielded cable can greatly reduce the high frequency noise pickups
from the surrounding environment.
avoid HF2TA instability
Since HF2TA is a negative feedback amplifier, its feedback loop stability can be sensitive to input
capacitance, especially at low R settings. In order to avoid possible under-damped behavior (i.e.
oscillation) in the measurement, it is recommended to use as high as possible the selected
transimpedance gain R when measuring a capacitive circuit. A short cable to the HF2TA input can
also help to reduce the parasitic capacitance seen at the HF2TA input.
The second option provides a solution when it is necessary to apply a bias voltage across the photo
diode. For this purpose the auxiliary output of the HF2TA can be used. Voltages in the range of
+/-10V and currents up to 10 mA can be delivered by this connector. Alternatively the bias can be
provided by another voltage source.
The third option supports the drive of the photo diode by means of the shield of the signal cable.
This shield can be conveniently driven by the HF2TA by shorting the auxiliary output to the bias
input. This option permits the user to connect the remote sensor with one single coaxial cable and
while avoiding to introduce a ground loop in the system.
All HF2TA settings can be conveniently programmed inside the graphical user interface of the HF2
Instrument.
Figure 12.6: HF2TA photo diode amplifier with single coaxial cable
Note that the voltage measurement is made differentially through HF2CA then converted to
single-ended input to the HF2IS while the current measurement remains single-ended
throughout the current measurement path. Both HF2TA and HF2CA can be controlled using the
LabOne UI. When they are connected through Ethernet cables to the back of the HF2IS
instrument, LabOne will automatically add an HF2TA or HF2CA tab as shown in the screen shots
below.
Both HF2TA and HF2CA can operate in AC-coupled or DC input. The HF2TA has a high-pass cutoff
of 10 Hz while the HF2CA has a high-pass cutoff of 100 Hz. It is recommended that no R1 and R2
values are selected for the HF2CA to obtain maximum input impedance (i.e. no signal current loss
through the HF2CA input ports) and therefore the most accurate current measurement.
The HF2TA transimpedance amplifier has 2 analog input channels, 2 analog output channels and 1
external bias input and 1 auxiliary output. For the purpose of the following tests, the external bias
input will not be used. The test setup for one channel is equally valid for the other channel.
Definition
Setup
The HF2TA is connected to the HF2 Instrument via the Ethernet cable for the purpose of configuring
the HF2TA. The HF2 Instrument is not used for the measurement.
Table 12.6: HF2TA settings
Measurement
The DC leakage current can be estimated by subtracting the inherent DC offset VO1 of the amplifier
from the total offset VO2 due to both the internal offset and the input leakage. For this test the input
of the HF2TA is left open. Then the output is measured with a digital multimeter as shown . The input
offset VO1 can be estimated by setting the transimpedance resistor R to 1 k. The sum of the input
offset plus leakage VO2 can be estimated by setting the transimpedance resistor R to 100 M. Then,
the approximate leakage can be found by:
∣VO2 −VO1 ∣
IIleakage=∣VO2−VO1∣100
leakage = 100 M Ω MΩI_{leakage} = \frac{\left| V_{O2} - V_{O1} \right|}{100\ M\Omega}
Definition
The noise generated by the HF2TA transimpedance amplifier itself can be expressed as input
referred current noise. The following setup description enables users to verify through
measurement if their HF2TA units have indeed the same noise level as specified in Table 12.4
Setup
For this test the HF2TA transimpedance amplifier input is left open. The goal is to refer the total
contribution of out noise from the amplifier itself to the input and not from any other external
circuits. Since the input of the HF2TA is left open, it is only necessary to define the sweep range in
the HF2 instrument since no drive voltage is required.
The HF2 instrument settings for the test are given in the table below.
Table 12.7: HF2 instrument settings
Notice that Scale has been set to 1/R where R is the HF2TA transimpedance value. This is to obtain
the noise current referred back to input.
Measurement
The Sweeper will be used for the measurement with the following settings:
Table 12.8: Frequency sweeper settings
To have LabOne choose suitable filtering, averaging, and display settings, simply choose Noise
Amplitude Sweep as the Application in the Settings sub-tab. Set Precision to High and start the
sweep to measure the noise over the specified frequency. After division by the HF2TA
transimpedance gain, the result can then be compared to the values in the input referred noise
table.