Initiating The Hvi Application - Keysight Technologies M5302A Startup Manual

Pxie lvds digital io modules; 28 lvds channels, 8 trigger io
Table of Contents

Advertisement

3
Setting up the M5302x software

3.5.3: Initiating the HVI Application

76
As mentioned earlier, the KS2201A PathWave Test Sync Executive
software is not a standalone software. It enhances the Keysight M5302x
API to support HVI technology by adding the DLL files required for Python
libraries. After you install the KS2201A PathWave Test Sync Executive
software, you can find the library in C:\Program Files\Keysight\HVI\api\
python\keysight_pathwave_hvi.
The HVI API within the KS2201A PathWave Test Sync Executive software
consists of classes that provide native HVI functionalities that are common
across any measurement instrument deployed within an HVI system.
HVI programming is supported with Python version 3.7 only.
NOTE
To use the HVI API in Python, import the HVI API Python package that is
included with the HVI installer. This will be your first part of your code in
each of your files. Unless this package is imported, the HVI API will not be
found.
The following work flow, using Python commands, shows how to add HVI
library to an application and create an HVI instance.
1
Import required system components and python libraries (as needed).
Examples:
import sys
import os
import numpy as np # For keysight_ktm5302x arrays
2
Import the M5302x Python library for programming the M5302A card.
Example:
import keysight_ktm5302x as m5302x
3
Import the HVI library to create an HVI instance.
Example:
import keysight_hvi as kthvi
4
Create KtHvi instance
Example:
module_resource_name = 'KtHvi'
hvi = kthvi.Hvi(module_resource_name)
5
Add each engine to the KtHvi instance
Example:
M5302A PXIe LVDS Digital IO Modules Startup Guide

Advertisement

Table of Contents
loading

Table of Contents