.

Average: 0
Rating Count: 0

Development status: New development
Information status: Updated
Repository: http://svn.code.sf.net/p/tango-ds/code/DeviceClasses/Communication/PyVisaDS
Contact:



Class Description


This class wraps the PyVisa python package from
http://pyvisa.sourceforge.net/ so it can be used as a device server for GPIB / Serial / Ethernet / ... devices

Families: Communication

Key words:

Language: Python

License:

Contact:

Class interface


Attributes:

Name Description
TimeoutScalar: DevFloat
ChunkSizeScalar: DevShort
ValuesFormatScalar: DevString
TermCharsScalar: DevString
SendEndScalar: DevBoolean
DelayScalar: DevFloat

Commands:

Name Description
StateInput: DevVoid
Output: State
This command gets the device state (stored in its device_state data member) and returns it to the caller.
StatusInput: DevVoid
Output: DevString
This command gets the device status (stored in its device_status data member) and returns it to the caller.
OpenInput: DevVoid
Output: DevVoid
Open the VISA device
CloseInput: DevVoid
Output: DevVoid
Close the VISA device
WriteInput: DevVarCharArray
Output: DevVoid
Write a string to the VISA device
ReadInput: DevUShort
Output: DevVarCharArray
Read the given amount of characters.
ReadLineInput: DevVoid
Output: DevVarCharArray
Read data until the end
ReadValuesInput: DevVoid
Output: DevVarFloatArray
Perform a read command and parses the result finding the different values. It uses the ValuesFormat attribute. If you want to use another format for a specific answer, please, set the ValuesFormat before. Possible formats are: ascii (default), singe, double
AskInput: DevVarCharArray
Output: DevVarCharArray
Perform a write command and return the answer from the device.
AskValuesInput: DevVarCharArray
Output: DevVarFloatArray
Perform a write command and return the answer from the device parsed to have a list of values using the attribute ValuesFormat. If you want to use another format for a specific answer, please, set the ValuesFormat before. Possible formats are: ascii (default), singe, double
ResetInput: DevVoid
Output: DevVoid
Performs a reset to the device
TriggerInput: DevVoid
Output: DevVoid
Send a trigger signal to the device

Pipes:

Properties:

Name Description
VisaNameDevString The name of the device understood by the VISA library


Please log in to comment.

22 Feb 2018, DS Admin
Updated:
The device class has been updated.
You can see previous version here .



20 Apr 2017, Piotr Goryl
Updated:
The device class has been updated.
You can see previous version here .



23 Feb 2017, Piotr Goryl
Created:
The device class has been added to catalogue.
Added by:pgoryl2 on:23 Feb 2017, 9:53 a.m.