Waveform is a collection of segments that can be saved and loaded to/from a wave file.
Properties:
AmplitudeMax : Double – Returns or sets the waveform maximum amplitude value.
AmplitudeMin : Double – Returns or sets the waveform minimum amplitude value.
Description : String – Returns or sets the waveform description.
Name : String – Returns or sets the waveform identifier name.
Points([in] Long lPoint, [in] enumWPointsDataType enPointsDataType = WPointsDataTypeSignedShort]) : Variant – Returns the waveform data point at the specified index.
PointsCount : Long – Returns the waveform number of data points. For the GX1100 this number can be (1 to 2M points).
QuantizationBits : Long – Returns or sets the waveform quantization bits. For the GX1120 use 12 bits, for the GX1120 use 16 bits .
SamplingRate : Double – Returns or sets the waveform generator sampling rate. For GX1100 use a number up from 0.01 to 100,000,000 (10 mS/s – 100 MS/s).
SegmentCount : Long – Returns the waveform number of segments.
Segment (Variant vrNameOrIndex) : WSegment – Returns the specified waveform segment.
Methods:
GetPoints([in] Long lPointStart, [in, out] Long * plPoints, [out] Variant * pvaPoints, [enumWPointsDataType enPointsDataType = WPointsDataTypeSignedShort]) – Returns the waveform data points array.
SetPoints([in] Long lPointStart, [in] Long lPoints, [in] Variant vaPoints, [in] enumWPointsDataType enPointsDataType = WPointsDataTypeSignedShort]) – Sets the waveform data points to the specified array.
DeleteSegment([in] Variant vrNameOrIndex): Bool – Deletes the specified waveform segment.
InsertSegment([in] Variant vrNameOrIndex, [in] String sName=”Segment1”, [in] Long lPoints=1000, [in] String sFormula=”Sin(x)) : WSegment – Inserts a new segment into the waveform.
Open([in] String sFileName) : Bool – Opens and reads a waveform file.
Save() : Bool – Saves the waveform to a file.
SaveAs([in] String sFileName) : Bool – Save the waveform to a new file.