|
WriterWriteNextRecordAscii(StreamWriter, Schema, Ticks, Double, UInt32, Boolean, UInt16) Method
|
Writes next COMTRADE record in ASCII format.
Namespace: GSF.COMTRADEAssembly: GSF.COMTRADE (in GSF.COMTRADE.dll) Version: 2.4.205-beta
Syntax static member WriteNextRecordAscii :
output : StreamWriter *
schema : Schema *
timestamp : Ticks *
values : float[] *
sample : uint32 *
?injectFracSecValue : bool *
?fracSecValue : uint16
(* Defaults:
let _injectFracSecValue = defaultArg injectFracSecValue true
let _fracSecValue = defaultArg fracSecValue 0
*)
-> unit
GSF.COMTRADE.Writer.WriteNextRecordAscii = function(output, schema, timestamp, values, sample, injectFracSecValue, fracSecValue);
View SourceParameters
- output StreamWriter
- Destination stream.
- schema Schema
- Source schema.
- timestamp Ticks
- Record timestamp (implicitly castable as DateTime).
- values Double
- Values to write - 16-bit digitals should exist as a word in an individual double value, method will write out bits.
- sample UInt32
- User incremented sample index.
- injectFracSecValue Boolean (Optional)
- Determines if FRACSEC value should be automatically injected into stream as first digital - defaults to true.
- fracSecValue UInt16 (Optional)
- FRACSEC value to inject into output stream - defaults to 0x0000.
Remarks
This function is primarily intended to write COMTRADE ASCII data records based on synchrophasor data
(see Annex H: Schema for Phasor Data 2150 Using the COMTRADE File Standard in IEEE C37.111-2010),
it may be necessary to manually write records for other COMTRADE needs (e.g., non 16-bit digitals).
See Also