Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pypl2lib fixes #2

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

nikhilchandra
Copy link

This pull request implements the following changes to the DLL wrapper encoded in pypl2lib.py:

  1. The 3 functions for retrieving full analog data channels (pl2_get_analog_channel_data/by_name/by_source) each return 3 variables -- fragment_timestamps, fragment_counts, and values. Previously, fragment_timestamps and fragment_counts were arrays of length PL2AnalogChannelInfo.m_MaximumNumberOfFragments. I have amended the code to truncate these arrays to length num_fragments_returned, which is one of the variables returned by the underlying DLL function but not by the wrapper function.

  2. The function pl2_get_analog_channel_data_subset was not previously implemented. I have implemented it with support for Zugbruecke. I would appreciate some feedback here as I am not very experienced with Zugbruecke.

  3. The implementation for pl2_get_start_stop_channel_info and pl2_get_start_stop_channel_data was wrong. I have corrected it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant