Pleora Technologies Inc. eBUS SDK v6.2.8.5877 API



PvSerialTerminalWnd Class Reference

GUI-based terminal interface to a device serial port. More...

Public Member Functions

 PvSerialTerminalWnd ()
 Constructor.
 
virtual ~PvSerialTerminalWnd ()
 Destructor.
 
PvResult SetDevice (IPvDeviceAdapter *aDevice)
 Assigns the device through which the serial port is accessed. More...
 
PvResult SetSerialPort (PvDeviceSerial aPort)
 Assigns a specific serial port to the terminal window. More...
 
PvDeviceSerial GetSerialPort () const
 Returns the serial port currently assigned to the terminal window. More...
 
- Public Member Functions inherited from PvWnd
void SetPosition (int32_t aPosX, int32_t aPosY, int32_t aSizeX, int32_t aSizeY)
 Set the window's position and size. More...
 
void GetPosition (int32_t &aPosX, int32_t &aPosY, int32_t &aSizeX, int32_t &aSizeY)
 Get the window's position and size. More...
 
PvString GetTitle () const
 Get the window's title. More...
 
void SetTitle (const PvString &aTitle)
 Set the window's title. More...
 
PvResult Close ()
 Close the window. More...
 

Additional Inherited Members

- Protected Member Functions inherited from PvWnd
 PvWnd ()
 Constructor.
 
virtual ~PvWnd ()
 Destructor.
 

Detailed Description

GUI-based terminal interface to a device serial port.

PvSerialTerminalWnd presents a GUI to the user allowing serial communication through a Pleora GigE Vision video interface.

Use of the PvSerialTerminalWnd class to directly access the camera head will interfere with the synchronisation between the device and the camera head. It is recommended to avoid accessing device features linked to the camera head while using the PvSerialTerminalWnd class to interact with the camera head.

How to use this class

To use a this class as a modal dialog:

  1. Connect to a device using any of the PvDevice::Connect methods.
  2. Instantiate a PvSerialTerminalWnd object.
  3. Use SetDevice to bind the serial port to a specific device.
  4. Use ShowModal to create the modal dialog.

To use a this class as a modeless dialog:

  1. Connect to a device using any of the PvDevice::Connect methods.
  2. Instantiate a PvSerialTerminalWnd object.
  3. Use SetDevice to bind the serial port to a specific device.
  4. Use ShowModeless to create the modeless dialog.

Member Function Documentation

◆ GetSerialPort()

PvDeviceSerial PvSerialTerminalWnd::GetSerialPort ( ) const

Returns the serial port currently assigned to the terminal window.

Returns
Serial port currently used by the dialog.
See also
SetSerialPort

◆ SetDevice()

PvResult PvSerialTerminalWnd::SetDevice ( IPvDeviceAdapter aDevice)

Assigns the device through which the serial port is accessed.

Parameters
[in]aDevicePointer to a PvDevice object. The device must be connected prior to opening a serial port.
Returns
Includes:

◆ SetSerialPort()

PvResult PvSerialTerminalWnd::SetSerialPort ( PvDeviceSerial  aPort)

Assigns a specific serial port to the terminal window.

Parameters
[in]aPortPvDeviceSerial enumeration value representing the device's serial port to use.
Returns
Includes:

The documentation for this class was generated from the following files:

Copyright (c) 2002-2021 Pleora Technologies Inc.
www.pleora.com