Code Monkey home page Code Monkey logo

pypxi's Introduction

# This is a python package for controlling Keysight PXI-base instrument.
# This module integrates PXI library which is developed by Keysight to Python environment,
# so as you can develop PXI function for instrument under Python environment.


Prerequisite:

1. Please install Keysight IO Library, version newer than 2019

https://www.keysight.com/zh-TW/pd-1985909/io-libraries-suite?pm=DL&nid=-33330.977662&cc=TW&lc=cht

2. Please install Keysight PXI driver

https://www.keysight.com/main/software.jspx?ckey=3085523&lc=cht&cc=TW&nid=-32203.1280160&id=3085523


Usages:

from .pxi import *

VISESSION = KtM960x_InitWithOptions("PXI0::5-0.0::INSTR", True, True, "")  # Initialize PXI instrument
KtM960x_SetAttributeViInt32(VISESSION, "", KTM960X_ATTR_MEASUREMENT_ARM_COUNT, 21)  # set a number to an attribute
res = KtM960x_GetAttributeViInt32(VISESSION, "", KTM960X_ATTR_MEASUREMENT_ARM_COUNT)  # get value from attribute
print(res)  # output 21
KtM960x_close(VISESSION)  # close PXI session


Update:

Currently, I transform the following function, others will keep updating.

KtM960x_InitWithOptions
KtM960x_GetAttributeViString
KtM960x_SetAttributeViString
KtM960x_GetAttributeViInt32
KtM960x_SetAttributeViInt32
KtM960x_close
KtM960x_GetAttributeViReal64
KtM960x_SetAttributeViReal64
KtM960x_GetAttributeViBoolean
KtM960x_SetAttributeViBoolean
KtM960x_Initiate
KtM960x_TransientInitiate
KtM960x_SystemWaitForOperationComplete
KtM960x_MeasurementMeasure
KtM960x_reset
KtM960x_MeasurementFetchArrayData


pypxi's People

Contributors

ukyen8 avatar

Stargazers

 avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.