You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Updates to nirfsg method and parameter names and defaults (#2145)
* fixed parameter name and method name for consistency
* updated changelog
* fixed self test parameter mismatch and included basic test
* fixed the self test method name to match the driver method
* Fixed grammar in CHANGELOG.md
Co-authored-by: Jay Fitzgerald <34140133+ni-jfitzger@users.noreply.github.com>
---------
Co-authored-by: Jay Fitzgerald <34140133+ni-jfitzger@users.noreply.github.com>
Copy file name to clipboardExpand all lines: CHANGELOG.md
+4Lines changed: 4 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1692,6 +1692,10 @@
1692
1692
- Added
1693
1693
- Changed
1694
1694
- Fixed the return type of `get_all_script_names` and `get_all_named_waveform_names` to remove the size parameter and return a list of strings instead of a comma-separated string
1695
+
- Changed the parameter name for waveform name from `name` to `waveform_name` in `clear_arb_waveform` and `select_arb_waveform` to be consistent with other waveform methods
1696
+
- Changed the name of `get_self_calibration_last_date_and_time` to `get_self_cal_last_date_and_time` to be consistent with other MI drivers
1697
+
- Added default value for `module` parameter in `get_self_cal_last_date_and_time` and `get_self_calibration_temperature` methods to align with documentation and allow duck-typing
1698
+
- Updated `self_test` to not have any parameters, aligning with other MI drivers
1695
1699
- Removed
1696
1700
- Methods and properties applicable only to hardware which are not supported anymore
Returns the temperature, in degrees Celsius, of the device at the last successful self-calibration.
1392
1392
@@ -2069,7 +2069,7 @@ select_arb_waveform
2069
2069
2070
2070
.. py:currentmodule:: nirfsg.Session
2071
2071
2072
-
.. py:method:: select_arb_waveform(name)
2072
+
.. py:method:: select_arb_waveform(waveform_name)
2073
2073
2074
2074
Specifies the waveform that is generated upon a call to the :py:meth:`nirfsg.Session._initiate` method when the generation_mode property is set to :py:data:`~nirfsg.GenerationMode.ARB_WAVEFORM`.
2075
2075
@@ -2087,15 +2087,15 @@ select_arb_waveform
2087
2087
2088
2088
2089
2089
2090
-
:param name:
2090
+
:param waveform_name:
2091
2091
2092
2092
2093
2093
Specifies the name of the stored waveform to generate. This is a case-insensitive alphanumeric string that does not use reserved words. NI-RFSG sets the :py:attr:`nirfsg.Session.arb_selected_waveform` property to this value.
2094
2094
2095
2095
2096
2096
2097
2097
2098
-
:type name: str
2098
+
:type waveform_name: str
2099
2099
2100
2100
self_cal
2101
2101
--------
@@ -2216,7 +2216,7 @@ self_test
2216
2216
2217
2217
.. py:currentmodule:: nirfsg.Session
2218
2218
2219
-
.. py:method:: self_test(self_test_message)
2219
+
.. py:method:: self_test()
2220
2220
2221
2221
Performs a self-test on the NI-RFSG device and returns the test results.
Returns the self-test response string from the NI-RFSG device. For an explanation of the string contents, refer to the **status** parameter of this method.
2241
-
2242
-
You must pass a ViChar array with at least 256 bytes.
2243
-
2244
-
2245
-
2246
-
2247
-
:type self_test_message: str
2248
-
2249
-
:rtype: int
2250
-
:return:
2251
-
2252
-
2253
-
This parameter contains the value returned from the NI-RFSG device self test.
0 commit comments