Reflection .NET API
Attachmate.Reflection.Emulation.OpenSystems Assembly / Attachmate.Reflection.Emulation.OpenSystems Namespace / ITerminal Interface / SerialDeviceSettings Property


In This Topic
    SerialDeviceSettings Property
    In This Topic
    Gets or sets the configuration parameters for the currently configured serial printer port.
    Syntax
    'Declaration
     
    
    Property SerialDeviceSettings As String
    'Usage
     
    
    Dim instance As ITerminal
    Dim value As String
     
    instance.SerialDeviceSettings = value
     
    value = instance.SerialDeviceSettings
    string SerialDeviceSettings {get; set;}

    Property Value

    The default value is "Baud 9600 Parity 8/None ReceivePacing Xon/Xoff TransmitPacing Xon/Xoff StopBits 1". The values used in this string are not case sensitive.
    Remarks
    The value of this property is only relevant when the LogToSerialDevice property is true.

    The value consists of alternating "keyword tokens" and "value tokens." The keyword token identifies a serial device setting; the value token specifies a value for the setting. SerialDeviceSettings supports four keyword tokens: Baud, ReceivePacing, TransmitPacing, and Stop Bits. (The possible values for these settings are the same as for the ConnectionSettings property.) You should include all four keyword tokens in the string using the following syntax. For each setting, replace value with the setting value you want:

    Session.SerialDeviceSettings "Baud value Parity value ReceivePacing value TransmitPacing value StopBits value"

    For example:

    SerialDeviceSettings = "Baud 14400 Parity 8/NONE ReceivePacing XON/XOFF TransmitPacing XON/XOFF StopBits 1"

    The easiest way to build this string is to record a macro while you select your settings in the Configure Serial Device Port dialog box. For more information, see the Reflection Help.

    See Also