Script 053 – Convert variable length TTL to unique markers

Version:

1.0

Description

BIOPAC Developer - scripting, network data transfer, API, support

This script converts the variable length TTL data to a variable pulse magnitude waveform which can then be easily scored using the following analog channel logic borrowed from script 46:

Given a single digital channel for encoding different marker events, the length of the TTL pulse can be used to differentiate between different markers.

  • For example, a 1 msec pulse can be interpreted as a stimulation event with label “one,” a 2 msec pulse can be interpreted as a stimulation event with value “two” and so forth.

Given that the parallel port is capable of 1 msec resolution, a large number of event labels can be encoded using only a single channel. The procedure will Integrate the channel with the marker data using the channel itself to reset it; then multiply by the original data to get the variable magnitude waveform. An analog channel can be used to encode event markers for peaks in the data. For example, if the value is between 0 and 1, then the stim-response marker is placed with a label “0-1.” If the value is between 1 and 2, then we place the label “1-2″and so forth. The places a marker for all positive peaks in the data and then looks at a set time interval around each marker and depending on the MAX value, modifies the marker information.

Associated Products

WHAT'S NEW

New Citations | BIOPAC in Biology Research

Biology research covers a wide variety of studies all aiming to understand living organisms...

Join the BIOPAC Community

Stay Current

Stay Connected

Request a Demonstration
Request a Demonstration