ComCap Main Capture Window COMM1

Top  Previous  Next

When the ComCap tray version is started, it immediately minimises itself to the system tray, usually in the bottom right of the screen.  Left or right clicking on the ComCap icon will open the main ComCap window, with the Capture Log window on the left (first image below) and the Information Log window on the right (second image blow).  There is a narrow vertical splitter between the two windows that may be used to adjust the width of each, while the main window can be dragged by its edges or corners to increase or decrease its size.

 

cm4-main4

(Main Window, Left, showing Capture Log Window)

 

cm4-mainright           cm4-rightclick

(Main Window, Right, showing Information Log Window), Capture Log (Right Click Menu)

 

Capture Log Window

The Capture Log window is initially empty for a fresh ComCap install, the image above shows three serial COM and 19 network tabs that have been set-up through Common Settings, Network and Serial Ports.

 

The tabs are coloured to indicate capture state. Silver means all capture is stopped, Blue that the channel is ready to start capture (TCP Server only), Green that data capture has started and Red that capture for that channel has stopped.  The brighter colour is the currently selected tab.

 

Clicking on a tab changes the Capture Log window to the new serial or network channel and loads and displays previously logged data for that channel, if any.  This data may be initially several days old, since a new log is not opened until new data is captured.  The intention is that any recently captured data can be viewed, even when stopping and restarting capture.

 

Any channel can also be displayed by selecting it from the main Capture menu, and may be configured from the main Settings menu.  The title bar shows the configuration of the current channel:

 

Capture Log: CDRs COM3 (Serial Port COM3, Speed 9,600 bits/sec), Database: COMCAP

 

while the panel in the button bar show the current state of the channel:

 

From: COM3 (OK), Echo: UDP Send to IP 192.168.1.107:514 (OK)

 

The status bar below the button bar shows the time that the last line was captured, the number of lines captured since starting, optionally the number of rows written to the database, then the file name of the main current file to which this channel is being captured, and finally the date and time at which the capture file name will be rotated and a newly named file opened.

 

The status bar at the bottom of the window has five coloured indicators labelled CTS, DSR, DCD, RD and Echo which are made active for the current channel.  For serial ports, the first three show the status of the Clear To Send, Data Set Ready and Data Carrier Detect signal lines as green (low) or red (high), while for networks CTS indicates listening or attempting to connect, while DSR and DCD indicate an open connection.  The fourth Receive Data indicate will flash green for one second as data is received (for data at a rate of one line per second or faster it will stay green), while the first Echo indicator shows white for no echo, green if echo is OK or red if echo has failed.  Note the signal indicators are meaningless when capture is stopped.

 

Right clicking on the Capture Log window displays a pop-up menu that offers further options, depending on whether capture is stopped or started, which are detailed below.  Most of these options are also available on the main menus.

 

Information Log Window

The Information Log window shows messages about which channels are being captured and their configuration such as to which log files and databases captured data is being written.  Typically, the status information is updated hourly for all channels with cumulative totals, but may be reported at any time by clicking the Status button.  Any capture errors are shown in this window.  Right clicking on the Information Log window displays a pop-up menu that offers further options which are detailed below.

 

When the network configuration is loaded, and when capture is started, a warning is logged if a configured local IP no longer exists on the PC, due to networking being changed.  Currently, capture will still attempt to start, since other channels may still work, but those channels trying to use a non-existent IP address will give network errors.  This mainly effects TCP and UDP server channels set-up to listen on a single IP, rather than 0.0.0.0 for all IPs on the PC.  On the other hand, if the PC IP address has changed perhaps due to DCHP being configured, data directed at the original IP address will not arrive anyway.

 

Start and Stop Capture buttons

The Start and Stop buttons allow capture to be started and stopped.  The actual action depends on whether the capture is by the Background Service or Tray applications, which is indicated in the status bar at the bottom of the screen on start-up.  If using the Background Service, the buttons will start and stop the service, if the logged-on user has the rights to do so (otherwise the buttons are disabled), and will also start the tray version monitoring the service, if so configured.  If capturing using the Tray application, capture will immediately start.

 

When stopping capture, a dialog will appear to Confirm Stop All Captures?, in case the button is clicked by accident.  The confirm stop dialog will also appear when exiting the ComCap Tray version if capture has been started, but not if Background Service is being used.

 

Status button and Capture Status menu

The Status button and Capture Status main menu option are used to log the status of all capture channels, including all the current log files names.  This may be configured to occur every hour in Common Settings, Log Files.

 

Hide button and Hide Main Window menu

The Hide button and Hide Main Window file menu options both cause the main window to be minimised to the System Tray, while capture continues.

 

Stop Capture and Exit, and Exit menu option

The Exit file menu option and the X Close button in the top right Window cause the Tray version to terminate.  If the Tray version is performing capture, the option will say Stop Capture and Exit and the confirm stop dialog will appear before ComCap is exited.

 

Pause Capture and Resume Capture right click menu

These options are only available if capture has been started, and allow a single channel to have capture paused and then resumed.  The tab description indicates any channels that are paused.  While paused, the Capture Settings may be changed.  This option may sometimes to be used to reset a network channel that gets stalled.

 

Settings menu and right click menu

Allows Common Settings or channel specific Capture Settings to be changed.  This may only be done while capture is running, but if the settings are changed a prompt will appear so capture can be restarted for all channels (after Common Settings) or just this channel to make the new settings effective.

 

