- RS232 - CPS Plus Pro Serial DAQ
- Overview
- Installation, System Requirements, and Uninstallation
- Quick Start Guide
- Using CPS Plus Pro - Serial Data Acquisition Software
- Data Filtering
- Filters at individual COM port levels
- Filters that affects all COM ports (Global filters)
- CPS Plus Data Filters
- Remove Carriage Return Filter
- Remove Non-Numeric Characters Filter
- Remove Non-Alpha-Numeric Characters Filter
- Remove Consecutive Duplicate Inputs Filter
- Configurable Filters: Remove First <n> bytes
- Configurable Filters: Remove Last <n> bytes
- Configurable Filters: Remove
- Configurable Filters: Remove ... ( Continued - Example)
- Configurable Filters: Replace
- Configurable Filters: Replace... ( Continued - Example)
- Configurable Filters: Prefix data
- Configurable Filters: Suffix data
- Programmable Filters: Writing custom filters in VBScript / Jscript
- Programmable filters: VBScript Examples
- Data logging options
- Writing data to RS232 COM ports / controlling devices
- Tools: ASCII Table - Standard and Extended ASCII Table
- Troubleshooting
- Program Options
- Downloads, Ordering, and Support
- Using CPS Plus with Serial Converters
- License
Programmable Filters: Writing custom filters in VBScript / Jscript
If embedded (predefined) filters are not customizable enough for you, CPS Plus enables you to write more complex filters using VBScript and Jscript scripting language. To use this feature you must have MS Scripting control installed on your computer. Get more details about Microsoft Script Control at http://www.microsoft.com
Filter can be loaded from file by clicking a “Load Filter From File” button. CPS Plus gives you an extra feature to define if the filter will be executed before or after the embedded (predefined) CPS filters.
CPS Plus requires defined VBS or JS function FilterMain with a single argument.
For example:
Function FilterMain(p_data)
FilterMain = p_data & " some data "
End Function
P_data argumentshould be input data received on COM (Serial) port.
Here is a simple example of a function that will append the system time at the end of received data:
Function FilterMain(p_data)
FilterMain = p_data & Date() & " - " & Time()
End Function
If function returns empty string, CPS Plus will not log the data.
Programmable filters can be also used as an alternative for data logging.
You can find more information on this matter in chapter Programmable filters: VBScript Examples