WriterWriteNextRecordBinary32(Stream, Schema, Ticks, Double, UInt32, Boolean, UInt16) Method
Writes next COMTRADE record in binary32 format.
Namespace: Gemstone.COMTRADEAssembly: Gemstone.COMTRADE (in Gemstone.COMTRADE.dll) Version: 1.0.128 -- Release Build+c1068d6f7b1cbea5c860803b7fe23d1a1d3918a0
Public Shared Sub WriteNextRecordBinary32 (
output As Stream,
schema As Schema,
timestamp As Ticks,
values As Double(),
sample As UInteger,
Optional injectFracSecValue As Boolean = true,
Optional fracSecValue As UShort = 0
)
Gemstone.COMTRADE.Writer.WriteNextRecordBinary32 = function(output, schema, timestamp, values, sample, injectFracSecValue, fracSecValue);
Parameters
- output Stream
- 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.
- 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.
This function is primarily intended to write COMTRADE binary32 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).