Edit menu options

There are various option on the Edit and window right click menus, that allow captured data to be selected and copied to the clipboard, Select All, Copy, and Copy All.  Clear may be used clear the current Capture Log window, but it will be refreshed if another channel tab is selected and then the current channel reselected.

 

Stop Window Update right click menu

On the Capture Log window right click menu, Stop Window Update is a toggle option (ticked when set) that temporarily stops display of captured data for the selected channel only.  

 

Auto Scroll right click menu

On the Capture Log window right click menu, toggling Auto Scroll stops ComCap forcing scrolling to the end of the window before adding a new line of captured data.  However, this behaviour depends upon the version of Windows, it does not seem to have any effect on W2K, but with Windows 98 the log window will flicker less.  This applies to all channels.

 

Word Wrap right click menu

On the Capture Log window right click menu, toggling Word Wrap determines whether captured lines are word wrapped to the Capture Log window width, or displayed in a horizontally scrolled window.  This applies to all channels.

 

Scroll Tabs right click menu

On the Capture Log window right click menu, toggling Scroll Tabs determines whether multiple Capture Log window tabs are displayed in two or more rows, or instead horizontally scrolled by the left and right arrows.  This will only matter if about four or more channels are captured, where the number of lines of captured data that can be viewed will be reduced as the number of channels increases.   But scrolling means the capture state of all channels can no longer be easily checked since many tabs will be hidden.  This applies to all channels.  This option is set automatically if more than 32 channels are configured, since otherwise there is unlikely to be sufficient screen space to display all the tabs in rows.

 

Log Font menu and right click menu

Allows the font used for the Capture Log and Information Log windows to be separately specified.  The Capture Log font must be fixed width, Lucida Console being very readable or else Courier New, usually sized at 8 point.  The Information Log window can be any font and defaults to Arial 8 point.

 

Load Full Log right click menu

Only available when capture is stopped, Load Full Log causes the full current log to be loaded for display.  Normally ComCap only displays the last few thousand lines (set in Capture Logging while this option will display all lines in the log in the Capture Log window, which might take a few seconds to display.

 

Database from Log right click menu

This option allows previously captured data to be added to the database, from the capture log.  This is typically done in a recovery situation when a database problem meant data was only captured to a log and not the database.  See Capture Settings, Database for more information.

 

Add Comment to Log right click menu

For some capture applications, it may be useful to add a comment into the capture log.  The right click menu Add Comment to Log option causes a small dialog will appear, allowing one or more lines to text to be entered, with tick boxes specifying whether blanks lines should be added before or after the text lines.  This feature is intended to assist in documenting batch captures, perhaps from laboratory instruments. Note the added text is processed in the same way as any normal captured line, which might mean serial number or time stamps being added.  Add Comment is only available when capturing using the Tray version.

 

cm4-comment

 

Resent Start Command, right click menu

If a Start Command has been configured, it may be resent using the right click menu option.  This may be needed to send data to 'wake-up' a capture device.

 

Send Data, right click menu

The right click menu Send Data option displays a new window allowing custom data to be sent on demand, with the last 50 command sent selectable

from a drop down box. This may be needed to send data to 'wake-up' a capture device. The text entered may include the same escape sequences and pauses as the Start Command, see Capture Settings, General For TCP/UDP only, a file to be selected and sent, typically to configure remote capture device, or load new firmware. Note the file may not contain and escape sequences or pauses.

 

cm4-senddata

 

View Log Window menu and right click menu

For improved log viewing, there is also a resizable Log View window.  This may be opened from View Log Window on the right click menu when the current capture log will be loaded and displayed, or from View Log Windows on the file menu which will initially display a Select ComCap Log file selection window, allowing any log to selected and displayed.  The View Log window includes an Update Current Log (F5) menu option to reload the current log, or another log may be specified and opened.

 

cm4-logwin

 

Telnet Terminal Window, menu and right click menu

If this option is taken from the right click menu, it will display the Telnet Terminal window with the IP address defaulted to that of the channel.  The Telnet Terminal  allows interaction with remote TCP/IP Servers, for testing and configuration. It is only possible to use the Telnet Terminal while capture is stopped.

 

Alert Window menu

The Alert Window normally appears automatically when an alert is triggered, but may be opened from the Alert Window file menu option.

 

cm4-alertwin

 

The Alert Window displays multiple alerts, which may be cleared individually, and will show alerts when the ComCap Background Service is running, provided the Tray application is also running.  Buttons available are Clear Some (selected alerts), Clear All Close and Close. Ticking the Disable Alert Sound box will temporarily disable any further sounds until ComCap is restarted, useful when continual alerts are being generated.

 

Test Alert menu

To allow alerts to be tested, the Test Alert file menu options causes an immediate test alert, that may be displayed, sent as an email or an SMS to a mobile telephone, depending on which are set-up in Common Settings, Email/SMS.

 

Prompt on Start for File Name

One or more capture channels may be specified in xCapture Settings, Files to prompt for a specific file name each time capture is started, in which case a dialog similar to the following will appear:

 

cm4-openfile

 

Note that capture will not start until the file name is specified.  An existing file name may be used, with captured data added to the end of the file. This feature is intended for applications where data is being captured from a single device for a specific purpose, such as a laboratory test. The 'Add Comment to Log' right menu option might also be useful to add information to the capture log.