C# Class MDT.NetLibHantek.ManagedHTMarch

Mostrar archivo Open project: RedPaladin/DotNetHantek

Public Methods

Method Description
Calibrate ( THantekTimeDivision timeDiv, THantekVoltDivision voltDivCH1, THantekVoltDivision voltDivCH2, short &level ) : bool
ConvertReadData ( short buffer, double scale_points = 32.0 ) : double[]

Helper function for converting the data taken from the scope into its true analog representation. Takes input from scope data, and the scaling factor, with the optional number of points in the scaling division.

GetCalibrationLevel ( ) : short[]
ManagedHTMarch ( ushort deviceIndex ) : System
ReadHardData ( short &bufferCH1, short &bufferCH2, uint nReadLine, short level, THantekTrigSweep trigSweep, THantekChannelNumber trigSource, short trigLevel, THantekTriggerSlope trigSlope, short HTrigPosition, uint drawLength, uint &trigPoint, THantekInsertMode insertMode ) : bool
SetCalibrationLevel ( short level ) : bool
SetTimeDivision ( THantekTimeDivision timeDiv ) : bool
SetVoltageDivision ( THantekChannelNumber channelNumber, THantekVoltDivision voltDiv ) : bool

Private Methods

Method Description
OpenDevice ( ushort device ) : bool
dsoCalibrate ( ushort nDeviceIndex, int nTimeDIV, int nCH1VoltDIV, int nCH2VoltDIV, short pCalLevel ) : short
dsoGetCalLevel ( ushort deviceIndex, short level, short nLen ) : short
dsoOpenDevice ( ushort deviceIndex ) : short
dsoReadHardData ( ushort deviceIndex, short pCH1Data, short pCH2Data, uint nReadLen, short pCalLevel, int nCH1VoltDIV, int nCH2VoltDIV, short nTrigSweep, short nTrigSrc, short nTrigLevel, short nSlope, int nTimeDIV, short nHTrigPos, uint nDisLen, uint nTrigPoint, short nInsertMode ) : short
dsoSetCalLevel ( ushort deviceIndex, short level, short nLen ) : short
dsoSetTimeDIV ( ushort deviceIndex, int nTimeDIV ) : short
dsoSetVoltDIV ( ushort deviceIndex, int nCH, int nVoltDIV ) : short

Method Details

Calibrate() public method

public Calibrate ( THantekTimeDivision timeDiv, THantekVoltDivision voltDivCH1, THantekVoltDivision voltDivCH2, short &level ) : bool
timeDiv THantekTimeDivision
voltDivCH1 THantekVoltDivision
voltDivCH2 THantekVoltDivision
level short
return bool

ConvertReadData() public method

Helper function for converting the data taken from the scope into its true analog representation. Takes input from scope data, and the scaling factor, with the optional number of points in the scaling division.
public ConvertReadData ( short buffer, double scale_points = 32.0 ) : double[]
buffer short Array of analog values read from the scope.
scale_points double
return double[]

GetCalibrationLevel() public method

public GetCalibrationLevel ( ) : short[]
return short[]

ManagedHTMarch() public method

public ManagedHTMarch ( ushort deviceIndex ) : System
deviceIndex ushort
return System

ReadHardData() public method

public ReadHardData ( short &bufferCH1, short &bufferCH2, uint nReadLine, short level, THantekTrigSweep trigSweep, THantekChannelNumber trigSource, short trigLevel, THantekTriggerSlope trigSlope, short HTrigPosition, uint drawLength, uint &trigPoint, THantekInsertMode insertMode ) : bool
bufferCH1 short
bufferCH2 short
nReadLine uint
level short
trigSweep THantekTrigSweep
trigSource THantekChannelNumber
trigLevel short
trigSlope THantekTriggerSlope
HTrigPosition short
drawLength uint
trigPoint uint
insertMode THantekInsertMode
return bool

SetCalibrationLevel() public method

public SetCalibrationLevel ( short level ) : bool
level short
return bool

SetTimeDivision() public method

public SetTimeDivision ( THantekTimeDivision timeDiv ) : bool
timeDiv THantekTimeDivision
return bool

SetVoltageDivision() public method

public SetVoltageDivision ( THantekChannelNumber channelNumber, THantekVoltDivision voltDiv ) : bool
channelNumber THantekChannelNumber
voltDiv THantekVoltDivision
return bool