This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #! /usr/bin/env python3 | |
| import pyvisa as visa | |
| def main(): | |
| # Connect to the device | |
| rm = visa.ResourceManager() | |
| instrument = rm.open_resource("TCPIP0::192.168.10.94::inst0::INSTR") # replace with IP address of your device | |
| instrument.timeout = 200000 | |
| device_id = instrument.query("*IDN?") | |
| print(device_id) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import pyvisa as visa | |
| def main(): | |
| ip = "192.168.10.13" | |
| device = visa.ResourceManager().open_resource(f"TCPIP0::{ip}::INSTR") | |
| device_id = device.query("*IDN?") | |
| print(f"Device ID: {device_id}") | |
| date = device.query(":SYST:DATE?") | |
| print("Date:", date) | |
| time = device.query(":SYST:TIME?") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #! /usr/bin/env python3 | |
| import pyvisa as visa | |
| from serial.serialutil import SerialException | |
| import time | |
| def main(): | |
| # Get list of connected devices | |
| rm = visa.ResourceManager() | |
| device_list = {} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #! /usr/bin/env python3 | |
| import pyvisa as visa | |
| from serial.serialutil import SerialException | |
| def main(): | |
| # Get list of connected devices | |
| rm = visa.ResourceManager() | |
| device_list = {} | |
| for device_name in rm.list_resources(): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #! /usr/bin/env python3 | |
| import pyvisa as visa | |
| from serial.serialutil import SerialException | |
| from decimal import Decimal, getcontext | |
| def main(): | |
| # Get list of connected devices | |
| rm = visa.ResourceManager() | |
| device_list = {} | |
| for device_name in rm.list_resources(): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import argparse | |
| import csv | |
| def main(): | |
| parser = argparse.ArgumentParser() | |
| parser.add_argument("-i", "--input", help="Input file", required=True) | |
| parser.add_argument("-o", "--output", help="Output file", required=True) | |
| args = parser.parse_args() | |
| data_length = 0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #! /usr/bin/env python3 | |
| import pyvisa as visa | |
| from serial.serialutil import SerialException | |
| def main(): | |
| # Get list of connected Siglent devices | |
| rm = visa.ResourceManager() | |
| device_list = {} | |
| for device_name in rm.list_resources(): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import csv | |
| import argparse | |
| # this function will remove the first row and first column from the csv file | |
| def remove_first_row_and_first_column(input_file): | |
| temp_csv = [] | |
| with open(input_file, 'r') as f: | |
| reader = csv.reader(f) | |
| # remove the first row |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #! /usr/bin/env python3 | |
| import visa | |
| def main(): | |
| # Get list of connected Rigol devices | |
| rm = visa.ResourceManager() | |
| device_list = {} | |
| for device_name in rm.list_resources(): | |
| device_id = "" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| bl_info = { | |
| "name": "Papagayo-NG 2D Importer", | |
| "author": "Stefan Murawski", | |
| "version": (0, 0, 1), | |
| "blender": (2, 80, 0), | |
| "location": "3D window > Tool Shelf", | |
| "description": "Create GreasePencil Object with Layers and Keyframes from Papagayo-NG .pg2 files.", | |
| "warning": "", | |
| "wiki_url": "" | |
| "Scripts/Import-Export/Papagayo 2D Importer", |
NewerOlder