Personal tools
You are here: Home Device classes Abstract classes Oscilloscope Oscilloscope
Log in


Forgot your password?
 

Oscilloscope

Abstract class for Oscilloscopes

This type of instruments can be very complicated to use because the huge number of functionalities, but also so simple because the subgroup generally used can be so small.

The oscilloscopes has the peculiarity of the channels, this is a variable number but usually is 4. Then the number of attributes can be increased or decreased and Dynamic attributes seems to be a goo solution.

Version 2

An example of this can be found in the tango-ds svn, is part of a bigger device server wrapper.

Commands

The following commands must be implemented:
  1. Start - Open the communication to the instrument (state = ON if the instrument is there, anything else state = FAULT)
  2. Stop - Close the instance to the instrument.
  3. Reset - If the established communication has some problem it is reestablished with the same situation. ("Stop-Start" will clean the environment).
  4. OpenCh -With a number as an argument opens the corresponding channel, like press the button in the front panel of the instrument.
  5. CloseCh -Similar to the OpenCh, but to close the acquisition on the channel for the corresponding number in the argin.

Attributes

the following attributes must be implemented:
  • Scalar:
Attribute
TypeAccess Description
    
 HScale doubleRW Time base scale.
 CurrentSampleRate doubleRO Oscilloscope characteristic.
Some more attributes was here in version 1, but not all of them are available in all the oscilloscope. The abstract class as a generalization, has to avoid them.
  • Dynamic Attibutes:
Attribute
TypeFormat
Access Description
  
  
 ScaleChNdoublescalar
RW
 
 OffsetChN doublescalar
RW
 
 ImpedanceChN doublescalar
RO
 Some times it can be RW, but not all the scope supports this change
 ChannelN doublespectrum
RO
 
With the letter 'N' it's mean the number as argin refereed as a channel number.

States

The following states must be implemented :

  1. ON - The instrument is on and running.
  2. OFF - There is no open comunication to the instrument, but the device is running.
  3. FAULT - something on the oscilloscope was wrong.

Concrete Classes

The following device servers implement the Oscilloscope Abstract interface :



Version 1

Commands

The following commands must be implemented :

  1. Start - Open the communication to the instrument (state = ON if the instrument is there, anything else state = FAULT)
  2. Stop - Close the instance to the instrument.
  3. Reset - If the established communication has some problem it is reestablished with the same situation. ("Stop-Start" will clean the environment).

Attibutes

The following attributes must be implemented :

  • Scalar:
Attribute
TypeAccess Description
    
 HOffsetshortRW Time base offset.
 HScale doubleRW Time base scale.
 Delay shortRO 
 CurrentSampleRate doubleRO Oscilloscope characteristic.

  • Spectrum:
Attribute
TypeAccess Description
    
 ImpedancesdoubleRW
 The impedance value of each channel.
 VOffset double RW  The vertical offset of each channel.
 VScale doubleRW The volts per division of each channel.

  • Image:
Attribute
TypeAccess Description
    
 Channelsdouble
RO
This represents the spectrums of all channels.

States

The following states must be implemented :

  1. ON - The instrument is on and running.
  2. OFF - There is no open comunication to the instrument, but the device is running.
  3. FAULT - something on the oscilloscope was wrong.

Concrete Classes

The following device servers implement the Oscilloscope Abstract interface :

Clients

The following client programs depend on the Ccd interface :

  • _

Contact

Please contact Sergi Blanch (sblanch at cells dot es) if you want to make proposals to change this interface or have questions about it.

Document Actions