OutReal Method

Description
Gets or sets the output port status as the 32 bits floating-point data (IEEE754 compliant).

Syntax
Function OutReal (WordPortNumber As Integer) As Single
Sub OutReal (WordPortNumber As Integer, Value As Single)

Parameters

  • WordPortNumber
    An integer indicating the output port.
  • Value
    A real number indicating the output data.

Return Value
Returns the specified output port status in 32 bits floating-point data (IEEE754 compliant).

Remarks
If an error occurs and the ErrorNumber property of the SpelException is 3101, see the remarks in the SetPoint method.

See Also
In Method, InBCD Method, InReal Method, InW Method, Out Method, OutW Method, SetPoint Method

OutReal Example
VB Example:

Dim val As Single  
val = m_spel.OutReal(32)  

C# Example:

float val;  
val = m_spel.OutReal(32);