Gemstone COMTRADE Library
Show/Hide TOC

# WriterWriteNextRecordBinary32(Stream, Schema, Ticks, Double, Boolean, UInt32, Boolean, UInt16) Method

Writes next COMTRADE record in binary32 format.

## Definition

Namespace: Gemstone.COMTRADE
Assembly: Gemstone.COMTRADE (in Gemstone.COMTRADE.dll) Version: 1.0.141 -- Release Build+78b9295d567a463860b78c894a6e3af01c4ff9b4
C#
View Source Request Example

    public static void WriteNextRecordBinary32(
    	Stream output,
    	Schema schema,
    	Ticks timestamp,
    	double[] analogValues,
    	bool[] digitalValues,
    	uint sample,
    	bool injectFracSecValue = false,
    	ushort fracSecValue = 0
    )

VB
View Source Request Example

    Public Shared Sub WriteNextRecordBinary32 (
    	output As Stream,
    	schema As Schema,
    	timestamp As Ticks,
    	analogValues As Double(),
    	digitalValues As Boolean(),
    	sample As UInteger,
    	Optional injectFracSecValue As Boolean = false,
    	Optional fracSecValue As UShort = 0
    )

C++
View Source Request Example

    public:
    static void WriteNextRecordBinary32(
    	Stream^ output,
    	Schema^ schema,
    	Ticks timestamp,
    	array<double>^ analogValues,
    	array<bool>^ digitalValues,
    	unsigned int sample,
    	bool injectFracSecValue = false,
    	unsigned short fracSecValue = 0
    )

JavaScript
View Source Request Example

    Gemstone.COMTRADE.Writer.WriteNextRecordBinary32 = function(output, schema, timestamp, analogValues, digitalValues, sample, injectFracSecValue, fracSecValue);

#### Parameters

output Stream
  Destination stream.
schema Schema
  Source schema.
timestamp Ticks
  Record timestamp (implicitly castable as DateTime).
analogValues Double
  Values to write for analog channels.
digitalValues Boolean
  Values to write for digital channels.
sample UInt32
  User incremented sample index.
injectFracSecValue Boolean (Optional)
  Determines if FRACSEC value should be automatically injected into stream as first digital - defaults to false.
fracSecValue UInt16 (Optional)
  FRACSEC value to inject into output stream - defaults to 0x0000.

## Remarks

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).

## See Also

#### Reference

Writer Class
WriteNextRecordBinary32 Overload
Gemstone.COMTRADE Namespace