-
Notifications
You must be signed in to change notification settings - Fork 93
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
Disable nifgen get_fir_filter_coefficients() #891
Changes from all commits
79a5975
7c8bb79
04d11ab
42faab7
1f437de
3aa70ea
e5737a1
0572306
41f8476
ecd703d
de8438f
5b32900
acc1752
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
<%page args="function, config, method_template, indent"/>\ | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Are you keeping these on purpose because they may be useful in the future? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes, I am keeping this on purpose. I mentioned that in the PR description. I don't want to lose this knowledge since it isn't obvious how this needs to work. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It just seems like dead code so there's a risk of it being removed in the future too. How about removing it but in the issue recording the last commit that contained it to show a solution? |
||
<% | ||
import build.helper as helper | ||
# This file is not currently used - will be enabled when OSP is enabled. | ||
%>\ | ||
.. py:method:: get_fir_filter_coefficients() | ||
|
||
| Returns the FIR filter coefficients used by the onboard signal | ||
processing block. These coefficients are determined by NI-FGEN and | ||
based on the FIR filter type and corresponding property (Alpha, | ||
Passband, BT) unless you are using the custom filter. If you are using | ||
a custom filter, the coefficients returned are those set with the | ||
:py:meth:`nifgen.Session.configure_custom_fir_filter_coefficients` method coerced to the | ||
quantized values used by the device. | ||
| Refer to the FIR Filter topic for your device in the *NI Signal | ||
Generators Help* for more information about FIR filter coefficients. | ||
This method is supported only for the NI 5441. | ||
|
||
|
||
.. tip:: This method requires repeated capabilities (channels). If called directly on the | ||
nifgen.Session object, then the method will use all repeated capabilities in the session. | ||
You can specify a subset of repeated capabilities using the Python index notation on an | ||
nifgen.Session instance, and calling this method on the result.: | ||
|
||
.. code:: python | ||
|
||
session.channels[0,1].get_fir_filter_coefficients(array_size, number_of_coefficients_read) | ||
|
||
|
||
:rtype: list of float | ||
:return: | ||
|
||
|
||
Specifies the array of data the onboard signal processor uses for the | ||
FIR filter coefficients. For the NI 5441, provide a symmetric array of | ||
95 coefficients to this parameter. | ||
|
||
The coefficients should range between -1.00 and +1.00. | ||
|
||
|
||
|
||
|
||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should error because the device expected symmetrical coefficients.
I think you need to also enable OSP so that the OSP configuration gets validated.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Test disabled since OSP disabled, can't check this.