LibTiePie  0.9.16
Library for interfacing TiePie engineering instruments
Migrate from InstrumentDLL

Major differences

Error reporting

Most Instrument DLL functions return an error code, in LibTiePie an internal status flag is set, indicating how the function was executed. Use LibGetLastStatus for testing if the last function was executed succesfully.

Open instrument (InitInstrument)

LibTiePie supports the use of multiple and/or combined instruments using the same library. To use an instrument it is required to open an handle to the instrument. Please read the using LibTiePie and device list sections.

Functions

Instrument DLL LibTiePie Notes
InitInstrument See Open instrument (InitInstrument)
ExitInstrument ObjClose
GetCalibrationDate DevGetCalibrationDate
GetSerialNumber DevGetSerialNumber
GetAvailableSensitivities ScpChGetRanges
GetAvailableResolutions ScpGetResolutions
GetNrChannels ScpGetChannelCount
GetMaxSampleFrequencyF ScpGetSampleFrequencyMax
GetMaxRecordLength ScpGetRecordLength
GetDCLevelStatus Not supported LibTiePie doesn't support instruments with DC offset adjustment.
ADC_Start ScpStart
ADC_Running ScpIsRunning
ADC_Abort ScpStop
ADC_ForceTrig ScpForceTrigger
ADC_Triggered ScpIsTriggered
ADC_Ready ScpIsDataReady
ADC_GetDataCh ScpGetDataRaw
ADC_GetDataVoltCh ScpGetData
GetDigitalInputValues Not supported LibTiePie doesn't support instruments with digital inputs.
GetOneDigitalValue
SetResolution ScpSetResolution
GetResolution ScpGetResolution
SetInstrumentConfig Not supported
GetMeasureMode No direct replacement Use ScpChGetEnabled
SetMeasureMode Use ScpChSetEnabled
GetChEnabled ScpChGetEnabled
SetChEnabled ScpChSetEnabled
GetRecordLength ScpGetRecordLength
SetRecordLength ScpSetRecordLength
GetPostSamples No direct replacement Use ScpGetRecordLength and ScpGetPreSampleRatio.
SetPostSamples Use ScpSetRecordLength and ScpSetPreSampleRatio.
GetSampleFrequencyF ScpGetSampleFrequency
SetSampleFrequencyF ScpSetSampleFrequency
GetExternalClock ScpGetClockSource Values:
Instrument DLLLibTiePie
0 CS_INTERNAL
1 CS_EXTERNAL
SetExternalClock ScpSetClockSource
GetSensitivity ScpChGetRange
SetSensitivity ScpChSetRange
GetAutoRanging ScpChGetAutoRanging
SetAutoRanging ScpChSetAutoRanging
GetCoupling ScpChGetCoupling Values:
Instrument DLLLibTiePie
lctAC CK_ACV
lctDC CK_DCV
SetCoupling ScpChSetCoupling
GetDcLevel Not supported LibTiePie doesn't support instruments with DC offset adjustment.
SetDcLevel
GetTriggerTimeOut ScpGetTriggerTimeOut
SetTriggerTimeOut ScpSetTriggerTimeOut
GetTriggerSource No direct replacement Use ScpChTrGetEnabled and/or DevTrInGetEnabled
SetTriggerSource Use ScpChTrSetEnabled and/or DevTrInSetEnabled
GetTriggerSources Use ScpChHasTrigger
GetTriggerSourceOR Use ScpChTrSetEnabled and/or DevTrInSetEnabled
SetTriggerSourceOR Use ScpChTrSetEnabled and/or DevTrInSetEnabled
GetTriggerSourceAND Not supported LibTiePie doesn't support AND triggering.
SetTriggerSourceAND
GetTriggerMode ScpChTrGetKind Values:
Instrument DLLLibTiePie
ltmRising TK_RISINGEDGE
ltmFalling TK_FALLINGEDGE
ltmInWindow TK_INWINDOW
ltmOutWindow TK_OUTWINDOW
ltmTVLine Not supported
ltmTVFieldOdd
ltmTVFieldEven
GetTriggerModeCh
SetTriggerMode ScpChTrSetKind
SetTriggerModeCh
GetTriggerLevel ScpChTrGetLevel
SetTriggerLevel ScpChTrSetLevel
GetTriggerHys ScpChTrGetHysteresis
SetTriggerHys ScpChTrSetHysteresis
GetPXITriggerEnables Not supported LibTiePie doens't support PXI instruments.
SetPXITriggerEnables
GetPXITriggerSlopes
SetPXITriggerSlopes
SetDigitalOutputs Not supported LibTiePie doens't support any instrument with digital outputs.
GetDigitalOutputs
GetSquareWaveGenStatus Not supported LibTiePie doens't support any instrument with a square wave generator.
GetSquareWaveGenFrequency
SetSquareWaveGenFrequency
GetFunctionGenStatus No direct replacement Check device list for available generators.
GetFuncGenMaxAmplitude GenGetAmplitudeMax
GetFuncGenMaxAmplitudeCh
GetFuncGenOutputOn GenGetOutputOn
GetFuncGenOutputOnCh
SetFuncGenOutputOn GenSetOutputOn
SetFuncGenOutputOnCh
GetFuncGenEnable GenIsRunning
GetFuncGenEnableCh
SetFuncGenEnable No direct replacement Use GenStart and GenStop.
SetFuncGenEnableCh
GetFuncGenSignalType GenGetSignalType Values:
Instrument DLLLibTiePie
lstSine ST_SINE
lstTriangle ST_TRIANGLE
lstSquare ST_SQUARE
lstDC ST_DC
lstNoise ST_NOISE
lstArbitrary ST_ARBITRARY
GetFuncGenSignalTypeCh
SetFuncGenSignalType GenSetSignalType
SetFuncGenSignalTypeCh
GetFuncGenMode GenGetFrequencyMode Values:
Instrument DLLLibTiePie
lfmDDS FM_SIGNALFREQUENCY
lfmLinear FM_SAMPLEFREQUENCY
GetFuncGenModeCh
SetFuncGenMode GenSetFrequencyMode
SetFuncGenModeCh
GetFuncGenAmplitude GenGetAmplitude
GetFuncGenAmplitudeCh
SetFuncGenAmplitude GenSetAmplitude
SetFuncGenAmplitudeCh
GetFuncGenDCOffset GenGetOffset
GetFuncGenDCOffsetCh
SetFuncGenDCOffset GenSetOffset
SetFuncGenDCOffsetCh
GetFuncGenSymmetry GenGetSymmetry
GetFuncGenSymmetryCh
SetFuncGenSymmetry GenSetSymmetry
SetFuncGenSymmetryCh
GetFuncGenFrequency GenGetFrequency
GetFuncGenFrequencyCh
SetFuncGenFrequency GenSetFrequency
SetFuncGenFrequencyCh
SetFuncGenTrigSource
GetFuncGenTrigSourceCh
GetFuncGenTrigSource
SetFuncGenTrigSourceCh
FillFuncGenMemory GenSetData or GenSetDataRaw
FillFuncGenMemoryCh
FuncGenBurst GenSetBurstCount Generator mode must be set to GM_BURST_COUNT using GenSetMode.
FuncGenBurstCh
GetFunctionGeneratorCount No direct replacement See device list.
SetupOhmMeasurements
GetOhmValues
I2CWrite I2CWrite
I2CWriteNoStop
I2CWriteCh
I2CWriteNoStopCh
I2CRead I2CRead
I2CReadNoStop
I2CReadCh
I2CReadNoStopCh
I2CGetSpeed I2CGetSpeed
I2CGetSpeedCh
I2CSetSpeed I2CSetSpeed
I2CSetSpeedCh
StartMeasurement
GetMeasurement
GetMeasurementCh
GetMeasurementRaw
GetMeasurementRawCh
GetOneMeasurement
GetOneMeasurementCh
GetOneMeasurementRaw
GetOneMeasurementRawCh
ADC_GetData
ADC_GetDataVolt
GetMaxSampleFrequency
GetSampleFrequency
SetSampleFrequency
SetDataReadyCallback ObjSetEventCallback
SetDataReadyEvent ObjSetEventEvent
SetTransferMode ScpSetMeasureMode Values:
Instrument DLLLibTiePie
ltmBlock MM_BLOCK
ltmStream MM_STREAM
GetTransferMode ScpGetMeasureMode